Difference between revisions of "Translation"

From TerraFirmaCraft Plus Wiki
Jump to: navigation, search
(Submitting)
(.lang File)
Line 5: Line 5:
 
== .lang File ==
 
== .lang File ==
  
The .lang file is a file that specifies the localization for all the text in the game. It can be found within the mod's .jar file. There is one .lang file for each language, which is named according to language code. For example, en_US specifies the localization for American English.
+
.lang files are text files that specify the translations for all the text in the game. They can be found within the mod's .jar file. There is one .lang file for each language, which is named according to the language code which it translates the game to. For example, en_US specifies the localization for American English.
  
 
To extract the .lang file, open the mod's .jar file with an archive extraction program, such as WinRar or WinZip. The .lang files can be found within the "/assets/terrafirmacraftplus/lang" folder. The .lang file for the language you intend to translate can then be extracted.
 
To extract the .lang file, open the mod's .jar file with an archive extraction program, such as WinRar or WinZip. The .lang files can be found within the "/assets/terrafirmacraftplus/lang" folder. The .lang file for the language you intend to translate can then be extracted.

Revision as of 14:48, 21 February 2020

This page is a stub or is incomplete.
Please help us by expanding it.

Translation of Terrafirmacraft+ into other languages is possible. It can be done through the use and modification of lang files.

.lang File

.lang files are text files that specify the translations for all the text in the game. They can be found within the mod's .jar file. There is one .lang file for each language, which is named according to the language code which it translates the game to. For example, en_US specifies the localization for American English.

To extract the .lang file, open the mod's .jar file with an archive extraction program, such as WinRar or WinZip. The .lang files can be found within the "/assets/terrafirmacraftplus/lang" folder. The .lang file for the language you intend to translate can then be extracted.

Translating

A text editor such as Notepad++ is needed to translate the lang files.

If the mod has already been translated to a particular language, but the translation has to be updated, extract the relevant .lang file and add the new, missing entries in the localization. These entries can be found within the English .lang file.

If the mod has never been translated to a particular language, a new .lang file can be created by copying one of the English .lang files (for example, en_US), and renaming it to the language code of the intended language (for example, it_IT for Italian, and es_ES for Spanish). Once the .lang file has been created, the different entries can then be translated.

Once the translation is finished, the .lang file can be submitted to the developer for inclusion in the game.

Submitting

Submissions should be done on the TFC+ Discord. The developer should be told about new or updated translations when they are submitted. Translations have to be reviewed by two other speakers of the language before the developer will approve them.