Question

I was searching info in the itnernet , and I find some information how to change languages in ExtJS. it is on the dev.sencha.com

As I see, they use locale/ext-lang-{0}.js files.

Ok That's great! but I need to change my own texts too. For example I have Ext.MessageBox.alert and I want to get text from properti files.

Is there any way to use i18n files too? Using langauge parameter of URL (?lang=en, ?lang=fr) use text-en.properties or text-fr.propertes.

I need a good tutorial link, how to create multi language ExtJS page.

I see Ext.ux.Localizer add on. link but I dont understand how to use it. how to change language :(

thank you.

Was it helpful?

Solution

I'd recommend looking at the Ux.locale.Manager plugin which works well (https://github.com/mitchellsimoens/Ux.locale.Manager).

I have written an article on how to use it which might be of use: https://web.archive.org/web/20141103155453/http://www.swarmonline.com:80/2013/02/localising-sencha-touch-and-ext-js-applications-with-ux-locale-manager/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top