GNU gettext utilities: java-format
Next: csharp-format, Previous: python-format, Up: Translators for other Languages [Contents][Index]
15.3.4 Java Format Strings
There are two kinds of format strings in Java: those acceptable to the MessageFormat.format
function, labelled as ‘java-format
’, and those acceptable to the String.format
and PrintStream.printf
functions, labelled as ‘java-printf-format
’.
Java format strings are described in the JDK documentation for class java.text.MessageFormat
, https://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html. See also the ICU documentation http://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html.
Java printf
format strings are described in the JDK documentation for class java.util.Formatter
, https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html.