Restrict Zend_Locale to some locales

1 message Options
Embed this post
Permalink
Jurian Sluiman

Restrict Zend_Locale to some locales

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi all,
I'm trying to set up Zend_Locale correctly, but can't get an option to let the following work:
I have a site and translated it into the locales C and D with D the default locale. A user visits the site and sends the Accept-Language header "A, B;q=0.7,C;q=0.3".

Now because locales A - D are installed on the system, Zend will detect locale A. But I'd like to accept only locales C and D for my site. Of course I can look if the selected locale from Zend matches one of the installed ones, but then the user's second and third preferences are ignored.

Do you guys have any suggestions?
Regards, Jurian

--
Jurian Sluiman
Soflomo.com