This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Translation: Difference between revisions
 Add some information about writing new translations  | 
				 3.0 was never released  | 
				||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Stub}}  | {{Stub}}  | ||
The language files are stored within the l10n directory in the data directory. We have a starting template located in the [http://bzflag.svn.sourceforge.net/viewvc/bzflag/trunk/bzflag/data/l10n/bzflag_xx.po?view=markup bzflag_xx.po] file with some information at the top to get you started.  | The language files are stored within the l10n directory in the data directory. We have a starting template located in the [http://bzflag.svn.sourceforge.net/viewvc/bzflag/trunk/bzflag/data/l10n/bzflag_xx.po?view=markup bzflag_xx.po] file with some information at the top to get you started.  | ||
| Line 7: | Line 5: | ||
Once you have a new translation file created, you can select it from Options > GUI Settings > Locale, or by passing the -locale parameter to the BZFlag client when launching it.  | Once you have a new translation file created, you can select it from Options > GUI Settings > Locale, or by passing the -locale parameter to the BZFlag client when launching it.  | ||
If your translation requires a   | If your translation requires a certain font, you can specify this in the language file. Once you have picked a font (or set of fonts) you can make your translation file use them by translating the strings "_consoleFont" "_serifFont" and "_sansSerifFont" to the font names that you would like to use as defaults.  | ||
The [http://bzflag.svn.sourceforge.net/viewvc/bzflag/trunk/bzflag/data/l10n/bzflag_ru.po?view=markup Russian translation file] has this done if you need an example:  | The [http://bzflag.svn.sourceforge.net/viewvc/bzflag/trunk/bzflag/data/l10n/bzflag_ru.po?view=markup Russian translation file] has this done if you need an example:  | ||
| Line 22: | Line 20: | ||
  msgid "_sansSerifFont"  |   msgid "_sansSerifFont"  | ||
  msgstr "DejaVuSansCondensedBold"  |   msgstr "DejaVuSansCondensedBold"  | ||
We bundle a few fonts, but if you need one we do not provide, you should first of all make sure the font you pick uses a license that is compatible with BZFlag. If you are unsure, please feel free to ask us on [[BZFlag_on_IRC#.23bzflag|IRC]].  | |||
Latest revision as of 23:29, 9 February 2013
The language files are stored within the l10n directory in the data directory. We have a starting template located in the bzflag_xx.po file with some information at the top to get you started.
Once you have a new translation file created, you can select it from Options > GUI Settings > Locale, or by passing the -locale parameter to the BZFlag client when launching it.
If your translation requires a certain font, you can specify this in the language file. Once you have picked a font (or set of fonts) you can make your translation file use them by translating the strings "_consoleFont" "_serifFont" and "_sansSerifFont" to the font names that you would like to use as defaults.
The Russian translation file has this done if you need an example:
########### ## FONTS ## ########### msgid "_consoleFont" msgstr "DejaVuSansMonoBold" msgid "_serifFont" msgstr "DejaVuSerifBold" msgid "_sansSerifFont" msgstr "DejaVuSansCondensedBold"
We bundle a few fonts, but if you need one we do not provide, you should first of all make sure the font you pick uses a license that is compatible with BZFlag. If you are unsure, please feel free to ask us on IRC.