aboutsummaryrefslogtreecommitdiffstats
path: root/test/nlstringtest.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-01-15 20:27:41 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-01-15 20:27:41 +0200
commit9fbc02b23f7843c3be03d12eaba2f154642217df (patch)
treeb7c175c24aa37a66ed7cee2078f7e745c837dd1f /test/nlstringtest.awk
parent0dc91138b713b60d763aa26eb119ca710febd348 (diff)
downloadegawk-9fbc02b23f7843c3be03d12eaba2f154642217df.tar.gz
egawk-9fbc02b23f7843c3be03d12eaba2f154642217df.tar.bz2
egawk-9fbc02b23f7843c3be03d12eaba2f154642217df.zip
Add nlstringtest files.
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"
+}