aboutsummaryrefslogtreecommitdiffstats
path: root/test/nlstringtest.awk
diff options
context:
space:
mode:
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"
+}