commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLI-261) English messages with other languages locales
Date Tue, 29 Dec 2015 22:12:49 GMT

    [ https://issues.apache.org/jira/browse/CLI-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15074354#comment-15074354
] 

Bruno P. Kinoshita commented on CLI-261:
----------------------------------------

Hi Leandro, I'm also using Ubuntu with pt_BR. Have you tried setting the default syntax prefix
value in your code? I think this could work - https://github.com/apache/commons-cli/blob/ea7d60a19a1e41ad5805e0567562752dd9f44028/src/main/java/org/apache/commons/cli/HelpFormatter.java#L257

> English messages with other languages locales
> ---------------------------------------------
>
>                 Key: CLI-261
>                 URL: https://issues.apache.org/jira/browse/CLI-261
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.3.1
>         Environment: Linux 12.04 32 bits
> JDK 1.8.0_40
>            Reporter: Leandro Cerencio
>            Priority: Minor
>
> I am running Ubuntu with pt_BR.UTF-8 locale. Here is an example of bash command:
> $ ls --help
> Uso: .....
> ......
> Now, I am using commons cli HelpFormatter:
> $ java -jar myPackage.jar
> usage: .....
> ......
> I checked HelpFormatter code, and usage string is hard-coded on DEFAULT_SYNTAX_PREFIX.
If there were a messages.properties, I could make the translation for you.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message