PDA

View Full Version : i18n Experiment with css content



elmasse
23 Mar 2012, 2:24 PM
Hi guys!

I have a simple experiment for doing internationalization. In this example I'm using css content properties to not reload the app when a lang changes. It works pretty nice but I'm not sure about the performance yet.

Check the example working at http://elmasse.gaver.nl/projects/bundle-css

Or see the code from github repo at https://github.com/elmasse/Ext.i18n.Bundle-touch/tree/css-content

As I said, this is an experiment. Maybe it can be ported to ExtJS so the impact of adding more dom elements is not as important as in mobile.

mitchellsimoens
24 Mar 2012, 6:51 AM
I would be interested in performance. I am changing locale via JS so you don't need to reload to set locale.

empyrion
27 Mar 2012, 2:44 AM
Could you give an example of how you are doing internationalization via javascript? I have to do something like that for an app and i have been wondering how to do it.

Thanks,

Manuel Silva

mrsunshine
27 Mar 2012, 3:38 AM
you can fin Mitchells local manager here:

https://github.com/mitchellsimoens/Ux.locale.Manager