Hi Jes,
> --------------------------snip--------------------------
> my ($i18n) = `grep LANG /etc/sysconfig/i18n`;
> ($lang) = ($i18n =~ m/^LANG="(\S+)"/);
> if ($lang =~ /^ja/) {
> $lang = 'ja';
> } else {
> $lang = 'en';
> }
> --------------------------snip--------------------------
This code is for settings server locale.
This isn't relation with GUI language.
>> Which two letter country code did you use for Danish? It's not
>> "dk", but "da". So it should be /usr/share/locale/da/LC_MESSAGES/
>> for the *.mo files and respectively you'd use this CCEclient
>> command ...
>> set 1 locales = "&ja&en&da&"
>> ... to make Danish available in the GUI.
>
> I used da, and used set 1 locales = "&ja&en&da&", but it does not
> show as an option in the GUI, even though i restarted cced and
> admserv.
Yes, we need to add locale to the locales of System object
like this.
So, I made a constructor that it is easy to support multi
languages.
I put the update package on testing repository, and you can get
these files for CentOS4 on
http://bluequartz.org/pub/BlueQuartz/5100R/CentOS4/testing/i386/RPMS/
or yum update from testing repository.
[Files]
base-system-capstone-1.1.0-40BQ13.centos4.noarch.rpm
base-system-glue-1.1.0-40BQ13.centos4.noarch.rpm
base-system-locale-en-1.1.0-40BQ13.centos4.noarch.rpm
base-system-locale-ja-1.1.0-40BQ13.centos4.noarch.rpm
base-system-ui-1.1.0-40BQ13.centos4.noarch.rpm
[Changelog]
* Tue Dec 11 2007 Hisao SHIBUYA <shibuya (at mark) bluequartz.org> 1.1.0-40BQ13
- add constructor to support multi language.
How to add new language manually:
- add base-system.mo on your locale directory like
/usr/share/locale/ja/LC_MESSAGES/base-system.mo
- execute /usr/sausalito/constructor/base/system/11_updateLocale.pl
You can select the language for the user.
I didn't add the restart code for cced and admserv.
Please let me know, if these services are required to restart.
Please let me know, if you have any questions.
Regards,
Hisao