diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-01-15 20:27:41 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-01-15 20:27:41 +0200 |
commit | 9fbc02b23f7843c3be03d12eaba2f154642217df (patch) | |
tree | b7c175c24aa37a66ed7cee2078f7e745c837dd1f /test/nlstringtest.awk | |
parent | 0dc91138b713b60d763aa26eb119ca710febd348 (diff) | |
download | egawk-9fbc02b23f7843c3be03d12eaba2f154642217df.tar.gz egawk-9fbc02b23f7843c3be03d12eaba2f154642217df.tar.bz2 egawk-9fbc02b23f7843c3be03d12eaba2f154642217df.zip |
Add nlstringtest files.
Diffstat (limited to 'test/nlstringtest.awk')
-rw-r--r-- | test/nlstringtest.awk | 12 |
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" +} |