root/1.8.3/branches/experimental/I18N

Revision 511, 2.6 KB (checked in by pennmush, 2 years ago)

PennMUSH 1.8.1p0 Archival

Line 
1============================================================================
2                        Internationalization in PennMUSH
3============================================================================
4
5PennMUSH 1.7.3 and later have extensive support for running in non-English
6environments. There are two parts to this. First, what the mush considers
7to be valid characters, what's upper-case, what's lower-case, how they
8are sorted, and so on. The second is translating the messages produced
9by the game into another language. (Helpfiles aren't currently translated.)
10
11Several languages are currently supported to one degree or another.
12If your favorite language isn't (or if you want to increase the
13level of support), and you're fluent in it, you can help out!
14See http://www.pennmush.org/translation.html.
15
16Localization (the process of making a MUSH conform to a given "locale")
17is controlled by the LANG or LC_ALL environment variables, which have
18the form "la_DI", where la is a language code and DI is a dialect. For
19example, "en_US" stands for English, United States dialect. The
20language codes are usually the same as a country's top level domain in
21URLs. Spanish is 'es', Russian is 'ru', and so on.
22
23There are two places where you have to use LANG: when you're
24compiling the MUSH (in order to compile the message translation files)
25and when you start up the MUSH (in order to set the locale for
26the running server).
27
281. Compiling the MUSH - tips
29
30Files with translated messages are located at
31http://download.pennmush.org/Source/translations/. Get the one for your
32patchlevel and language, put it in your pennmush/po/ directory.
33
34These files have to be compiled to an efficient internal form before
35starting up the mush.  This means you should set your LANG environment
36variable before you compile your server.
37
38To do this using the common bash shell, 'export LANG=en_US', or whatever
39your setting is. If that gives an error, try the tcsh shell form 'setenv
40LANG en_US'. If that still doesn't work, consult the documentation for
41the shell you're using.
42
43The message files are compiled during the "make install" step.
44
45Be sure that you compile with a COMPRESSION_TYPE (in options.h) that
46is 8-bit clean so it will work properly with non-ASCII characters.
47
482. Starting up the MUSH - tips
49
50The LANG environment variable that controls what language the mush
51uses is normally set in the pennmush/game/restart script. There's an
52example for using French in the script already that can be used as a
53starting point.
54
55Your server account might be set up with a non-english language as the
56default. If so, and you don't set LANG in the restart script, that
57default language will be used.
Note: See TracBrowser for help on using the browser.