project-navigation
Personal tools

Author Topic: how to make a new language translation pls help  (Read 3635 times)

Offline n.mamos

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
how to make a new language translation pls help
« on: January 13, 2008, 07:25:58 pm »
Hello all, i am from Greece and i make a translation of the en.po file what do i have to do to see it in my pc and to upload it so this amazing game can be accessible in my language.

tks

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: how to make a new language translation pls help
« Reply #1 on: January 14, 2008, 08:51:09 am »
add a file called e.g greek.ufo to base/ufos (if the ufos folder doens't exist, create it)

fill with content like this:

Code: [Select]
language gr {
"_Greek"
{
gr_GR.UTF-8
gr_GR.utf8
}
}

i'm not sure about the gr_GR stuff - add all possible locale strings to this list. then compile your po file into a mo file (poedit will do this for you)

after you have that mo file compiled, go into base/i18n/ and create gr/LC_MESSAGES copy your greek ufoai.mo file (maybe you have to rename it - it must have the name ufoai.mo) into base/i18n/gr/LC_MESSAGES/ufoai.mo

next time you start the game it should be listed in the options menu.

please also submit the gr.po file to our patch tracker - as i've already written in your other post. then we can add it to the svn and release it officially with the next patch

(edit: gr.po, of course, not fr.po)
« Last Edit: January 14, 2008, 01:39:53 pm by BTAxis »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: how to make a new language translation pls help
« Reply #2 on: January 15, 2008, 04:56:28 pm »
the patch you submitted has no file attached ;-)