Permalink
Browse files

Added simple context test

  • Loading branch information...
1 parent 95efe61 commit a784a3ab528edd115e7bf82528bd3134d7d912ab @Getty committed Jan 5, 2013
View
@@ -55,4 +55,10 @@ is(
"other changing position test"
);
+is(
+ lp("alien","Hello"),
+ "Hallo Ausserirdischer",
+ "simple test with context"
+);
+
done_testing;
@@ -1 +1 @@
-locale_data['test'] = {"":{"Plural-Forms":" nplurals=2; plural=n != 1;","MIME-Version":" 1.0","POT-Creation-Date":" 2009-06-14 09:29-0400","Language":" de_DE","Last-Translator":" Community","Content-Type":" text/plain; charset=UTF-8","Language-Team":" DuckDuckGo Community <community@duckduckgo.com>","PO-Revision-Date":" 2009-06-14 09:29-0400","Content-Transfer-Encoding":" 8bit","Project-Id-Version":" DuckDuckGo-Translation-0.000"},"Hello":[null,"Hallo"],"Change order test %s %s":[null,"Andere Reihenfolge hier %2$s %1$s"],"You have %d message of %s":["You have %d messages of %s","Du hast %d Nachricht von %s","Du hast %d Nachrichten von %s"],"You have %d message":["You have %d messages","Du hast %d Nachricht","Du hast %d Nachrichten"],"Other change order test %s %s %s":[null,"Verhalten aus http://perldoc.perl.org/functions/sprintf.html %3$s %s %1$s"]};
+locale_data['test'] = {"":{"Plural-Forms":" nplurals=2; plural=n != 1;","MIME-Version":" 1.0","POT-Creation-Date":" 2009-06-14 09:29-0400","Language":" de_DE","Last-Translator":" Community","Content-Type":" text/plain; charset=UTF-8","Language-Team":" DuckDuckGo Community <community@duckduckgo.com>","PO-Revision-Date":" 2009-06-14 09:29-0400","Content-Transfer-Encoding":" 8bit","Project-Id-Version":" DuckDuckGo-Translation-0.000"},"alien\u0004Hello":[null,"Hallo Ausserirdischer"],"Hello":[null,"Hallo"],"Change order test %s %s":[null,"Andere Reihenfolge hier %2$s %1$s"],"You have %d message of %s":["You have %d messages of %s","Du hast %d Nachricht von %s","Du hast %d Nachrichten von %s"],"You have %d message":["You have %d messages","Du hast %d Nachricht","Du hast %d Nachrichten"],"Other change order test %s %s %s":[null,"Verhalten aus http://perldoc.perl.org/functions/sprintf.html %3$s %s %1$s"]};
Binary file not shown.
@@ -29,3 +29,7 @@ msgstr "Andere Reihenfolge hier %2$s %1$s"
msgid "Other change order test %s %s %s"
msgstr "Verhalten aus http://perldoc.perl.org/functions/sprintf.html %3$s %s %1$s"
+
+msgctxt "alien"
+msgid "Hello"
+msgstr "Hallo Ausserirdischer"
@@ -32,6 +32,8 @@
add_t('Should be: "' + 'Andere Reihenfolge hier 2 1' + '"');
add_t(l("Other change order test %s %s %s",1,2,3));
add_t('Should be: "' + 'Verhalten aus http://perldoc.perl.org/functions/sprintf.html 3 1 1' + '"');
+ add_t(lp("alien","Hello"));
+ add_t('Should be: "' + 'Hallo Ausserirdischer' + '"');
}

0 comments on commit a784a3a

Please sign in to comment.