How do you add languages to Xonotic? - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12) +--- Thread: How do you add languages to Xonotic? (/showthread.php?tid=6214) |
How do you add languages to Xonotic? - Beagle - 05-30-2016 I want to know how do you add languages to Xonotic, I want to add more languages into Xonotic. I have the time to contribute right now RE: How do you add languages to Xonotic? - cefiar - 05-30-2016 There are files in Gitlab that are called common.*.po that seem to contain the translation data. The * in the filename is the country code and/or dialect info (eg: ru, de, de_CH, en, en_AU, kk@Cyrl, etc). The .po file format is well documented and there are lots of tools that can help you edit it (though you could just do it by hand too). https://gitlab.com/xonotic/xonotic-data.pk3dir/tree/master Notes: I'm not messing with the code, but I've been involved in enough projects that have multiple languages to know where to start looking. Dunno if there is a way to tell Xonotic to directly use a .po file for testing, short of building everything and changing language in settings. If there is, I am sure someone will speak up with how. RE: How do you add languages to Xonotic? - Beagle - 05-30-2016 Where is English (EN) I've been searching hard and I can't find it, I see en_AU but not normal en. I want to use EN as a base for translating a language. RE: How do you add languages to Xonotic? - SpiKe - 05-31-2016 The english file is simply named common.po. You can request to join a translation team here: https://www.transifex.com/team-xonotic/xonotic/ Once your request has been accepted, you are free to translate Xonotic directly through the Transifex website or by downloading & editing the .po file then uploading it. Testing a translation file is very easy: download the latest .po file from Transifex (choose "download for use"), rename it to common.*.po (* being the language/country code) and move it to $HOME/.xonotic/data on Linux, or [user_path]\Saved Games\xonotic\data on Windows. Important: before translating, carefully read Samual's guidelines: http://forums.xonotic.org/showthread.php?tid=4178&pid=58824#pid58824 RE: How do you add languages to Xonotic? - Mirio - 05-31-2016 Also be fluent in that language... RE: How do you add languages to Xonotic? - Beagle - 05-31-2016 what if the translation I want to do isn't there? Because I see one I want to translate isn't there. (ID) Indonesian. RE: How do you add languages to Xonotic? - Mario - 05-31-2016 Please note that using Google Translate to acquire translations is unacceptable, as its results are quite poor. RE: How do you add languages to Xonotic? - Beagle - 06-01-2016 Alright Mario. RE: How do you add languages to Xonotic? - Spaceman - 06-02-2016 (05-31-2016, 02:10 PM)Beagle Wrote: what if the translation I want to do isn't there? Because I see one I want to translate isn't there. (ID) Indonesian.I guess you could fake it by using another language. Delete the French translation and use their spot common.FR.po RE: How do you add languages to Xonotic? - cefiar - 06-02-2016 Actually you should just copy the main common.po file to common.id_ID.po and then edit that. |