Skip to content

How to preserve i18n with shared resource bundles while overriding command name? #1749

Answered by remkop
vanitasvitae asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @vanitasvitae, can I ask you a favor?
Can you check out the project and build it and try with that version of picocli?
The reason I ask is that this would allow you to use some recent changes (#1710 and #1706):
That would allow you to have separate resource bundles for each subcommand, while still have shared entries in the root command for strings that are common across commands.

git clone https://github.com/remkop/picocli.git
cd picocli
gradlew publishToMavenLocal

That should publish picocli-4.7.0-SNAPSHOT to your local .m2 Maven cache. You can then try this in a project that uses the info.picocli:picocli:4.7.0-SNAPSHOT dependency.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@remkop
Comment options

@vanitasvitae
Comment options

@vanitasvitae
Comment options

@vanitasvitae
Comment options

@remkop
Comment options

Answer selected by vanitasvitae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants