View Single Post
Old 11-22-2008, 08:00 PM   #78
keng2000
Researcher and Consultant
keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.
 
Posts: 210
Karma: 364
Join Date: Nov 2008
Location: Bangkok, THAILAND
Device: MACBOOKPRO17" HP2400TX SONYUX27
Little Bug in Locale.

--------------------------------------------------------------------------------

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
keng2000 is offline   Reply With Quote