duanjingyu007 / jquery-i18n-properties

Automatically exported from code.google.com/p/jquery-i18n-properties
0 stars 0 forks source link

Property with numeric prefix cause Unexpected token in jQuery #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create resource, which contains property with numeric prefix. Like:
1_guide=One Guide
2. Use jQuery 1.6.3 or later, load property file via: $.i18n.properties

What is the expected output? 
You'll see JavaScript error Uncaught SyntaxError: Unexpected token ILLEGAL. If 
you use jQuery 1.6.2 and prior then there is no error.

What do you see instead?
Exception that explains that resource is corrupted and that you should not use 
numeric prefix in property definition or fix loading of such a property.

Workaround
Fix property file and replace all properties which have numeric prefix.

What version of the product are you using? On what operating system?
query-i18n-properties-1.0.9
Problem detected on Windows - Google Chrome 15, IE 9, FF7 and Opera 11.

Original issue reported on code.google.com by juraj.michalek on 20 Nov 2011 at 10:49