Hi!
I hope this is right address to get some help about this.
I tried many ways to get working locales, but nothing works.
My OS is FreeBSD 4.5 and php i use is 4.1.1.
I want to get slovenian locale working
If I set LC_ALL in my environment and if i type date for example in
shell everything is OK, i see date printet in my language.
but when i type this i PHP
setlocale(LC_ALL, 'sl_SI.ISO_8859-2');
echo "<pre>";
print_r(localeconv());
i get output like this
Array
(
[decimal_point] => .
[thousands_sep] =>
[int_curr_symbol] =>
[currency_symbol] =>
[mon_decimal_point] =>
[mon_thousands_sep] =>
[positive_sign] =>
[negative_sign] =>
[int_frac_digits] => 127
[frac_digits] => 127
[p_cs_precedes] => 127
[p_sep_by_space] => 127
[n_cs_precedes] => 127
[n_sep_by_space] => 127
[p_sign_posn] => 127
[n_sign_posn] => 127
[grouping] => Array
(
)
[mon_grouping] => Array
(
but it has to be like this
Array
(
[decimal_point] => ,
[thousands_sep] => .
[int_curr_symbol] => SIT
[currency_symbol] => SIT
[mon_decimal_point] => ,
[mon_thousands_sep] => .
[positive_sign] =>
[negative_sign] => -
[int_frac_digits] => 2
[frac_digits] => 2
[p_cs_precedes] => 0
[p_sep_by_space] => 1
[n_cs_precedes] => 0
[n_sep_by_space] => 1
[p_sign_posn] => 1
[n_sign_posn] => 1
[grouping] => Array
(
[0] => 3
)
[mon_grouping] => Array
(
[0] => 3
)
I tried exact code on window2000 and i get second output, so on
windows works this but on unix does not.
There is also strange thig about nameing locales. Somewhere i have to
use only sl or slv, somwhere sl_SI or maybe like here
sl_SI.ISO_8859-2. Shouldn't be this somehow standard. So if i move my
code on other machine nothing would work or what.
Plese if someboday can help me or have some good doc.
--
lp,
Uros mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php