I installed OJS 2 and had configured it to run correctly.
I then want to create another locale by copy directories
$OJS/locale/en_US to th_TH
$OJS/dbscripts/xml/data/locale/en_US to th_TH
$OJS/help/en_US to th_TH
$OJS/rt/en_US to th_TH
and then edit file $OJS/registry/locales.xml as follow
- Code: Select all
<locales>
<locale key="en_US" name="English"/>
<locale key="th_TH" name="Thai"/>
</locales>
I can successfully install my newly locale
in Language administration page.
The language option appears correctly in OJS page.
And I can change between EN and TH now.
The only thing I'd left is to translate content in
$OJS/locale/th_TH/locale.xml to Thai language.
But this is where the problem begins.
When I change one word, only one word
from English to Thai, say
- Code: Select all
.......
'navigation.home' => 'Home',
'navigation.about' => 'About',
'navigation.userHome' => 'User Home',
.......
to
- Code: Select all
.......
'navigation.home' => 'หน้าหลัก',
'navigation.about' => 'About',
'navigation.userHome' => 'User Home',
.......
And do refresh OJS page.
Every words in OJS page then gone.
The place where it should to render the
HOME or ABOUT text is showing
##navigation.home## and ##navigation.about## instead.
I've noticed that the file $OJS/locale/cache/th_TH.inc.php
has not been generated correctly. It seems like XML parser
could not understand Thai characters. Every word constants
in the cache file after Thai characters were disappeared.
I've also tried to change encoding of $OJS/locale/th_TH/locale.xml from
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
to
- Code: Select all
<?xml version="1.0" encoding="TIS-620"?>
But no luck.
Am I missing something?
Please help.
Panya Thanyaprasertkul.
