[ltb-dev] [LDAP Tool Box - Feature #329] automatic Language detection

noreply at lsc-project.org noreply at lsc-project.org
Fri Aug 12 16:11:05 CEST 2011


Issue #329 has been updated by Roy Kaldung.

File index.patch added

Here is the last patch for index.php and the needed changes on the config.inc.php:

replace then part with

<pre>
# Language
$lang = 'en';
</pre>

to:
<pre>
# available languages
$languages = array('en', 'de', 'es', 'fr', 'nl', 'pt-BR')
# Language
$lang ="en";
$lang = detectLanguage($lang, $languages);
</pre>

The $languages array contains the file prefixes from lang/*.inc.php

Some annotations:
- filter extension used, enabled by default as of PHP 5.2.0
- use of PCRE Regular Expression, because Posix RegExp are deprecated as of PHP 5.3


----------------------------------------
Feature #329: automatic Language detection
http://tools.lsc-project.org/issues/329

Author: Roy Kaldung
Status: New
Priority: Normal
Assigned to: 
Category: Self Service Password
Target version: 


The UI language is selected from the language list which the Browser provides. There is also a default setting available.



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ltb-project.org/pipermail/ltb-dev/attachments/20110812/988d35af/attachment.htm>


More information about the ltb-dev mailing list