Page 1 of 1

i18n support

Posted: Thu May 31, 2012 10:19 pm
by Claudio

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.


i18n support

Posted: Fri Jun 01, 2012 3:14 am
by maxkatz

Agree, that's a good feature!


i18n support

Posted: Thu May 30, 2013 9:21 pm
by Maria Ioannidou

Any news on this feature so far?


i18n support

Posted: Thu May 30, 2013 9:23 pm
by maxkatz

Sorry, not yet.


i18n support

Posted: Sun Jun 30, 2013 6:19 pm
by dudi peretz

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


i18n support

Posted: Sun Jun 30, 2013 6:20 pm
by dudi peretz

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


i18n support

Posted: Sun Jun 30, 2013 10:26 pm
by maxkatz

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


i18n support

Posted: Mon Jul 01, 2013 9:26 am
by dudi peretz

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...