Page 1 of 1

Re: Javascript translator

PostPosted: Sun May 02, 2010 9:04 pm
by Terr
It may be faster to use a map:
Code: Select all
var englishToAmaiy = {
    "engword" : "amaiyword",
};

var amaiyToEnglish = {
    "amaiyword" : "engword",
};

var test = englishToAmaiy[engword];

Re: Javascript translator

PostPosted: Mon Dec 26, 2011 4:35 am
by lampard11
I am using gettext in my PHP code, but i have a big problem. All my Javascript files are not affected by the translation, can somebody tell me an easy way to get the translations in the chosen language into JavaScript as well.

Re: Javascript translator

PostPosted: Mon Dec 26, 2011 10:09 am
by zombie@computer
*probably* ?