X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Flauncher%2FMain.java;h=1a77291c28903120079f430661ca181f7ac4a6dd;hb=aecb3399b756d2ba04223bc6f553999fce73f9fb;hp=178dff106d11394fa0b08bf7fb754134caf5a52f;hpb=f578f3af81728d5f2590bc69ad125ef143d9d8f6;p=jvcard.git diff --git a/src/be/nikiroo/jvcard/launcher/Main.java b/src/be/nikiroo/jvcard/launcher/Main.java index 178dff1..1a77291 100644 --- a/src/be/nikiroo/jvcard/launcher/Main.java +++ b/src/be/nikiroo/jvcard/launcher/Main.java @@ -36,15 +36,18 @@ public class Main { static private Trans transService; /** - * Translate the given {@link StringId}. + * Translate the given {@link StringId} into user text. * - * @param id + * @param stringId * the ID to translate + * @param values + * the values to insert instead of the place holders in the + * translation * - * @return the translation + * @return the translated text with the given value where required */ - static public String trans(StringId id) { - return transService.trans(id); + static public String trans(StringId id, String... values) { + return transService.trans(id, (String[]) values); } /** @@ -160,14 +163,14 @@ public class Main { System.exit(ERR_SYNTAX); return; } - + i18nDir = args[index]; } else { filesTried = true; files.addAll(open(arg)); } } - + // Force headless mode if we run in forced-text mode if (textMode != null && textMode) { // same as -Djava.awt.headless=true