diff options
Diffstat (limited to 'src/org/openoffice/tools/OptionsHelper.java')
-rw-r--r-- | src/org/openoffice/tools/OptionsHelper.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/openoffice/tools/OptionsHelper.java b/src/org/openoffice/tools/OptionsHelper.java index 01633d2..c1adcf9 100644 --- a/src/org/openoffice/tools/OptionsHelper.java +++ b/src/org/openoffice/tools/OptionsHelper.java @@ -3,6 +3,8 @@ package org.openoffice.tools; import org.apache.commons.cli.Option; import org.apache.commons.cli.OptionGroup; import org.apache.commons.cli.Options; +import org.openoffice.tools.language.Language; +import org.openoffice.tools.language.LanguageHelper; import org.openoffice.tools.options.Command; import org.openoffice.tools.options.SubCommand; @@ -25,9 +27,10 @@ public class OptionsHelper { Options generalOptions = new Options(); OptionGroup langGroup = new OptionGroup(); - String[] langs = LanguageHelper.getLanguages( ); + String[] langs = LanguageHelper.getLanguagesIds( ); for (String lang : langs) { - Option langOpt = new Option( lang, false, LanguageHelper.getDescription( lang ) ); + Language langDef = LanguageHelper.getLanguage( lang ); + Option langOpt = new Option( lang, false, langDef.getDescription() ); langGroup.addOption( langOpt ); } langGroup.setRequired( true ); |