aboutsummaryrefslogtreecommitdiffstats
path: root/test/nlstringtest.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-01-15 20:36:22 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-01-15 20:36:22 +0200
commitd6b4e76120053e3572e593b8c1c8518c0fa8b432 (patch)
tree2f054da053873b95579a38a30006786722de565b /test/nlstringtest.awk
parentbf757c5ee278975b419c337d0ab63681d4529245 (diff)
parent9fbc02b23f7843c3be03d12eaba2f154642217df (diff)
downloadegawk-d6b4e76120053e3572e593b8c1c8518c0fa8b432.tar.gz
egawk-d6b4e76120053e3572e593b8c1c8518c0fa8b432.tar.bz2
egawk-d6b4e76120053e3572e593b8c1c8518c0fa8b432.zip
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'test/nlstringtest.awk')
-rw-r--r--test/nlstringtest.awk12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/nlstringtest.awk b/test/nlstringtest.awk
new file mode 100644
index 00000000..da0d91b0
--- /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"
+}