[Xerte-dev] Re: Language fall back

Pat Lockley patrick.lockley at googlemail.com
Mon Mar 12 22:32:53 GMT 2012


I would shy away from 2

It leaves open what to do If a php file exists but a Inc file doesn't for this language but does for another language. Fail? Load?

On 12 Mar 2012, at 22:13, David Goodwin <david at palepurple.co.uk> wrote:

> The standard approach is :
> 
> 1. Check for existence of $_COOKIE value e.g. for 'lang', if present, use that.
> 2. Check to see what languages the browser requests (see e.g. Zend_Locale (I think)) and if we have a matching one use that.
> 3. Allow the user to choose via some sort of drop down.
> 
> 
> I was planning on implementing 1 and 2 sometime soon.
> 
> David.
> 
> On 12 Mar 2012, at 19:57, Pat Lockley wrote:
> 
>> issue
>> 
>> In the future some one may wish to develop some new functionality in XOT
>> 
>> This may be written in Dutch or Spanish
>> 
>> It may be plausible to have a site supporting multiple languages
>> 
>> The translation for Dutch may be there for Spanish, but might not be
>> there for English.
>> 
>> How do we support a "fallback language"?
>> 
>> _______________________________________________
>> Xerte-dev mailing list
>> Xerte-dev at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>> 
>> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>> 
>> This message has been checked for viruses but the contents of an attachment
>> may still contain software viruses which could damage your computer system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
>> 
> 
> Pale Purple Ltd.  (Company No: 5580814)
> 'Business Web Application Development and Training in PHP'
> 
> http://www.palepurple.co.uk   
> Office: 0845 0046746     Mobile: 07792380669 
> 
> Follow us on Twitter: @PalePurpleLtd
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



More information about the Xerte-dev mailing list