Ubuntu

locales configuration doesn't work

Reported by Bastien Jaillot on 2007-06-02
4
Affects Status Importance Assigned to Milestone
phpldapadmin (Ubuntu)
Medium
Unassigned

Bug Description

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 ;).

Daniel Hahler (blueyed) wrote :

This is only a documentation problem, at least in Gutsy's version (0.9.8.4-1ubuntu1).
There you are supposed to use "fr_FR" for "language" and it should work.
I'll provide a patch to fix this documentation issue.

Changed in phpldapadmin:
importance: Undecided → Medium
status: New → Triaged
Daniel Hahler (blueyed) wrote :

phpldapadmin (0.9.8.4-2ubuntu1) hardy; urgency=low

  * Merge from Debian unstable (LP: #175701). Remaining Ubuntu changes:
    - debian/control: Remove Depends on php4/libapache packages
  * Fix documentation of language/locale config variable
    (LP: #118322)
  * debian/control: Standards-Version 3.7.3

phpldapadmin (0.9.8.4-2) unstable; urgency=low

  * debian/control: fix dependencies on php. (Closes: #444354)

 -- dAniel hAhler <email address hidden> Tue, 11 Dec 2007 21:46:39 +0100

Changed in phpldapadmin:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers