+2009-01-27 Bruno Haible <bruno@clisp.org>
+
+ * xgettext-c-13: Test also the 3 variants of the tr function and the
+ qt-plural-format flag.
+
2009-01-25 Bruno Haible <bruno@clisp.org>
Avoid a test suite failure on platforms that have a gl_IE locale.
tmpfiles="$tmpfiles xg-c-13.cc"
cat <<\EOF > xg-c-13.cc
foo (gettext ("on"));
+tr ("stopped");
+tr ("action", "");
+tr ("deleted %n files", "", numdel);
EOF
tmpfiles="$tmpfiles xg-c-13.tmp.po xg-c-13.po"
: ${XGETTEXT=xgettext}
${XGETTEXT} --omit-header --no-location -d xg-c-13.tmp \
- --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format --qt \
+ --qt \
+ --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format \
+ --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t \
xg-c-13.cc
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
LC_ALL=C tr -d '\r' < xg-c-13.tmp.po > xg-c-13.po
#, qt-format
msgid "on"
msgstr ""
+
+msgid "stopped"
+msgstr ""
+
+msgctxt ""
+msgid "action"
+msgstr ""
+
+#, qt-plural-format
+msgctxt ""
+msgid "deleted %n files"
+msgid_plural "deleted %n files"
+msgstr[0] ""
+msgstr[1] ""
EOF
: ${DIFF=diff}