From 108bf80c79b05b22dccfad20468238b29bfc605b Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Sat, 31 May 2014 15:44:17 +0900 Subject: msgexec: Pass previous msgid to the child process Suggested by Pavel Kharitonov in: . * msgexec.c (process_string): Set MSGEXEC_PREV_* envvar. --- gettext-tools/tests/msgexec-5 | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'gettext-tools/tests/msgexec-5') diff --git a/gettext-tools/tests/msgexec-5 b/gettext-tools/tests/msgexec-5 index 1b9dac6..a2c13cd 100755 --- a/gettext-tools/tests/msgexec-5 +++ b/gettext-tools/tests/msgexec-5 @@ -15,6 +15,8 @@ msgstr "'Votre commande, s'il vous plait', dit le garcon." # Les gateaux allemands sont les meilleurs du monde. #, c-format +#| msgid "a piece of bread" +#| msgid_plural "%d pieces of bread" msgid "a piece of cake" msgid_plural "%d pieces of cake" msgstr[0] "un morceau de gateau" @@ -36,6 +38,8 @@ cat < mex-test5.ok + + --- Content-Type: text/plain; charset=ASCII Plural-Forms: nplurals=2; plural=(n > 1); @@ -64,24 +70,32 @@ Plural-Forms: nplurals=2; plural=(n > 1); 'Your command, please?', asked the waiter. + + --- 'Votre commande, s'il vous plait', dit le garcon. -========================= mex-test5.po:14 ========================= +========================= mex-test5.po:16 ========================= a piece of cake %d pieces of cake 0 +a piece of bread +%d pieces of bread --- un morceau de gateau -========================= mex-test5.po:14 ========================= +========================= mex-test5.po:16 ========================= a piece of cake %d pieces of cake 1 +a piece of bread +%d pieces of bread --- %d morceaux de gateau -========================= mex-test5.po:20 ========================= +========================= mex-test5.po:22 ========================= %s is replaced by %s. + + --- %2$s remplace %1$s. EOF -- cgit v1.1