aboutsummaryrefslogtreecommitdiff
path: root/extension/pogen
diff options
context:
space:
mode:
Diffstat (limited to 'extension/pogen')
-rw-r--r--extension/pogen/example/messages.po14
-rw-r--r--extension/pogen/example/test.ts13
2 files changed, 24 insertions, 3 deletions
diff --git a/extension/pogen/example/messages.po b/extension/pogen/example/messages.po
index dc4fea611..1addae3f2 100644
--- a/extension/pogen/example/messages.po
+++ b/extension/pogen/example/messages.po
@@ -8,13 +8,13 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-01-27 01:05+0100\n"
+"POT-Creation-Date: 2016-01-27 01:51+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: example/test.ts:3
@@ -95,3 +95,13 @@ msgid ""
"asdf"
msgstr ""
+#: example/test.ts:42
+#, csharp-format
+msgid "This message appears twice"
+msgstr ""
+
+#: example/test.ts:45
+#, csharp-format
+msgid "This message appears twice"
+msgstr ""
+
diff --git a/extension/pogen/example/test.ts b/extension/pogen/example/test.ts
index 7bc8520e2..2cc15b063 100644
--- a/extension/pogen/example/test.ts
+++ b/extension/pogen/example/test.ts
@@ -18,7 +18,11 @@ It has multiple lines, and a trailing empty line.
*/
console.log(/*lol*/i18n.foo`Hello7,${123} World${42}`);
-console.log(i18n.foo`${"foo"}Hello8,${123} World${42}`);
+
+
+i18n.plural()
+
+console.log(i18n`${"foo"}Hello8,${123} World${42}`);
/*
@@ -40,3 +44,10 @@ it should be wrapped and stuff`);
// This is a single line comment
console.log(i18n`Hello12 this is a long long string it will go over multiple lines and in the pofile it should be wrapped and stuff. asdf asdf asdf asdf asdf asdf asdf asdf adsf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf`);
+
+
+
+// First occurence
+console.log(i18n`This message appears twice`);
+// Second occurence
+console.log(i18n`This message appears twice`);