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
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to