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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user