summaryrefslogtreecommitdiff
path: root/gettext-tools/src/FILES
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-08-25 19:17:21 +0200
committerBruno Haible <bruno@clisp.org>2019-08-25 19:17:21 +0200
commitc2758ebe0a99fedc2063bda6ebbea0d1df8cd934 (patch)
treef5e4013292b14a49f72cf53aff00ce04b8074055 /gettext-tools/src/FILES
parenta55b0194e3768fc27b8ec6f098f21759f2aa4f4e (diff)
downloadgettext-c2758ebe0a99fedc2063bda6ebbea0d1df8cd934.tar.gz
Add support for Java format strings in the Formatter syntax.
* gettext-tools/src/message.h (format_type): Add format_java_printf. (NFORMATS): Increment. * gettext-tools/src/message.c (format_language, format_language_pretty): Add entry for format_java_printf. * gettext-tools/src/format.h (formatstring_java_printf): New declaration. * gettext-tools/src/format-java.c: Update comments. * gettext-tools/src/format-java-printf.c: New file. * gettext-tools/src/format.c (formatstring_parsers): Add entry for format_java_printf. * gettext-tools/src/x-java.h (SCANNERS_JAVA): Use formatstring_java_printf. * gettext-tools/src/x-java.c (init_flag_table_java): Add entries relevant to format strings in Formatter syntax. * gettext-tools/src/xgettext.c (xgettext_record_flag): Add support for format_java_printf. * gettext-tools/src/FILES: Add format-java-printf.c. * gettext-tools/src/Makefile.am (FORMAT_SOURCE): Add format-java-printf.c. * gettext-tools/woe32dll/gettextsrc-exports.c: Export formatstring_java_printf. * gettext-tools/libgettextpo/Makefile.am (libgettextpo_la_AUXSOURCES): Likewise. * gettext-tools/tests/xgettext-6 (xg-test6.java): Add test for recognition of format strings in Formatter syntax. * gettext-tools/tests/format-java-printf-1: New file. * gettext-tools/tests/format-java-printf-2: New file. * gettext-tools/tests/Makefile.am (TESTS): Add them. * gettext-tools/tests/lang-java: Add two uses of String.format to the program. * gettext-tools/doc/gettext.texi (PO Files): Document java-printf-format and no-java-printf-format. (java-format): Describe both kinds of format strings. Update URLs. (Java): Mention the second kind of format string as well. * NEWS: Mention the improvement.
Diffstat (limited to 'gettext-tools/src/FILES')
-rw-r--r--gettext-tools/src/FILES1
1 files changed, 1 insertions, 0 deletions
diff --git a/gettext-tools/src/FILES b/gettext-tools/src/FILES
index 2bbeb01f0..52c1ad058 100644
--- a/gettext-tools/src/FILES
+++ b/gettext-tools/src/FILES
@@ -223,6 +223,7 @@ format-elisp.c Format string handling for Emacs Lisp.
format-librep.c Format string handling for librep.
format-scheme.c Format string handling for Scheme.
format-java.c Format string handling for Java.
+format-java-printf.c Format string handling for Java, printf syntax.
format-csharp.c Format string handling for C#.
format-awk.c Format string handling for awk.
format-pascal.c Format string handling for Object Pascal.