From 8df49dc054a23accf48cc82d2056d7267dcceeb8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 16 Aug 2008 10:15:35 +0000 Subject: [PATCH] Test interpretation of [ ]. --- gettext-tools/tests/ChangeLog | 5 +++++ gettext-tools/tests/xgettext-python-1 | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 90a202bbd..6e16723a2 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2008-08-16 Bruno Haible + + * xgettext-python-1: Test that strings inside [ ] are not extracted for + an outer gettext call. + 2008-08-15 Bruno Haible * format-python-2: Check that %.0s normally behaves like %s. diff --git a/gettext-tools/tests/xgettext-python-1 b/gettext-tools/tests/xgettext-python-1 index 9ea20dc3b..fbfbfc903 100755 --- a/gettext-tools/tests/xgettext-python-1 +++ b/gettext-tools/tests/xgettext-python-1 @@ -22,6 +22,9 @@ _(u"abc\ # interpret_ansic = false, interpret_unicode = true _(ur"abc\ \\def\'ghi\"jkl\a\b\f\n\r\t\v x\040x\x7ey\u0142\U00010123\N{LATIN SMALL LETTER Z}"); + +# This will not be extracted. +_(CATEGORIES["default"]["name"]); EOF tmpfiles="$tmpfiles xg-py-1.err xg-py-1.tmp xg-py-1.pot" -- 2.47.2