Discussion:
[drbd-mc] Japanese message resource and the related patches
Takashi Takizawa
2011-02-04 05:56:25 UTC
Permalink
Hi folks,

I created two patches and a Japanese message resource to show messages of
drbd-mc in Japanese. Please try these.

- a patch to get your default locale
http://ftp.3ware.co.jp/pub/drbd-mc/drbd-mc-0.8.12-locale.patch

A locale is set as 'Locale.Lang' and 'Locale.Country' in src/drbd/configs/AppDefaults.java.
The value of Locale.Lang is 'en' and the value of Locale.Country is 'US'.
These are built-in values. Therefore, we can not change a locale.
If you apply this patch, you will get your default locale using
the function Locale.getDefault().


- a patch to move some messages to message resource file
http://ftp.3ware.co.jp/pub/drbd-mc/drbd-mc-0.8.12-text_resource.patch

Some messages are not in the message resource file. Therefore, you can not
translate these messages into the other languages.
If you apply this patch, it moves some messages into the message resource file.
It makes be able to translate these messages into the other languages.

However, some messages were still left outside the message resource file.
In the future, it is necessary to move these messages left into the message resource file.


- a Japanese message resource
http://ftp.3ware.co.jp/pub/drbd-mc/TextResource_ja_JP.java

If you copy this file into directory src/drbd/configs and build source files,
in Japanese environment you are able to display menus and messages in Japanese.
--
Takashi Takizawa
ThirdWare Co., Ltd.
http://www.3ware.co.jp/
Rasto Levrinc
2011-02-04 18:35:44 UTC
Permalink
Post by Takashi Takizawa
Hi folks,
I created two patches and a Japanese message resource to show messages of
drbd-mc in Japanese. Please try these.
Wow, that's fantastic...
Post by Takashi Takizawa
Some messages are not in the message resource file. Therefore, you can
not translate these messages into the other languages. If you apply this
patch, it moves some messages into the message resource file. It makes be
able to translate these messages into the other languages.
Yeah, I've got lazy sometimes, having only one language till now. Sorry
about that.

I have a perl script laying around somewhere, that makes a list of all
text strings and checks for missing ones (or superfluous). I'll check it
and put in the source. We should find a way to make it easy to add new
translations as needed.

There's also a git repository
http://git.drbd.org/?p=drbd-mc.git;a=summary

Thanks,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...