Alexei Chetroi schrieb:

On Tue, Feb 22, 2005 at 12:19:22PM +0100, Ives Steglich wrote:


Date: Tue, 22 Feb 2005 12:19:22 +0100
From: Ives Steglich <[EMAIL PROTECTED]>
To: [email protected]
Reply-To: [email protected]
Subject: Re: [OpenCA-Devel] language/localization question

Piotr Wadas wrote:


Hello,


Additionally in my installation "Language" button doesn't work as expected, e.g. when I have polish (PL) language and click e.g. "english",
or "german", I still have polish, even after log in/out.


thats strange, usaly it should work, but you may have a look at the code in initServer, basicaly at setLanguage and setBrowserLanguage and where they get called

.../OpenCA/lib/functions/initServer

usaly the behavior should be:

set the browser prefered language if possible
otherwise use C

this can get overwritten by user during the session
when he clicks on a language at the interface
(since initSession gets always called after setBrowserLanguage,
so the userselection should overwrite this in a session)

maybe you enable some debugging... then you should see, when which language gets set it should be wirtten in the stderr.log file

in etc/log.xml



This also could be caused if not necessary locale is installed. Piotr, do you have locales package installed and what your /etc/locale.gen looks like? IIRC when I installed imp3, which supports variety of languages, it didn't want to switch to another language, until I've generated needed locales. It may be your case also.

--
Alexei Chetroi




I have the same Problem with my Installation on Solaris. If I set LC_ALL=de_DE.ISO8859-1 in the initial shell, then OpenCA is available only in German, but Changing Language in the Web-Interface causes corrupt umlauts. If I start without setting LC_ALL, which is unset in Solaris installation by default, all stuff is in english and no change is possible via Web-Interface, there are no umlauts in english which could be corrupt ;).

Here is the Debug-Output taken from stderr.log when openca_rc is invoked from shell, where LC_ALL is not set.

DEBUG: OpenCA::DBI->DESTROY: call finish on all statement handles to avoid warnings by DBI
initServer: BrowserSupportedLanguage(s) [de-de,de;q=0.8,en;q=0.5,en-us;q=0.3]
initServer: BrowserSupportedCharset(s) [ISO-8859-1,utf-8;q=0.7,*;q=0.7]
select language: de
initServer: setLanguage: setEncoding for log return iso-8859-1
initServer: setLanguage: de_DE :: iso-8859-1
initServer: BrowserSupportedLanguage(s) [de-de,de;q=0.8,en;q=0.5,en-us;q=0.3]
initServer: BrowserSupportedCharset(s) [ISO-8859-1,utf-8;q=0.7,*;q=0.7]
select language: de
initServer: setLanguage: setEncoding for log return iso-8859-1
initServer: setLanguage: de_DE :: iso-8859-1
initServer: setLanguage: setEncoding for log return UTF-8
initServer: setLanguage: en_GB :: UTF-8
DEBUG: OpenCA::DBI->connect: connecting to database
DEBUG: OpenCA::DBI->connect: try to connect
initServer: setLanguage: setEncoding for log return UTF-8
initServer: setLanguage: en_GB :: UTF-8
DEBUG: OpenCA::DBI->connect: connecting to database
DEBUG: OpenCA::DBI->connect: try to connect
DEBUG: OpenCA::DBI->connect: Checking AutoCommit to be off ...
DEBUG: OpenCA::DBI->connect: AutoCommit is off
OpenCA::AC->Checking the channel ...


Greetings

Mathias



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
OpenCA-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-devel

Reply via email to