How to get the translation to the game?

How to get the translation to the game?

Postby Čiučoi » 09 Apr 2017, 16:20

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.
Čiučoi
 
Posts: 7
Joined: 09 Apr 2017, 16:08

Re: How to get the translation to the game?

Postby Auria » 10 Apr 2017, 00:30

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: How to get the translation to the game?

Postby Čiučoi » 10 Apr 2017, 06:47

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.
Čiučoi
 
Posts: 7
Joined: 09 Apr 2017, 16:08

Re: How to get the translation to the game?

Postby GunChleoc » 10 Apr 2017, 12:53

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.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: How to get the translation to the game?

Postby Čiučoi » 10 Apr 2017, 14:07

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?
Čiučoi
 
Posts: 7
Joined: 09 Apr 2017, 16:08

Re: How to get the translation to the game?

Postby deve » 10 Apr 2017, 14:39

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
deve
 
Posts: 268
Joined: 23 Jan 2014, 13:45

Re: How to get the translation to the game?

Postby Čiučoi » 10 Apr 2017, 15:16

plural forms nplurals=2; plural=(n != 1); and the translation here
Čiučoi
 
Posts: 7
Joined: 09 Apr 2017, 16:08

Re: How to get the translation to the game?

Postby Auria » 11 Apr 2017, 23:43

Hi, I have added the language to the game, it will feature in next version (if the translation is advane enough)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: How to get the translation to the game?

Postby Čiučoi » 12 Apr 2017, 10:21

Great! Is there information about when the next version is about to be published, so that I'll check the contexts before that :)
Čiučoi
 
Posts: 7
Joined: 09 Apr 2017, 16:08

Re: How to get the translation to the game?

Postby GunChleoc » 12 Apr 2017, 10:48

Release dates are never certain with FLOSS projects - the easiest way to notify translators will be an announcement through the Transifex project.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: How to get the translation to the game?

Postby Arthur » 12 Apr 2017, 17:48

We have a mailing list for announcing string freezes, as detailed in https://supertuxkart.net/Translating_STK
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Who is online

Users browsing this forum: No registered users and 1 guest