[Xerte-dev] Re: Language fall back

David Goodwin david at palepurple.co.uk
Mon Mar 12 22:13:06 GMT 2012

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.


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'

Office: 0845 0046746     Mobile: 07792380669 

Follow us on Twitter: @PalePurpleLtd

More information about the Xerte-dev mailing list