summaryrefslogtreecommitdiff
path: root/tests/view_tests/templates/jsi18n.html
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2019-01-26 16:44:49 +0100
committerTim Graham <timograham@gmail.com>2019-01-28 18:17:52 -0500
commitcaaa01142d349c42f9f72bac8af83023b0b84d3f (patch)
treec3f3e0f86efcd25290ecd489a62b0e7b5756e0c7 /tests/view_tests/templates/jsi18n.html
parent728358c5cf96898a00eea2f81a2e305c0754f0c3 (diff)
[2.2.x] Fixed #29825 -- Fixed JS ngettext if the string is a non-plural msgid in the catalog.
Backport of 16454ac35f6a24a04b23a9340b0d62c33edbc1ea from master.
Diffstat (limited to 'tests/view_tests/templates/jsi18n.html')
-rw-r--r--tests/view_tests/templates/jsi18n.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/view_tests/templates/jsi18n.html b/tests/view_tests/templates/jsi18n.html
index df1c4b400c..f0bd17c199 100644
--- a/tests/view_tests/templates/jsi18n.html
+++ b/tests/view_tests/templates/jsi18n.html
@@ -30,6 +30,13 @@
</script>
</p>
+ <p id="ngettext_onnonplural">
+ <!-- The po file only contains the non plural "Image" string. -->
+ <script type="text/javascript">
+ document.write(interpolate(ngettext("Image", "Images", 5), [1]));
+ </script>
+ </p>
+
<p id="pgettext">
<script type="text/javascript">
document.write(pgettext("verb", "May"));