[jboss-jira] [JBoss JIRA] (WFLY-3723) setting the local to english in CLI commands on non-english systems does not produce english output
Romain Pelisse (JIRA)
issues at jboss.org
Tue Dec 16 10:03:30 EST 2014
[ https://issues.jboss.org/browse/WFLY-3723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027983#comment-13027983 ]
Romain Pelisse commented on WFLY-3723:
--------------------------------------
I've just tested on my "french" linux (Fedora 21) system, with standalone and there is the same kind of behavior. In the example below, while I've asked for english, I'm still getting french:
/subsystem=pojo:read-operation-description(name="add", locale="en_US")
{
"outcome" => "success",
"result" => {
"operation-name" => "add",
"description" => "Ajoute le sous-système pojo",
"request-properties" => {},
"reply-properties" => {},
"read-only" => false,
"restart-required" => "all-services"
}
}
However, asking for German however works:
[standalone at localhost:9999 /] /subsystem=pojo:read-operation-description(name="add", locale="de_DE")
{
"outcome" => "success",
"result" => {
"operation-name" => "add",
"description" => "Pojo-Untersystem hinzufügen",
"request-properties" => {},
"reply-properties" => {},
"read-only" => false,
"restart-required" => "all-services"
}
}
I'm going to take a look at this issue - being a french speaker living in Germany, I'm well equipped to deal with this kind of issue :)
> setting the local to english in CLI commands on non-english systems does not produce english output
> ---------------------------------------------------------------------------------------------------
>
> Key: WFLY-3723
> URL: https://issues.jboss.org/browse/WFLY-3723
> Project: WildFly
> Issue Type: Bug
> Components: Localization
> Affects Versions: 8.1.0.Final
> Environment: Tested on MacOS running in German
> Reporter: Tom Fonteyne
> Assignee: Alexey Loubyansky
> Priority: Minor
>
> A German (or french etc...) system must be used to reproduce.
> It is likely this is not limited to MacOS, but I do not have a non-english Linux system available
> An out of the box install of wildfly/EAP:
> Without configuration, the log file is in German as expected.
> Using these CLI comands:
> :read-operation-description(name=stop-servers,locale=de_DE) -> german
> :read-operation-description(name=stop-servers,locale=en_US) -> german
> :read-operation-description(name=stop-servers,locale=fr_FR) -> french
> So we cannot get the CLI to produce english output
> when configuring JAVA_OPTS in domain.conf with:
> JAVA_OPTS="$JAVA_OPTS -Duser.language=en -Duser.country=DE -Duser.encoding=utf-8
> The log is now in English -> works as expected; and:
> :read-operation-description(name=stop-servers,locale=de_DE) -> german
> :read-operation-description(name=stop-servers,locale=en_US) -> english
> So it seems we have a bug where the locale set to start the domain takes precedence over the locale set in the CLI command (but only when English is asked)
> I presume this is because English is the default locale.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list