Create a new Language for FA

Everything about mods can be found here.

Moderator: Morax

Create a new Language for FA

Postby Phelom » 06 Oct 2016, 04:29

Hi,

I want to create a new language support for the game (translation), i mean the whole game, not a coop mission or a mod

In this project i would like to :
1. Change UI user interface : like buttons, menus, all text of the game UI
2. Create and change the voices : i'll maybe try to find some ppl to help me recording the voices of characters and taunts
3. Translate everything else

If someone has some experience on this, or already tryed to create a language (like russian or chiness) it will be fine helpfull and we can then help each other, also maybe for other languages

Spoiler: show
The concerned language is "Tamazight" which is my default/native language, it has latin transcription like "Amarẓi" (Skirmish) or "Amenɣi" (Fight)
The default language is Tifinagh like "ⴰⵎⵏⵣⴰⴷ ⴰⵏⴰⴼⴻⵍⵍⴰ" (Suprem Commander)


Thanks :)
User avatar
Phelom
Avatar-of-War
 
Posts: 195
Joined: 08 Apr 2015, 15:04
Location: Tizi Ouzou
Has liked: 104 times
Been liked: 25 times
FAF User Name: Phelom/Gurzil

Re: Create a new Language for FA

Postby speed2 » 06 Oct 2016, 09:14

You need new folder here https://github.com/FAForever/fa/tree/develop/loc with language shortcut, and inside one file containing all strings. Just check copy paste US and then translate everything inside.
To test it you need to add this line into your game.prefs
Code: Select all
options_overrides = {
  language = 'FR',
}

and ofc replace FR with your own, options_overrides table should already be there, so just search for it and add language line

That should be for for most of the strings, I suggest you to start wit that and get the voice later. (btw. changing this will most probably break voice, since the game will also look for sounds from your language folder but won't find them, so don't be surprised when testing strings
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Create a new Language for FA

Postby Exotic_Retard » 06 Oct 2016, 09:41

no it wont break voice - if it cant find the localized version of something it defaults to en us - that applies to both string and voice (tbh im not sure if it defaults to the localized version or the default default version which is written in the code itself, but it certainly does default)

yeah, translating is pretty straightforward, but it is an absurd amount of work, you have ~7000 lines there, enjoy : )
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: Create a new Language for FA

Postby Uveso » 07 Oct 2016, 21:59

Hello Phelom,

please wait for this PR before you copy the US language file as base for your translation, because i am adding the last missing translation tags to it:
https://github.com/FAForever/fa/pull/1589
(While adding the german language i also added all missing text-place-holder for translation in all option / menu strings.)

After this PR is merged you have all needed translation tags for your own language file here:
https://github.com/FAForever/fa/blob/de ... ngs_db.lua
Last edited by Uveso on 07 Oct 2016, 22:15, edited 1 time in total.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Create a new Language for FA

Postby Uveso » 07 Oct 2016, 22:14

Well i added the missing translation tags to the US language file.

because of the chaotic ordering i sorted all strings alphabetically.

here is your sorted, 7000 line long, translation base:

http://pastebin.com/wKyXu4Fk

Have fun :D
Last edited by Uveso on 11 Oct 2016, 10:14, edited 1 time in total.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Create a new Language for FA

Postby Lieutenant Lich » 08 Oct 2016, 03:17

If only there was a program to skillfully translate from language to language...
Don't complain about that which you aren't willing to change.

My mod:
viewtopic.php?f=67&t=12864
User avatar
Lieutenant Lich
Evaluator
 
Posts: 952
Joined: 01 Feb 2016, 05:28
Location: United States
Has liked: 992 times
Been liked: 818 times

Re: Create a new Language for FA

Postby Uveso » 11 Oct 2016, 10:13

@Phelom:

If you still want to translate your language; here is the full language file for you:
viewtopic.php?f=2&t=13287
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Create a new Language for FA

Postby Phelom » 11 Oct 2016, 12:10

Thank you Guys :D that was so helpfull :)
User avatar
Phelom
Avatar-of-War
 
Posts: 195
Joined: 08 Apr 2015, 15:04
Location: Tizi Ouzou
Has liked: 104 times
Been liked: 25 times
FAF User Name: Phelom/Gurzil


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest