These resource files are searched in a directory named
"resources"
in the classes' package-directory.
Typically, in Unix, these are located in
"/opt/smalltalk/packages"
or
"/usr/local/lib/smalltalk/packages".
However, because a number of directories are tried when resource files are searched for,
you can easily create private resource files, by placing them into a "resources" subdirectory,
and placing a modified version of (some of) those files there (if you don't like the standard messages).
Also, files are first tried class-specific, then package-specific. For example, the resources for the NewLauncher class are first tried in a file named "NewLauncher.rs", then "libtool.rs".
For example, the translations for the NewLauncher class (which is in the 'libtool'-package)
are first looked up from a file named ".../stx/libtool/resources/NewLauncher.rs" (which is not present),
then in ".../stx/libtool/resources/libtool.rs".
In contrast to other such translation schemes, where a symbolic key is used, ST/X uses the original english text as a key. Translations for a particular language may or may not be present in those files - if not, the original internal messages (english) are used.
When editing those files, be aware that they may contain 8bit national
characters or even invisible escape sequences (the japanese files do).
Use an editor which is prepared to handle 8bit (or even 16bit) characters -
ATTENION: some old system's editors silently strip of the highest bit and thereby corrupt these files. (Old versions of vi are known to do this)We recommend using ST/X's fileBrowser.
For some languages (i.e. japanese), you need a font which is capable of displaying those characters. The Launcher/FileBrowser will open a font dialog, asking for a font change, if required.
Sorry for that inconvenience - but we assume that the language is not changed too often during sessions ;-), and supporting dynamic language changes would require quite some programming effort, as the geometry of all windows could change, due to changed label strings.
The launcher responds to language changes by reopening a new launcher view.
You should close all other views and reopen them anew.
LANG''.
setenv LANG de
or:
LANG=de
export LANG
to your login profile (if not already present).
It is also possible, to set the language in the
"private.rc" startup file, which should be in your startup
directory or in "$HOME/.smalltalk".
To do this, add a line as:
Smalltalk at:#Language put:#de
Please help us by sending back suggestions and/or corrected texts - thank you.
Copyright © Claus Gittinger Development & Consulting, all rights reserved