db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Waagan <kristian.waa...@oracle.com>
Subject Re: 10.6 message localizations
Date Wed, 04 Aug 2010 07:22:38 GMT
On Tue, Aug 03, 2010 at 10:46:26PM -0700, Lily Wei wrote:
> Hi there:
>    I have a question about testing zh_Ch locale.
>    If I do 'java -Dderby.ui.locale=zh_CH -Dderby.ui.codeset=utf8
> org.apache.derby.tools.ij' and got error with message on 42504,
> should I see Chinese character error?
>    This is what I am seeing:
>   ij(CONNECTION1)> values REFRESH.to_degrees(15);
> ERROR 42504: User 'BACKUP' does not have EXECUTE permission on ROUTINE
>   (No chinese character here)
>    When do the following, I see some characters that appear to be foreign
> characters but not chinese.
>    java -Dderby.ui.locale=zh_CH -Dderby.ui.codeset=utf8
> org.apache.derby.tools.ij
>   ij> connect 'jdbc:derby:test;user=REFRESH;password=Refresh';
>   ij> localizeddisplay on;
>   ij> values current_date;
>   1
>   -----------
>   2010年8月3日 (<===These are foreign characters, but not Chinese)
>   How can I see chinese error message for ERROR 42504 or the message that we
> change for JIRA-4666?

Hi Lily,

I find using locales a bit confusing too, and tried to find a
description in our manuals. My very brief search took me to "About
locales" in the Derby Tools and Utilities Guide.

Now, here's what I did to get Chinese characters:
(they look Chinese to me when writing this mail, I have no idea if
copy and paste will work as expected...)

$ LANG=zh.UTF-8 java -cp $JDB_10610 org.apache.derby.tools.ij
ij 版本 10.6
ij> connect 'jdbc:derby:memory:testdb;create=true';
ij> values current_date;

已选择 1 行
ij> localizeddisplay on;
ij> values current_date;

已选择 1 行

It is unclear to me which of the zh localizations is used in this case.
Maybe there are rules determining that, or maybe you must/can specify

Now, I'm at a loss for how to display the localized messages easily. I
ended up writing a small Java code snippet (see the attached
Hopefully people will let us know if there is a simpler way :)

Hope this helps,

>   Is the characters for current_date a valid display value for zh_CH locale?
> Thanks,
> Lily
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> From: Rick Hillegas <rick.hillegas@oracle.com>
> To: "derby-dev@db.apache.org" <derby-dev@db.apache.org>
> Sent: Tue, August 3, 2010 8:40:18 AM
> Subject: 10.6 message localizations
> Two weeks ago I posted localizations of the 10.6 message changes (see https://
> issues.apache.org/jira/browse/DERBY-4666 ). These are translations for the
> following languages:
> Chinese (simplified)
> Chinese (traditional)
> French
> German
> Italian
> Japanese
> Korean
> Spanish
> So far, Knut has verified that the 10.6 localizations don't suffer from the
> problems which plagued the 10.4 and 10.5 translations. But this slug of changes
> might suffer from other problems. If you are an expert in one of the languages
> listed above, your review would be helpful. I intend to commit these changes
> next week unless community review discloses a real howler. Of course, the
> localizations can always be improved incrementally after that.
> Reviewing these changes should be easy. The changes.html attachment gives you
> the English text of the new and changed messages. You just need to confirm that
> the patch reflects those changes for the languages you know.
> Thanks for your help,
> -Rick

View raw message