1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #29825 -- Fixed JS ngettext if the string is a non-plural msgid in the catalog.

This commit is contained in:
Claude Paroz
2019-01-26 16:44:49 +01:00
parent 1e92407f83
commit 16454ac35f
5 changed files with 13 additions and 1 deletions

View File

@@ -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"));