[Tickets #11139] Cannot change Horde Language under Windows

bugs at horde.org bugs at horde.org
Tue Apr 10 08:20:31 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11139
------------------------------------------------------------------------------
  Ticket             | 11139
  Created By         | almikhailov at parallels.com
  Summary            | Cannot change Horde Language under Windows
  Queue              | Horde Base
  Version            | 4.0.14
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


almikhailov at parallels.com (2012-04-10 08:20) wrote:

PROBLEM DESCRIPTION

Changing of Language on Horde Login page does not work under Windows.

ROOT CAUSE

PEAR\Horde\registry.php:
=====================
public function setLanguage($lang = null)
{
...
       if (setlocale(LC_ALL, $lang_charset)) {  // <<<--- returns  
'false' under Windows
           putenv('LC_ALL=' . $lang_charset);
           putenv('LANG=' . $lang_charset);
           putenv('LANGUAGE=' . $lang_charset);
       } else {
           $changed = false;
       }
...
=====================

OS-depended setlocale() function is used:
http://www.php.net/manual/en/function.setlocale.php
=====================
Tip

Windows users will find useful information about locale strings at  
Microsoft's MSDN website. Supported language strings can be found at »  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp and supported country/region strings at »  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_country_strings.asp.
=====================

ADDITIONAL INFORMATION

There was not such problem in H3. It was workarounded.





More information about the bugs mailing list