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 17:10:11 +0900
- From: Raymond Wan <rwan.kyoto@example.com>
- Subject: Re: [tlug] Language localization in Javacript
- References: <CA+kCxRb8df237PV1ZdvOp5Emuqgz_=RdVzpa_fPMJEbQZRX3sA@example.com> <4E81AF97.2060001@example.com> <CA+kCxRaM==wbOGH4Qcs__qsPY9SEyQNH9OBefxDbHv0Y2MQ6YQ@example.com> <4E82D4E7.9080708@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11
Hi again, On 28/09/11 17:03, Raymond Wan wrote:On 28/09/11 16:40, Martin G wrote:var x=(language=="en"?english:japanese);I don't know JavaScript so I can't help you with the specific language, but in general, you would probably have to expand a ?: to a series of if...elseif...else statements. If the language supports it, then some kind of switch/case statements would be ideal.Forgot to mention that you probably could nest ?: -- I've never seen it done before but I suppose it is possible. However, you would probably mess up your eyesight when you look at your source code... :-)Ray
- Follow-Ups:
- Re: [tlug] Language localization in Javacript
- From: Josh Glover
- References:
- [tlug] Language localization in Javacript
- From: Martin G
- Re: [tlug] Language localization in Javacript
- From: Darren Cook
- Re: [tlug] Language localization in Javacript
- From: Martin G
- Re: [tlug] Language localization in Javacript
- From: Raymond Wan
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Language localization in Javacript
- 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