Date: Tue, 04 Dec 2007 10:00:48 +0100 From: Jes Kasper Klittum <jes (at mark) enavn.com> Subject: [coba-e:11349] Re: Translating BlueQuartz problems To: coba-e (at mark) bluequartz.org Message-Id: <47551740.1060402 (at mark) enavn.com> In-Reply-To: <200712040256.17835.bq (at mark) solarspeed.net> References: <4753E4A3.5030909 (at mark) enavn.com> <B0A5506A-5392-4E92-9F47-A8ED6075148C (at mark) iweb.dk> <200712040256.17835.bq (at mark) solarspeed.net> X-Mail-Count: 11349Hello blues, Michael Stauber skrev: > 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. > Okay, this still does not work. This is my systeminfo: ls /usr/share/locale/da/LC_MESSAGES/ alpine.mo gettext-runtime.mo raid.mo am.mo gettext-tools.mo redhat-dist.mo apache-bandwidth.mo glib20.mo rhpl.mo apache.mo gprof.mo rpm.mo backupcontrol.mo hal.mo sauce-basic.mo bandwidth.mo import.mo schedule.mo bfd.mo initscripts.mo sed.mo binutils.mo kudzu.mo services.mo cce.mo ld.mo setup.mo chkconfig.mo libc.mo shell.mo cobalt.mo libidn.mo smart.mo coreutils.mo libuser.mo snmp.mo cracklib.mo lynx.mo ssh.mo dialog.mo maillist.mo storage.mo diffutils.mo mailsitestats.mo swatch.mo disk.mo make.mo system-config-mouse.mo dma.mo mc.mo system.mo dns.mo memory.mo tar.mo documentation.mo Merlot.mo telnet.mo email.mo mypackage.mo time.mo findutils.mo nano.mo trueBlue.mo firewall.mo netsitestats.mo user.mo frontpage.mo opcodes.mo usermode.mo ftp.mo parted.mo util-linux.mo ftpsitestats.mo popt.mo websitestats.mo gawk.mo power.mo wget.mo gcc.mo product.mo wizard.mo generic.mo pump.mo cat /etc/sysconfig/i18n LANG=en_US LC_ALL=en_US LINGUAS="en ja" /usr/sausalito/bin/cceclient 100 CSCP/0.80 200 READY get 3 102 DATA productBuild = "5102R" 102 DATA NAMESPACE = "" 102 DATA productIdentity = "20060815" 102 DATA CLASSVER = "1.2" 102 DATA isRegistered = "0" 102 DATA CLASS = "System" 102 DATA gateway = "192.0.2.1" 102 DATA serialNumber = "" 102 DATA domainname = "example.com" 102 DATA productName = "BlueQuartz 5100R Series" 102 DATA productBuildString = "build 20060815 for a 5102R in en_US" 102 DATA isLicenseAccepted = "1" 102 DATA OID = "3" 102 DATA productLanguage = "en" 102 DATA productSerialNumber = "" 102 DATA console = "1" 102 DATA productVendor = "" 102 DATA dns = "&123.123.123.4&123.123.123.2&" 102 DATA hostname = "playground" 102 DATA locales = "&ja&en&" 201 OK set 3 locales = "&ja&en&da&" 201 OK get 3 102 DATA productBuild = "5102R" 102 DATA NAMESPACE = "" 102 DATA productIdentity = "20060815" 102 DATA CLASSVER = "1.2" 102 DATA isRegistered = "0" 102 DATA CLASS = "System" 102 DATA gateway = "192.0.2.1" 102 DATA serialNumber = "" 102 DATA domainname = "example.com" 102 DATA productName = "BlueQuartz 5100R Series" 102 DATA productBuildString = "build 20060815 for a 5102R in en_US" 102 DATA isLicenseAccepted = "1" 102 DATA OID = "3" 102 DATA productLanguage = "en" 102 DATA productSerialNumber = "" 102 DATA console = "1" 102 DATA productVendor = "" 102 DATA dns = "&123.123.123.4&123.123.123.2&" 102 DATA hostname = "playground" 102 DATA locales = "&ja&en&da&" 201 OK From 10_addSystem.pl: #my ($i18n) = `grep LANG /etc/sysconfig/i18n`; #($lang) = ($i18n =~ m/^LANG="(\S+)"/); #if ($lang =~ /^ja/) { # $lang = 'ja'; #} else { # $lang = 'en'; #} service cced.init restart Shutting down cced: done Starting cced: [ OK ] Running CCE constructors: service admserv restart Stopping admin web server: httpd.admsrv [ OK ] tarting admin web server: [ OK ] Now locales is back to default: 102 DATA locales = "&ja&en&" ?? -- Best regards, Jes Kasper Klittum enavn ApS [ Administration ] Ringstedgade 11 A 4700 N$BC&(Bstved ------------- enavn ApS [ Datacenter ] (IC$B)S(Bhusgade 88 2100 K$BC8(Bbenhavn Ø Tel.: +45 88205000 Fax: +45 88205010 support (at mark) enavn.dk11349_2.x-vcard (attatchment)(tag is disabled)