Claudio
Posts: 0
Joined: Thu May 31, 2012 9:29 pm

i18n support

Hi,
I think it would be very useful to introduce the i18n support for the labels name and default text of the GUI components.
There is already a jQuery plugin for the i18n support and it would be nice to see it fully integrated with the IDE.

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

i18n support

Agree, that's a good feature!

Maria Ioannidou
Posts: 0
Joined: Thu May 30, 2013 9:18 pm

i18n support

Any news on this feature so far?

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

i18n support

Sorry, not yet.

dudi peretz
Posts: 0
Joined: Wed Jun 26, 2013 8:15 am

i18n support

See http://nirus.github.io/HTMLed/ , I use it and it's working fine and very simle to use it.

dudi peretz
Posts: 0
Joined: Wed Jun 26, 2013 8:15 am

i18n support

See http://nirus.github.io/HTMLed/ , I use it and it's working fine and very simle to use it.

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

i18n support

Thanks for posting. Can you show exactly how you use it in an app built in Appery.io?

dudi peretz
Posts: 0
Joined: Wed Jun 26, 2013 8:15 am

i18n support

Do the following steps:

  1. Add meta tag content in the head tag ' meta charset="UTF-8" '
  2. Add the "HTMLed.js" before the Jquery Mobile framework tag
  3. create .properties file under files/views/assets/bundle directory where lang is the language to translate.
  4. Now open the "HTMLed.js" script, set the language preference(You can read the comments in the script file to get better understanding).
    //Your render settings should be mentioned here
    var lang = {
    autoDetect: false, //This tells the browser to detect the language preference and load ".properties" file automatically
    langPref: "fr", // if you set "autoDetect:false" you should mention the name of the ".properties" file you want to load
    langBundle:"files/views/assets/bundle",//folder name that contains all ".properties" files
    }
  5. Now use the keys from the .properties file whenever u set text for button, lables...

Return to “Issues”