Hi,
The application I am developing for my work should be in 12 different languages.
So every button, tabbutton..... Has its own "text" depending on the language selected on the first view.
How do I solve this in the designer?
Printable View
Hi,
The application I am developing for my work should be in 12 different languages.
So every button, tabbutton..... Has its own "text" depending on the language selected on the first view.
How do I solve this in the designer?
We plan to add multi lang support further in the road map. We don't support it directly as of yet
Sounds good. But we have a lot of customers with the need for languages. So I need temp solution.
Any good advise? I did it in ST1 by having a object for every language, like danish.hello world give "hej".
But I don't see how I could set a text property to something else then a String in the Designer?
Would have to be done after the fact outside of designer. You could use Designer to do it in one language and then use favorite text editor and find/replace tactics to replace the strings with objects
I have to change the language inside the application. So the first view is a language selector and the language in the whole application should be the selected one.
My deadline is soon so I have to figure this out. If no one has any sugestions I might post my solution here. Language selection will be essential for many of our apps.
Mmmmm...
I been thinking on such issue and the only solution you have is to write some sort of interceptor on constructor and/or initComponent() which read language resource, traverse the DOM tree and replace properties (label, title, etc.) of already instantiated views.
Regards.
We need to be able to offer users customisable literals for everything.
So what we've done so far is to define a function in launch() like window.myapp.t() which takes a string argument and returns the corresponding string from an associative array defined in a localisation js file included earlier. So every time you need a literal (eg a label) you put myapp.t('thisform.thislabel')
I'd be interested to hear better suggestions and look forward to Sencha fully supporting translations.
No you can't do this in Designer.
you could do something clever like set all the components you need localized to a special cls like localizeMe and a 2nd cls to $localizeIndex.
then you could have a script that traverses the dom on application launch looking for all components that have .localizeMe and you could use the $whatever to lookup the correct text depending on localization. Include a different resource file depending on language.
...?
Hi,
Its going great with this feature. I just have one problem, Navigation View Title.
I would like to change the title on the toolbar title. But if i change config.title = foo; It will not be visible.
There is not set and get. What can i do?