summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-11-11 09:40:03 +0100
committerClaude Paroz <claude@2xlibre.net>2014-11-11 22:52:30 +0100
commit5ec367ccdd2ff70270b1f578821c817785d7aecf (patch)
treee690371176634a891095569ab27622d2ea9ca650 /tests
parentb8ba73cd0cb6a3dbdaeb3df65936970956829de3 (diff)
Fixed #23788 -- Used new JavaScript support in recent gettext
JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/commands/javascript.js1
-rw-r--r--tests/i18n/test_extraction.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/i18n/commands/javascript.js b/tests/i18n/commands/javascript.js
index fa059d70f4..76eb5bc9fb 100644
--- a/tests/i18n/commands/javascript.js
+++ b/tests/i18n/commands/javascript.js
@@ -1,5 +1,6 @@
// '
gettext('This literal should be included.')
+gettext_noop('gettext_noop should, too.');
x = y; // '
gettext("This one as well.")
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 459de45c18..b2972105c7 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -352,6 +352,7 @@ class JavascriptExtractorTests(ExtractorTests):
os.chdir(self.test_dir)
_, po_contents = self._run_makemessages(domain='djangojs')
self.assertMsgId('This literal should be included.', po_contents)
+ self.assertMsgId('gettext_noop should, too.', po_contents)
self.assertMsgId('This one as well.', po_contents)
self.assertMsgId(r'He said, \"hello\".', po_contents)
self.assertMsgId("okkkk", po_contents)