ytrstu / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Change Javascript i18n messages object to function. #283

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Current CMS i18n implementation uses file /i18n.js which contains object 
"messages" containing all localized messages from message bundle for current 
user locale as properties with message key as names.

If you forgot to insert new message to message bundle then you can get an 
exception in Javascript code because object messages will not have required 
property.

Change message from object to function. Add logic for producing __message_key__ 
if such message not found.

Original issue reported on code.google.com by kinyelo@gmail.com on 26 Jul 2010 at 4:51

GoogleCodeExporter commented 8 years ago
Implemented.

Original comment by kinyelo@gmail.com on 31 Jul 2010 at 6:42