> At 17:20 2005-12-06, you wrote:
>
>>> I am doing a fresh install of a mail-server.
>>> My setup is as follows (nothing is chrooted):
>>>
>>>
>>>
>>> OS: OpenBSD 3.8
>>> Apache/1.3.29 (not chrooted)
>>> PHP 5.0.4
>>> mySQL 4.0.24 postfix 2.2.5p0 courier-authlib 0.57 courier-imap 4.0.6
>>>
>>> With all of the above tested and working, I proceeded
>>> to install:
>>>
>>> SquirrelMail 1.4.5
>>>
>>>
>>>
>>> and I also unpacked the "all-locales" for 1.4.5 in the SquirrelMail
>>> directory (or rather ran the install- script)
>>>
>>> I went on to run conf.pl, loaded the presets for
>>> courier-imap, and set a few other options like the directories and so
>>> on. Everything works fine, except when I try to change
>>> the language under 'display options'. The choice I make 'sticks', but
>>> has no effect on the squirrelmail interface.
>>>
>>> I have read the archives, and this is the troubleshooting
>>> I've done so far:
>>>
>>>
>>>
>>> phpinfo tells me its _not_ in safe_mode, which apparently could cause
>>>  problems on openbsd. phpinfo also tells me gettext support is
>>> enabled, which I understand is the recommended way to go.
>>>
>>>
>>> Still, I cant get squat to happen, whatever language
>>> I choose. Doesn't matter if I try to change the
>>> language default with conf.pl of I try to change from the user
>>> interface. Everything is always english, and
>>> I get no error messages.
>>>
>>>
>>>
>>> Can someone help me troubleshoot from here?
>>> I am stuck.
>>>
>>
>> Could you check one modification?
>>
>>
>> open functions/i18n.php, find ---
>> } elseif (is_array($longlocale)) {
>> // setting of all locales failed.
>> // we need string instead of array used in LOCALE key.
>> $longlocale=$sm_notAlias;
>> }
>> ---
>>
>>
>> and replace it with
>>
>> ---
>> } elseif (is_array($longlocale)) {
>> // setting of all locales failed.
>> // we need string instead of array used in LOCALE key.
>> $longlocale=array_shift($languages[$sm_notAlias]['LOCALE']);
>> }
>> ---
>>
>>
>> --
>> Tomas
>>
>
> Thank you for taking a shot at helping me.
>
>
> I have done as you asked, i18n.php now contains:
> ---
> } elseif (is_array($longlocale)) {
> // setting of all locales failed.
> // we need string instead of array used in LOCALE key.
> // $longlocale=$sm_notAlias;
> $longlocale=array_shift($languages[$sm_notAlias]['LOCALE']);
> }
> ---
>
>
> I rebooted the entire machine just to be safe, but after reboot
> everything remains the same. It didnt do any difference. Any other
> suggestions on how to go on troubleshooting?

attached test script. could you run it with ktrace?

ktrace php gettext.php

and show me ktrace.out.

-- 
Tomas

Attachment: gettext.php
Description: application/php

Reply via email to