mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
improve i18n support
This commit is contained in:
@@ -139,9 +139,11 @@ public class App
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
I18n i18n = new I18n();
|
||||
|
||||
if ((args.length == 0) || (subcommand == null) || help)
|
||||
{
|
||||
parser.printUsage(output, I18n.getBundle());
|
||||
parser.printUsage(output, i18n.getBundle());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -152,7 +154,7 @@ public class App
|
||||
session = createSession();
|
||||
}
|
||||
|
||||
subcommand.init(input, output, session);
|
||||
subcommand.init(input, output, i18n, session);
|
||||
subcommand.run(arguments);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user