Index: [Article Count Order] [Thread]

Date:  Tue, 4 Dec 2007 02:56:17 +0100
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:11342] Re: Translating BlueQuartz problems
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200712040256.17835.bq (at mark) solarspeed.net>
In-Reply-To:  <B0A5506A-5392-4E92-9F47-A8ED6075148C (at mark) iweb.dk>
References:  <4753E4A3.5030909 (at mark) enavn.com> <B0A5506A-5392-4E92-9F47-A8ED6075148C (at mark) iweb.dk>
X-Mail-Count: 11342

Hi Ren辿 M淡lsted,
> On 03/12/2007, at 12.12, Jes Kasper Klittum wrote:
> > Hi blues,
> >
> > I have been doing some translation of BQ and no I want to test
> > whether or not my translations are correct - it is some times
> > difficult to see, out of context, if the sentence will work, so I
> > wan't to try it out on a box.
> >
> > I followed this HOWTO but Danish does not appear as language in the
> > GUI? Do I need to do something else?
> >
> > http://bluequartz.org/docs/translate/
>
> I can confirm that, Jes. Somehow it's reset when the cced is
> restarted, while not restarting the cced it works - oddly.

Correct. Upon CCE restart this constructor is run:

/usr/sausalito/constructor/base/system/10_addSystem.pl

This code in it ...

--------------------------snip--------------------------
my ($i18n) = `grep LANG /etc/sysconfig/i18n`;
($lang) = ($i18n =~ m/^LANG="(\S+)"/);
if ($lang =~ /^ja/) {
        $lang = 'ja';
} else {
        $lang = 'en';
}
--------------------------snip--------------------------

... defaults the language back to English unless /etc/sysconfig/i18n is 
specifically set to Japanese. That needs to be changed once we add more 
languages. 

For the moment and for testing your translation you might want to change "ja" 
to "da" for Danish or might want to comment out the above block in 
10_addSystem.pl.

-- 
With best regards,

Michael Stauber
http://www.solarspeed.net