View Single Post
Old 11-22-2008, 02:15 PM   #383
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by keng2000 View Post
Hi, I've just finished modifing main.xml and mainStorage.xml for THAI locale by replacing France. I found one tiny error on main.xml with all language, see this sample code.
------------------------------------------------------------------
default:
if(result.length> 13 && (result.lastIndexOf ("books - Page") > 0))
{
text = result.replace(/books - Page/g,"Bücher - Seite");
}
else if(result.length> 12 && result.lastIndexOf("book - Page")>0)
{
text = result.replace(/books - Page/g,"Buch - Seite");
}
----------------------------------------------------------------------------

The second result.replace() must use with "/book - page/g" with no "s"

The result is it will not change the locale for the amount of book is not plural (<2).

Keng2000
Thanks, Keng2000!

Porkupan is doing the localization code so you might want to crosspost in the
thread where he takes suggestions. Thanks again.
JeffElkins is offline   Reply With Quote