['Javascript translator" class="inputbox autowidth']

Show off new creations, get help, or just chat about all aspects of web development and design.

Re: Javascript translator

Postby Terr on Sun May 02, 2010 9:04 pm

It may be faster to use a map:
Code: Select all
var englishToAmaiy = {
    "engword" : "amaiyword",
};

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

var test = englishToAmaiy[engword];
Terr
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Mon Oct 12, 2009 11:35 pm

Re: Javascript translator

Postby lampard11 on Mon Dec 26, 2011 4:35 am

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.
lampard11
Dumpling
Dumpling
 
Joined: Sat Dec 24, 2011 11:48 am

Re: Javascript translator

Postby zombie@computer on Mon Dec 26, 2011 10:09 am

*probably* ?
When you are up to your neck in shit, keep your head up high
User avatar
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Return to Web Design & Development

Who is online

Users browsing this forum: No registered users

cron