# HG changeset patch # User Wuzzy # Date 1508592177 -3600 # Node ID c9c103205984f17dd85d5733d4e2c9eb2a8718d0 # Parent 2ada7beb1e717b184e759edcde4fa9980013ffad Translations: language codes diff -r 2ada7beb1e71 -r c9c103205984 Translations.wiki --- a/Translations.wiki Sat Oct 21 14:17:59 2017 +0100 +++ b/Translations.wiki Sat Oct 21 14:22:57 2017 +0100 @@ -38,11 +38,14 @@ For example, in an Arch Linux box the path is `/usr/share/hedgewars/Data/Locale`. For Windows 8, the path is `C:\Program Files (x86)\Hedgewars 0.9.19\Data\Locale`. +== Language codes == +Languages are identified with the [https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1 language code] (e.g. “de” for German). For regional language variants, an [https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2 country code] can be appended with an underscore (e.g. “pt_BR” for Brazilian Portuguese). + == Translation files == Here is a list of the different localization files of the English language that you should use as your translation reference/template as it should be the most accurate and up to date. The file locations are relative to the top directory of the Hedgewars source code. You can edit all these files with a text editor, but for some files special editors are available. === Overview === -These are all files which contain translatable text. Replace “ZZ” with the [https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes ISO 639-1 language code] (e.g. “de” for German). +These are all files which contain translatable text. Replace “ZZ” with the actual language code. * `/share/hedgewars/Data/Locale/ZZ.txt`—In-game strings * `/share/hedgewars/Data/Locale/ZZ.lua`—Script transations