by Admin 29. January 2012 03:36

The Translation component of the Internationalization (i18n) feature allows to translate all text constants of an App. 

Translations are stored as .po files in the gettext format on the server.

Text constants in .html templates are translated by applying the class i18n to a block e.g.



Anytime a template is loaded all blocks with the i18n class applied will automatically be translated. 


In the ViewModel text can be translated with the global T() function e.g.


alert(T("Hello {0}", $App.userProfile.username));

Comments (1) -

Pingbacks and trackbacks (1)+