Custom Language Strings

From Armagetron
Revision as of 04:38, 18 June 2010 by Dlh (talk | contribs) (autocomplete typo)

In Armagetron Advanced it is possible to customize the language strings used on your server. Every message text sent from the server has an associated base entry in a language template. The primary purpose for these language templates is to offer localizations in many languages, but you can create your own template to provide modified language strings.

One popular method for modifying the default language strings is to manually edit the game-provided template, such as english_base.txt. You should not do this. When you upgrade Armagetron Advanced your modifications will be lost. The correct method is to create a new custom language file.

Creating a Custom Language File

In the user data directory of your server create a directory named language, and place a file named custom.txt inside it.

Put the following text in language/custom.txt (only the first line is required):

language Custom

# An example custom language string
player_entered_game	\1 0x7fff7fentered this server with custom language strings.\n

Using Your Custom Language

In your server configuration use the following settings.

LANGUAGE_FIRST Custom
LANGUAGE_SECOND American English # or whatever your preference is