*/
public class Main {
static public final String APPLICATION_TITLE = "jVcard";
- static public final String APPLICATION_VERSION = "1.0-beta3";
+ static public final String APPLICATION_VERSION = "1.0-beta3-dev";
static private final int ERR_NO_FILE = 1;
static private final int ERR_SYNTAX = 2;
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);
}
/**
System.exit(ERR_SYNTAX);
return;
}
-
+
i18nDir = args[index];
} else {
filesTried = true;
}
}
+ // Force headless mode if we run in forced-text mode
+ if (textMode != null && textMode) {
+ // same as -Djava.awt.headless=true
+ System.setProperty("java.awt.headless", "true");
+ }
+
if (unicode) {
utf8();
}