summaryrefslogtreecommitdiff
path: root/t/data
diff options
context:
space:
mode:
Diffstat (limited to 't/data')
-rw-r--r--t/data/04-gettext.html4
-rw-r--r--t/data/04-gettext.tex12
2 files changed, 16 insertions, 0 deletions
diff --git a/t/data/04-gettext.html b/t/data/04-gettext.html
new file mode 100644
index 00000000..716bb0b1
--- /dev/null
+++ b/t/data/04-gettext.html
@@ -0,0 +1,4 @@
+I am a <?lsmb login ?>.
+Look at me <?lsmb gettext(fr, "June") ?>.
+<?lsmb gettext('nl', "June") ?>
+<?lsmb gettext('nl', "To [_1]", login) ?>
diff --git a/t/data/04-gettext.tex b/t/data/04-gettext.tex
new file mode 100644
index 00000000..6381b1a5
--- /dev/null
+++ b/t/data/04-gettext.tex
@@ -0,0 +1,12 @@
+<?lsmb FILTER latex ?>
+\documentclass{scrartcl}
+\usepackage[utf8]{inputenc}
+\font\han="STSong" at 16pt
+\font\rom="Gentium" at 16pt
+\begin{document}
+I am a <?lsmb login ?>.
+test: {\han <?lsmb gettext('zh_CN', "June") ?>.}
+Foo
+\rom <?lsmb escape(gettext('fr', "Goods & Services")) ?>
+\end{document}
+<?lsmb END ?>