db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4725) Fix message build so that double quotes aren't inserted for English messages.
Date Tue, 29 Jun 2010 19:52:50 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883673#action_12883673
] 

Knut Anders Hatlen commented on DERBY-4725:
-------------------------------------------

The way I read the javadoc for MessageFormat, our message files won't be well-formed if we
change them as suggested. Do we feel confident that all JVMs will behave as described above
when they see a single quote?

I noticed this section in MessageFormat's javadoc, by the way:

Warning:
    The rules for using quotes within message format patterns unfortunately have shown to
be somewhat confusing. In particular, it isn't always obvious to localizers whether single
quotes need to be doubled or not. Make sure to inform localizers about the rules, and tell
them (for example, by using comments in resource bundle source files) which strings will be
processed by MessageFormat. Note that localizers may need to use single quotes in translated
strings where the original version doesn't have them.

> Fix message build so that double quotes aren't inserted for English messages.
> -----------------------------------------------------------------------------
>
>                 Key: DERBY-4725
>                 URL: https://issues.apache.org/jira/browse/DERBY-4725
>             Project: Derby
>          Issue Type: Improvement
>          Components: Localization
>    Affects Versions: 10.6.1.0
>            Reporter: Rick Hillegas
>            Priority: Minor
>
> When messages_en.properties is generated from messages.xml, single quotes are turned
into double quotes. For instance, the text for 42XAC is turned into 
> ''INCREMENT BY'' value can not be zero.
> This doesn't seem to cause any harm. MessageFormat does the right thing and strips out
the extra quote. If the messages only have single quotes, MessageFormat also does the right
thing and leaves the phrase single-quoted. The double quotes, however, are confusing to the
people who are localizing the 10.6 messages. There would be less confusion if the build did
not insert extra quotes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message