Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create new language
11-30-2013, 02:47 PM,
#1
How to create new language
Please step to me for create new language. And my locattion in thailand not have thai langusge.
Reply
11-30-2013, 05:31 PM,
#2
RE: How to create new language
Make a new directory for the Thai language

webERP/locale/th_TH.utf8

and a new directory for the translations strings underneath this directory:

webERP/locale/th_TH.utf8/LC_MESSAGES/messages.po


Take the file

webERP/locale/en_GB.utf8/LC_MESSAGES/messages.pot

and copy it to a new directory for Thai

webERP/locale/th_TH.utf8/LC_MESSAGES/messages.po

You should now edit

webERP/locale/th_TH.utf8/LC_MESSAGES/messages.po

to enter all your translations for each line that starts with msgid there needs to by a msgstr below it with the translation - you can look at some of the other translations to see how this is done. You can do this using any editor - or you can get a tool like poedit to do this for you from a nice GUI.

Once you have done all the translations (a big job!!) you run msgfmt (linux) or msgfmt.exe (windows) to create the binary messages.mo

You also need to go to the file

includes/LanguagesArray.php

and edit this to include your language/country settings:

Code:
$LanguagesArray['th_TH.utf8']['LanguageName'] = 'Thai';
$LanguagesArray['th_TH.utf8']['WindowsLocale'] = 'thai';
$LanguagesArray['th_TH.utf8']['DecimalPoint'] = '.';
$LanguagesArray['th_TH.utf8']['ThousandsSeparator'] = ',';

I am not sure what the windows locale name for Thai is though and you should use the Thai name for Thai in the character set that Thai people would understand for the Language name.

It would be great if you would submit your messages.po once you have edited it for your translations and I will include it in the distribution.

There are some other details at the link below:

http://www.weberp.org/wiki/HowToTranslate

Good luck!!
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)