summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgexec-2
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2016-02-08 12:30:03 +0900
committerDaiki Ueno <ueno@gnu.org>2016-02-08 12:40:23 +0900
commit9b9ebf8f96dd3b142e4202ca4a60feac9db0820e (patch)
tree6982dfc83aa90bc00627f702414b1695bad030a2 /gettext-tools/tests/msgexec-2
parentc1eb1c8758c35dfaff0bf41676108b6802136135 (diff)
downloadexternal_gettext-9b9ebf8f96dd3b142e4202ca4a60feac9db0820e.zip
external_gettext-9b9ebf8f96dd3b142e4202ca4a60feac9db0820e.tar.gz
external_gettext-9b9ebf8f96dd3b142e4202ca4a60feac9db0820e.tar.bz2
javascript: Support '%m$' in format strings
Gjs has had support for numbered arguments in format strings since 1.40. Recognize it as well in format-javascript, so msgfmt -c doesn't fail when numbered arguments are in msgstr. Reported by Sean Burke in: https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00002.html * gettext-tools/src/format-javascript.c (struct numbered_arg): New struct. (struct spec): Rename format_args_count to numbered_arg_count. Add NUMBERED field in place of FORMAT_ARGS. All callers changed. (numbered_arg_compare): New function. (format_parse): Handle numbered arguments. Based on format-awk.c. (format_check): Add check for numbered arguments. * gettext-tools/tests/format-javascript-1: Add tests for numbered arguments. * gettext-tools/tests/lang-javascript: Use numbered argument in format strings. Add check for Gjs version >= 1.40.
Diffstat (limited to 'gettext-tools/tests/msgexec-2')
0 files changed, 0 insertions, 0 deletions