Ticket #695 (closed Feature Request: fixed)
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"
