home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
LIB
/
MSGUTI.ZIP
/
MsgUtils
/
ReadMe
< prev
Wrap
Text File
|
1997-12-26
|
3KB
|
72 lines
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Message file utilities
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
MsgUpdate
»»»»»»»»»
Despite being a very simple program, this little utility can be incredibly
useful when updating a Message fileæs translation.
Syntax:
*MsgUpdate [-ForeignOld]|[-fo] <filename> [-ForeignNew]|[-fn] <filename>
[-MyOld]|[-mo] <filename> [-Output]|[-o] <filename>
ÅáForeignOld file is the original Message file.
ÅáMyOld is your translation of ForeinOld, containing the same tags, but with
translated values.
ÅáForeignNew is the new version of the original Message file, which may
contain some new tags, or in which the values of some old tags have been
changed.
Åáthe new file that MsgUpdate creates goes to Output
The program goes through ForeignNew line by line, writing any empty lines and
comments it finds directly to Output (which means that any comments in MyOld
are lost).
For each token *value* of ForeignNew, it searches for the same token *value*
in ForeignOld. If this is found (i.e. the value didnæt change), it writes the
corresponding translated value from MyOld to Output. If it is not found (i.e.
the token value has changed, or a new token has been introduced), the
original token and token value from ForeignNew are written to Output, but are
preceded with öÅò to make the line stand out so it can be easily found.
If an inconsistency between ForeignOld and MyOld is found, the line from
ForeignNew is output, also preceded with öÅò.
The program cannot handle tags that appear in the file more than once.
MsgDecode, MsgEncode
»»»»»»»»»»»»»»»»»»»»
These two small BASIC programs were designed to work on ArcWebæs messages,
but could also be adapted to work with those of other programs.
ArcWeb has a dictionary of the form:
dict0:Click SELECT to
dict1:Click ADJUST to
dict2:M%34 %11 open the submenu
The dictionary entries are substituted for ö%xxò in the strings, e.g.:
mhM4:%0 quit %23
becomes öClick SELECT to quit ArcWebò. As you can see above, even the
dictionary entries can reference other dictionary entries.
MsgDecode expands all references, so that all dictionary tags and tags in the
Message file after the last ödictò tag donæt contain any ö%ò codes any
longer.
MsgEncode does the opposite, replacing strings with ö%ò codes. However, for
this to work there must be no ö%ò references in the dictionary tags ÿ if you
change dictionary values, write the values out, the program will do the
encoding for you.
__ _
|_) /| Richard Atterer
| \/»| atterer@augsburg.baynet.de
» ┤` »