[jboss-jira] [JBoss JIRA] (AS7-4735) Missing parameter index in Japanese message resource files
Takayoshi Kimura (JIRA)
jira-events at lists.jboss.org
Thu May 10 04:35:18 EDT 2012
[ https://issues.jboss.org/browse/AS7-4735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12691711#comment-12691711 ]
Takayoshi Kimura commented on AS7-4735:
---------------------------------------
It may take 3-4 business days.
> Missing parameter index 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, 7.1.2.Final (EAP)
> 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 index 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 because it's filled up with bunch of format errors and incorrect logs.
> 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