
Originally Posted by
ruchida Thank you so much for the PHP4 compatibility!
This is really a great tool. Very neat user interface.
Thanks a lot!
One problem with the Japanese language pack. It has a suffix ja(.lang.php) which is not like the "en_us" style, so I encounter the error below and can not go forward.
PHP Code:
The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2} ex : ('en_us')
Your help would be greatly appreciated.
Here is how you can correct this problem:
Edit the manifest.class.inc file which is located in the /inc directory and find line 72:
PHP Code:
else if (!strlen( $this->get("lang_file_suffix")) == 5 || ! eregi("[a-z][a-z]_[a-z][a-z]", $this->get("lang_file_suffix"))) return "The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2} ex : ('en_us')";
replace it with this one:
PHP Code:
else if (! eregi('^[a-zA-Z]{2}(_[a-zA-Z]{2})?$', $this->get("lang_file_suffix"))) return "The expected syntax for the lang_file_suffix property is [:alpha:]{2}_[:alpha:]{2} or [:alpha:]{2} ex : ('en_us', 'ja')";
This new line will allow your 'ja' file tag.
It will also allow upper-case characters for people who need them.
best regards
Bookmarks