| 1 |
|
|---|
| 2 | FM/2 Translation Toolkit
|
|---|
| 3 |
|
|---|
| 4 | This Toolkit allows you to modify the strings and icons stored in FM3RES.STR
|
|---|
| 5 | and FM3RES.DLL. This allows you to translate FM/2 for other languages and
|
|---|
| 6 | to replace FM/2's standard icons and bitmaps.
|
|---|
| 7 |
|
|---|
| 8 | To use the Toolkit, create a work directory and unzip the reskit.zip to this
|
|---|
| 9 | directory. Be sure to preserve the directory structure in the zip file. You
|
|---|
| 10 | will also need a copy of FM3RES.DLL in the work directory. Copy this file
|
|---|
| 11 | from your FM/2 directory.
|
|---|
| 12 |
|
|---|
| 13 | Modify the files in the Toolkit as described below and run the COMPILE
|
|---|
| 14 | script to rebuild the selected files.
|
|---|
| 15 |
|
|---|
| 16 | To rebuild FM3RES.DLL, you will need a copy of RC.EXE on your PATH and
|
|---|
| 17 | appropriate OS/2 #include files. RC and the #include files come with the
|
|---|
| 18 | OS/2 developer's toolkit and various OS/2 compilers. See the comments in
|
|---|
| 19 | FM3STR.H for remarks about additions and insertions.
|
|---|
| 20 |
|
|---|
| 21 | When making changes to FM3DLL.STR, FM3RES.RC or FM3RES.DLG, translate the
|
|---|
| 22 | _text only_. Do _not_ reorder, remove or create new lines in FM3DLL.STR.
|
|---|
| 23 | Do not modify the odd-looking %%s, %%lu, etc. items in FM3DLL.STR. They are
|
|---|
| 24 | used by the formatted print routines.
|
|---|
| 25 |
|
|---|
| 26 | When replacing icons, make sure you provide an appropriate set of
|
|---|
| 27 | resolutions. When replacing bitmaps, make sure you to size the bitmap to fit
|
|---|
| 28 | correctly in place of the original bitmap.
|
|---|
| 29 |
|
|---|
| 30 | Do not alter any other files. If you do not follow the above guidelines,
|
|---|
| 31 | FM/2 may refuse to run correctly.
|
|---|
| 32 |
|
|---|
| 33 | To get quick usage help, type:
|
|---|
| 34 |
|
|---|
| 35 | COMPILE
|
|---|
| 36 |
|
|---|
| 37 | at the command line.
|
|---|
| 38 |
|
|---|
| 39 | To rebuild just FM3RES.STR, type:
|
|---|
| 40 |
|
|---|
| 41 | compile /s
|
|---|
| 42 |
|
|---|
| 43 | at the command line.
|
|---|
| 44 |
|
|---|
| 45 | To rebuild both FM3RES.DLL and FM3RES.STR, type:
|
|---|
| 46 |
|
|---|
| 47 | compile /b
|
|---|
| 48 |
|
|---|
| 49 | at a command line.
|
|---|
| 50 |
|
|---|
| 51 | After rebuilding, shut down FM/2 and copy the new files to the FM/2
|
|---|
| 52 | program directory and restart FM/2.
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | == Trouble Shooting ==
|
|---|
| 56 |
|
|---|
| 57 | FM/2 versions 3.20i-6 and earlier stripped the DOS stub from FM3RES.DLL.
|
|---|
| 58 | This will cause RC.EXE to fail with a 1013 error. Current versions of FM/2
|
|---|
| 59 | preserve the stub, so you should not see this error.
|
|---|
| 60 |
|
|---|
| 61 | If you want to alter FM3RES.DLL for an older version of FM/2, you need to run
|
|---|
| 62 | LXLITE.EXE on FM3RES.DLL to restore the DOS stub before running RC.EXE. You
|
|---|
| 63 | can get LXLITE.EXE from Hobbes:
|
|---|
| 64 |
|
|---|
| 65 | <http://hobbes.nmsu.edu/cgi-bin/h-search?key=lxlite&pushbutton=Search>
|
|---|
| 66 |
|
|---|
| 67 | Any relatively recent version of lxlite should work, but 1.3.3 was used to
|
|---|
| 68 | verify this procedure.
|
|---|
| 69 |
|
|---|
| 70 | At a command promt, run:
|
|---|
| 71 |
|
|---|
| 72 | lxlite X:\path\fm3res.dll /x
|
|---|
| 73 | lxlite X:\path\fm3resdll /c:minstub
|
|---|
| 74 |
|
|---|
| 75 | This will decompress the DLL and restore the stub.
|
|---|
| 76 |
|
|---|
| 77 | After recompiling the DLL, you can run
|
|---|
| 78 |
|
|---|
| 79 | lxlite X:\path\fm3res.dll /c:default
|
|---|
| 80 |
|
|---|
| 81 | to recompress the DLL, if you wish.
|
|---|
| 82 |
|
|---|
| 83 | Not all versions of RC.EXE are created equal. Currently, the best version to
|
|---|
| 84 | use is:
|
|---|
| 85 |
|
|---|
| 86 | 12-18-97 6:01 868,000 0 rc.exe
|
|---|
| 87 |
|
|---|
| 88 | which reports itself as:
|
|---|
| 89 |
|
|---|
| 90 | IBM RC (Resource Compiler) Version 5.00.002 Dec 18 1997
|
|---|
| 91 |
|
|---|
| 92 | and which is available at:
|
|---|
| 93 |
|
|---|
| 94 | <ftp://ftp.software.ibm.com/ps/products/warpzilla/os2tk40rc.zip>
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | $Id: reskit.txt 223 2005-06-18 04:16:59Z root $
|
|---|