Ticket #695 (closed Feature Request: fixed)

Opened 4 months ago

Last modified 4 months ago

problem setlocale windows

Reported by: phk Owned by: PugFish
Priority: major Milestone: 2.2
Component: Core Version: SVN HEAD
Keywords: setlocale Cc:

Description

Hi,

i'm using microsoft windows. The problem is, that setlocale needs different parameter-values on windows and unix/linux systems.

to change to german, kohana needs the following line in the config file: $configlanguage? = 'de_DE';

kohana executes then the following statement: setlocal(LC_ALL,'de_DE.UTF-8');

I'm sure, this works fine with linux. but using windows this do not work. windows needs 'German_Germany' but 'German_Germany.UTF-8' is wrong all i found is, that only 'German_Germany.1252' is correct but this is not possible to set using the config-file of kohana.

so there should be the possibility to configure a list of possible languages.

for example extend the locale-config-file in the way:

$configde_DE? = array('de_DE.UTF-8', 'German_Germany');

kohana should then try each value of the array.

the attached files shows my idea of solving this problem. just look for "phk"

Attachments

locale.php (150 bytes) - added by phk 4 months ago.
Kohana.php (27.5 kB) - added by phk 4 months ago.

Change History

Changed 4 months ago by phk

Changed 4 months ago by phk

Changed 4 months ago by PugFish

  • owner changed from Shadowhand to PugFish
  • milestone changed from 2.1.3 to 2.2

Changed 4 months ago by PugFish

  • status changed from new to closed
  • resolution set to fixed

Fixed in r3147

Note: See TracTickets for help on using tickets.