5.3.0-git
2014-12-19

[#10457] Auto-detect locale support
Summary Auto-detect locale support
Queue Horde Base
Queue Version Git master
Type Enhancement
State New
Priority 1. Low
Owners
Requester wrobel (at) horde (dot) org
Created 2011-08-26 (1211 days ago)
Due
Updated
Assigned
Resolved
Milestone
Patch No

History
2011-08-26 09:40:38 Gunnar Wrobel Comment #1
State ⇒ New
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ Auto-detect locale support
Type ⇒ Enhancement
Priority ⇒ 1. Low
Patch ⇒ No
Reply to this comment
Horde 4 requires UTF-8 locales for the supported translations. 
Detecting the locales present is possible.

So we should:

1) Add a test for this in test.php so that the admin immediately sees 
which translations/charsets are actually available. This test should 
fail if there is no UTF-8 support in any locale.

2) We should disable the language selection on the login screen for 
languages not supported by the system.

3) We probably need an FAQ entry immediately then, to explain why some 
translations do not show up in the drop down list.

I briefly looked at the code to determine how this could be 
implemented. The main question I still had was how to cache the 
supported languages system wide within Horde_Core_Registry_Nlsconfig. 
But there is already a isValid($lang) method there that should allow 
to quickly add the required test infrastructure.