Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Multi-language

Hello.

I would like to create my app in multiple languages (Spanish, English, French...).

I suppose that I will need to create some kind of file (dictionary) with ids of the elements, and in the elements call use the words in the dictionary.

How can I make it?

Thanks.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Multi-language

You would need to code this capability. For any text/labels -- you could create language specific objects, for example:

saveButtonLabel = Save Product
cancelButtonLabel = Cancel Purchase

and similar once for other languages you want to use. Then, when you run the app, you would determine the language and use the appropriate language bundle.

Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Multi-language

Thanks Max.

But how do I change the text of an element, or how do I refer to it? Could you give a little example please?

pafowkes
Posts: 0
Joined: Fri Apr 12, 2013 1:42 pm

Multi-language

Something like this for instance;

var text = localStorage.getItem('text');
Appery('Output').text(text);

The tutorials have some examples

Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Multi-language

Thanks!

Return to “Issues”