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!!