Page 1 of 1

How to get the translation to the game?

PostPosted: 09 Apr 2017, 16:20
by Čiučoi
I was trying to search for an answer how to enable using the translation of the game. Is there somewhere the instructions what else has to be done than to get the translated .po file to data/po folder? It would be easier to check if I've understood some of the contexts right if I could actually play the game with that translation.

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 00:30
by Auria
Hi,

from your description I'm unsure whether you are trying to play the game in another language, or if you want to help translate the game?

To help translate the game, please take a look at https://supertuxkart.net/Translating_STK

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 06:47
by Čiučoi
Both, translating and playing the game with another language :D I've already uploaded the translation to Transifex. But to make sure that I've understood all of the contexts right I'd like to play the game with the translation.

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 12:53
by GunChleoc
All you need to do is to copy your translation to <supertuxkart>/data/po/<iso>.po

If your languages hasn't been added to the selection in the user interface yet, you can replace the po file for a language that you don't speak and select that language from the menu.

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 14:07
by Čiučoi
Thanks for the answer. It's good to know I can test the translation though the language isn't in the language list yet. Is there some way to add it there by myself or does it need a lot of editing the code?

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 14:39
by deve
The languages list can be found in:
https://github.com/supertuxkart/stk-cod ... nguage.cpp

I don't remember precisely, but probably unknown languages are filtered and indeed they are not displayed in the languages list.

What is the name/symbol/encoding of the language that you are working on? So that we could add it to the languages list.

If plural forms are important, it should be additionally handled in:
https://github.com/supertuxkart/stk-cod ... _forms.cpp

Re: How to get the translation to the game?

PostPosted: 10 Apr 2017, 15:16
by Čiučoi
plural forms nplurals=2; plural=(n != 1); and the translation here

Re: How to get the translation to the game?

PostPosted: 11 Apr 2017, 23:43
by Auria
Hi, I have added the language to the game, it will feature in next version (if the translation is advane enough)

Re: How to get the translation to the game?

PostPosted: 12 Apr 2017, 10:21
by Čiučoi
Great! Is there information about when the next version is about to be published, so that I'll check the contexts before that :)

Re: How to get the translation to the game?

PostPosted: 12 Apr 2017, 10:48
by GunChleoc
Release dates are never certain with FLOSS projects - the easiest way to notify translators will be an announcement through the Transifex project.

Re: How to get the translation to the game?

PostPosted: 12 Apr 2017, 17:48
by Arthur
We have a mailing list for announcing string freezes, as detailed in https://supertuxkart.net/Translating_STK