Public bug reported:

Binary package hint: phpldapadmin

phpLDAPadmin can be configured by the file /etc/phpldapadmin/config.php.
It's said that we only have to put a parameter to (for example) 'fr' or
'es'.

But it's don't work. Two problems :

1/ with language config set as "fr", the file
/usr/share/ldapadmin/lib/common.php search for a
/usr/share/phpldapadmin/locale/fr directory instead of
/usr/share/phpldapadmin/locale/fr_FR. The solution is to add line 125
(before "$language_file =") that :

$language = auto_lang($language);

And automatically it will change fr to fr_FR. That's done.

2/ the php function setlocale need to have the languqge AND the charset so line 
130 of the same file, 
    130         setlocale(LC_ALL,$language); # set LC_ALL to de_DE

becom :
    130         setlocale(LC_ALL,$language.".UTF-8"); # set LC_ALL to de_DE

Thanks for correction and have fun ;).

** Affects: phpldapadmin (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
locales configuration doesn't work
https://bugs.launchpad.net/bugs/118322
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to