-
Open the
languages
folder in the repo. Quick link on GitHub -
Choose a base language file to translate from. It could be whatever language you are familiar with.
-
Find the base language file in the
languages
folder and open it in a text editor. A random line from a language file will look like this:LangString WelcomeTitle ${LANG_ENGLISH} "Welcome to the Euro Truck Simulator 2 Lane Assist Installer"
Let's take things apart:
LangString
is a keyword that indicates that this line is a language string. Don't change it.WelcomeTitle
is the key of the string. Usually you don't have to change it.${LANG_ENGLISH}
is a identifier that indicates the language of the string. Below is a list of all available languages."Welcome to the Euro Truck Simulator 2 Lane Assist Installer"
is the value of the string. This is what you need to translate.
For example, here's a translated version of the
WelcomeTitle
string in Chinese:LangString WelcomeTitle ${LANG_SIMPCHINESE} "欢迎使用 欧卡2车道辅助 / ETS2LA 安装程序"
-
Choose a language to translate to. You can choose any language that is not the base language.
-
Create a file with the same name as the base language file, but with the language code of the language you are translating to. For example, if you are translating to German, create a file called
de.nsh
in thelanguages
folder. -
Open the new language file in a text editor and copy all the lines from the base language file that you want to translate.
-
Translate the copied lines to the new language. Make sure to keep the same structure of the
LangString
keyword and the key. -
Save the new language file.
-
Commit the changes to the repo, and open a Pull Request on GitHub.
-
Wait for a review from a maintainer. The maintainer will help modifying the main program to support the new language.
-
Once the changes are merged, CI will be triggered and a new release will be created. You can download the new release and test it to make sure everything is working as expected.
(extracted from NSIS 3.10)
Sortings may vary
LANG_SERBIAN
: SerbianLANG_VIETNAMESE
: VietnameseLANG_ASTURIAN
: AsturianLANG_GREEK
: GreekLANG_TURKISH
: TurkishLANG_GEORGIAN
: GeorgianLANG_NORWEGIAN
: NorwegianLANG_MACEDONIAN
: MacedonianLANG_HEBREW
: HebrewLANG_BELARUSIAN
: BelarusianLANG_PORTUGUESEBR
: PortugueseBRLANG_WELSH
: WelshLANG_KOREAN
: KoreanLANG_JAPANESE
: JapaneseLANG_ESTONIAN
: EstonianLANG_AFRIKAANS
: AfrikaansLANG_SCOTSGAELIC
: ScotsGaelicLANG_CZECH
: CzechLANG_ESPERANTO
: EsperantoLANG_KURDISH
: KurdishLANG_LITHUANIAN
: LithuanianLANG_LATVIAN
: LatvianLANG_PASHTO
: PashtoLANG_BOSNIAN
: BosnianLANG_CROATIAN
: CroatianLANG_FRENCH
: FrenchLANG_FARSI
: FarsiLANG_HINDI
: HindiLANG_HUNGARIAN
: HungarianLANG_SERBIANLATIN
: SerbianLatinLANG_BULGARIAN
: BulgarianLANG_SIMPCHINESE
: SimpChineseLANG_INDONESIAN
: IndonesianLANG_SLOVENIAN
: SlovenianLANG_ALBANIAN
: AlbanianLANG_ARABIC
: ArabicLANG_ARMENIAN
: ArmenianLANG_UKRAINIAN
: UkrainianLANG_GERMAN
: GermanLANG_CATALAN
: CatalanLANG_MALAY
: MalayLANG_SWEDISH
: SwedishLANG_THAI
: ThaiLANG_PORTUGUESE
: PortugueseLANG_ICELANDIC
: IcelandicLANG_LUXEMBOURGISH
: LuxembourgishLANG_IRISH
: IrishLANG_TRADCHINESE
: TradChineseLANG_UZBEK
: UzbekLANG_SPANISHINTERNATIONAL
: SpanishInternationalLANG_BASQUE
: BasqueLANG_POLISH
: PolishLANG_NORWEGIANNYNORSK
: NorwegianNynorskLANG_TATAR
: TatarLANG_RUSSIAN
: RussianLANG_FINNISH
: FinnishLANG_BRETON
: BretonLANG_GALICIAN
: GalicianLANG_MONGOLIAN
: MongolianLANG_DUTCH
: DutchLANG_SPANISH
: SpanishLANG_ROMANIAN
: RomanianLANG_ENGLISH
: EnglishLANG_ITALIAN
: ItalianLANG_DANISH
: DanishLANG_SLOVAK
: SlovakLANG_CORSICAN
: Corsican