[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-288
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2886-g9fbc02b |
Date: |
Mon, 15 Jan 2018 13:36:09 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.2-stable has been updated
via 9fbc02b23f7843c3be03d12eaba2f154642217df (commit)
from 0dc91138b713b60d763aa26eb119ca710febd348 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=9fbc02b23f7843c3be03d12eaba2f154642217df
commit 9fbc02b23f7843c3be03d12eaba2f154642217df
Author: Arnold D. Robbins <address@hidden>
Date: Mon Jan 15 20:27:41 2018 +0200
Add nlstringtest files.
diff --git a/test/ChangeLog b/test/ChangeLog
index 0226d53..eca4313 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,9 +1,9 @@
2018-01-15 Arnold D. Robbins <address@hidden>
* Makefile.am (nlstringtest): New test.
- * nlstringtest.awk, nlstringtest.ok, fr/LC_MESSAGES/nlstringtest.mo:
- New files. Thanks to Bruno Haible <address@hidden>
- for the test.
+ * nlstringtest.awk, nlstringtest.ok, nlstringtest.po,
+ fr/LC_MESSAGES/nlstringtest.mo: New files. Thanks to
+ Bruno Haible <address@hidden> for the test.
2018-01-04 Arnold D. Robbins <address@hidden>
diff --git a/test/Makefile.am b/test/Makefile.am
index 8d663c5..81b3606 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -716,6 +716,7 @@ EXTRA_DIST = \
nlstrina.ok \
nlstringtest.awk \
nlstringtest.ok \
+ nlstringtest.po \
fr \
noeffect.awk \
noeffect.ok \
diff --git a/test/nlstringtest.awk b/test/nlstringtest.awk
new file mode 100644
index 0000000..da0d91b
--- /dev/null
+++ b/test/nlstringtest.awk
@@ -0,0 +1,12 @@
+BEGIN {
+ n = 2
+ TEXTDOMAIN = "nlstringtest"
+# bindtextdomain ("./")
+ bindtextdomain (ARGV[1])
+
+ printf dcngettext ("a piece of cake", "%d pieces of cake", n) "\n", n
+
+ print _"%s is replaced by %s."
+ print _"%s is replaced by %s." "\n"
+ printf _"%s is replaced by %s." "\n", "FF", "EUR"
+}
diff --git a/test/nlstringtest.ok b/test/nlstringtest.ok
new file mode 100644
index 0000000..c06d9e4
--- /dev/null
+++ b/test/nlstringtest.ok
@@ -0,0 +1,5 @@
+2 morceaux de gateau
+%2$s remplace %1$s.
+%2$s remplace %1$s.
+
+EUR remplace FF.
diff --git a/test/nlstringtest.po b/test/nlstringtest.po
new file mode 100644
index 0000000..6423ce3
--- /dev/null
+++ b/test/nlstringtest.po
@@ -0,0 +1,16 @@
+msgid ""
+msgstr ""
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+# Les gateaux allemands sont les meilleurs du monde.
+#, awk-format
+msgid "a piece of cake"
+msgid_plural "%d pieces of cake"
+msgstr[0] "un morceau de gateau"
+msgstr[1] "%d morceaux de gateau"
+
+# Reverse the arguments.
+#, awk-format
+msgid "%s is replaced by %s."
+msgstr "%2$s remplace %1$s."
-----------------------------------------------------------------------
Summary of changes:
test/ChangeLog | 6 +++---
test/Makefile.am | 1 +
test/nlstringtest.awk | 12 ++++++++++++
test/nlstringtest.ok | 5 +++++
test/nlstringtest.po | 16 ++++++++++++++++
5 files changed, 37 insertions(+), 3 deletions(-)
create mode 100644 test/nlstringtest.awk
create mode 100644 test/nlstringtest.ok
create mode 100644 test/nlstringtest.po
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2886-g9fbc02b,
Arnold Robbins <=