NeXT TypedStream Data | 1992-12-26 | 2.7 KB | 36 lines
typedstream
IBObjectData
Object
CustomObject
Responder
ScrollView
ClipView
ciifffcfffs
[1980c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
\margl40
\margr40
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs24\fc0\cf0 Localization Helper is a Services oriented application for creating #defines for LocalString() and LocalStringFromTable() as outlined in LocalizationGuide.rtfd.\
To use, select the text you want to make into a #define and then in the Services menu choose Localization Helper -> New Entry. Include the quotes around the string in the selection.\
Type in the #define name, Localization Helper will capitalize it and replace all spaces with underscores. For instance typing in "alert string" (without quotes) will produce a macro name ALERT_STRING. Tabbing will take you to the next field, hitting return will press the OK button.\
Hit tab and then ype in the comment to help the translator. \
If there is no text in the Table field, LocalString() will be used, otherwise LocalStringFromTable() will be used.\
When you hit OK, the text in the document you selected will be replaced with the #define name. I suggest that you keep all localization macro definitions in one file, and import that file to all objects using the localization strings. It is very easy to create duplicate strings if you don't do that, and that can lead to erroneous behaviour.\
You can save the macro definitions to a file, append them to a file, or paste them using the services menu LocalizationHelper/Paste Defines. The buffer will then be cleared for new macro definitions.
\b Caution:
\b0 Having the file you are appending to open somewhere else is bad. If you change anything and then save, anything appended betweent the time you opened the file and saved it could be lost.\
For the services to show up in your services menu, you may have to log out and log back in after copying the application to your ~/Apps directory.\
If you would like to see different behavior, send me a comment or request the source code.