[jboss-jira] [JBoss JIRA] (AS7-4735) Missing parameter order in Japanese message resource files
Takayoshi Kimura (JIRA)
jira-events at lists.jboss.org
Tue May 8 03:49:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690974#comment-12690974 ]
Takayoshi Kimura commented on AS7-4735:
---------------------------------------
I'm working on this at https://github.com/nekop/jboss-as/commits/ja-properties-fix
> Missing parameter order in Japanese message resource files
> ----------------------------------------------------------
>
> Key: AS7-4735
> URL: https://issues.jboss.org/browse/AS7-4735
> Project: Application Server 7
> Issue Type: Bug
> Affects Versions: 7.1.1.Final
> Reporter: Takayoshi Kimura
> Assignee: Takayoshi Kimura
>
> I set 7.1.1.Final in Affects Version/s, but this is really an issue after 7.1.1.Final (pre-7.1.2).
> {quote}
> commit 27b56ae78a60f42139d615b289efa32c21aecc69
> Author: James Perkins <jperkins at redhat.com>
> Date: 2012-04-30 12:59:48 -0700
> Added translations properties files.
> {quote}
> In this commit, Japanese message resource properties are added, but most of them don't specify parameter order properly. We need to rework on these properties files.
> For example,
> English: "%s is %d"
> Japanese: "%d は %s" (Wrong format, this causes parameter format error)
> Japanese: "%2$d は %1$s" (Correct format)
> In Japanese environment, users cannot read log files because it's filled with bunch of format errors.
> Stack trace from "serverStopped" log:
> {quote}
> 15:26:28,100 ERROR [stderr] java.util.logging.ErrorManager: 5: Formatting error
> 15:26:28,100 ERROR [stderr] java.util.IllegalFormatConversionException: d != java.lang.String
> 15:26:28,101 ERROR [stderr] at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
> (snip)
> 15:26:28,106 ERROR [stderr] at org.jboss.logging.Logger.logf(Logger.java:2112)
> 15:26:28,107 ERROR [stderr] at org.jboss.as.server.ServerLogger_$logger.serverStopped(ServerLogger_$logger.java:114)
> 15:26:28,107 ERROR [stderr] at org.jboss.as.server.ApplicationServerService.stop(ApplicationServerService.java:182)
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list