Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Language localization in Javacript
- Date: Wed, 28 Sep 2011 16:40:44 +0900
- From: Martin G <ebisumartin@example.com>
- Subject: Re: [tlug] Language localization in Javacript
- References: <CA+kCxRb8df237PV1ZdvOp5Emuqgz_=RdVzpa_fPMJEbQZRX3sA@example.com> <4E81AF97.2060001@example.com>
Darren, (and Lewske), Thank you for responding. > var x=(language=="en"?english:japanese); > ... > alert(x.l00001); This works perfectly. If I understand it, it's essentially an if/else condition, so if language equals "en", then we use the English set, and if not, then we get Japanese. However, I've never used this syntax before and I'm having a hard time extending it. I looked up Javascript and colons on Google, but all I saw was how it's used in JSON syntax, which doesn't seem to be how it's used here. How would I set up a conditional for three or more possible languages? I'm likely to have a dozen or more languages available for this application. Any advice is much appreciated. -- Dave M G
- Follow-Ups:
- Re: [tlug] Language localization in Javacript
- From: Richard Frankum
- Re: [tlug] Language localization in Javacript
- From: Raymond Wan
- Re: [tlug] Language localization in Javacript
- From: Lewske Wada
- Re: [tlug] Language localization in Javacript
- From: Stephen J. Turnbull
- References:
- [tlug] Language localization in Javacript
- From: Martin G
- Re: [tlug] Language localization in Javacript
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Bitsa Woes: Reply and SOLUTION
- Next by Date: Re: [tlug] Language localization in Javacript
- Previous by thread: Re: [tlug] Language localization in Javacript
- Next by thread: Re: [tlug] Language localization in Javacript
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links