diff options
author | Daiki Ueno <ueno@gnu.org> | 2014-05-31 15:44:17 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2014-05-31 15:44:17 +0900 |
commit | 108bf80c79b05b22dccfad20468238b29bfc605b (patch) | |
tree | cdc085e90e539e816627e5b1bc9d521662e5da4b /gettext-tools/tests | |
parent | 3a78eca9e7bd70521a0f64657b4c5904797927df (diff) | |
download | external_gettext-108bf80c79b05b22dccfad20468238b29bfc605b.zip external_gettext-108bf80c79b05b22dccfad20468238b29bfc605b.tar.gz external_gettext-108bf80c79b05b22dccfad20468238b29bfc605b.tar.bz2 |
msgexec: Pass previous msgid to the child process
Suggested by Pavel Kharitonov in:
<http://lists.gnu.org/archive/html/bug-gettext/2014-05/msg00022.html>.
* msgexec.c (process_string): Set MSGEXEC_PREV_* envvar.
Diffstat (limited to 'gettext-tools/tests')
-rw-r--r-- | gettext-tools/tests/ChangeLog | 4 | ||||
-rwxr-xr-x | gettext-tools/tests/msgexec-5 | 20 |
2 files changed, 21 insertions, 3 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 1b421f5..aa1d3f0 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,5 +1,9 @@ 2014-05-31 Daiki Ueno <ueno@gnu.org> + * msgexec-5: Test MSGEXEC_PREV_MSGID and MSGEXEC_PREV_MSGID_PLURAL. + +2014-05-31 Daiki Ueno <ueno@gnu.org> + * msgfilter-6: Test MSGFILTER_PREV_MSGID and MSGFILTER_PREV_MSGID_PLURAL. 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 <<MEOF $MSGEXEC_MSGID $MSGEXEC_MSGID_PLURAL $MSGEXEC_PLURAL_FORM +$MSGEXEC_PREV_MSGID +$MSGEXEC_PREV_MSGID_PLURAL --- MEOF cat @@ -56,6 +60,8 @@ cat <<\EOF > 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 |