| 1 |
from django.utils.translation import gettext as _ |
| 2 |
from django.utils.translation import ngettext |
| 3 |
|
| 4 |
# Translators: This comment should be extracted |
| 5 |
dummy1 = _("This is a translatable string.") |
| 6 |
|
| 7 |
# This comment should not be extracted |
| 8 |
dummy2 = _("This is another translatable string.") |
| 9 |
|
| 10 |
# This file has a literal with plural forms. When processed first, makemessages |
| 11 |
# shouldn't create a .po file with duplicate `Plural-Forms` headers |
| 12 |
number = 3 |
| 13 |
dummy3 = ngettext("%(number)s Foo", "%(number)s Foos", number) % {"number": number} |
| 14 |
|
| 15 |
dummy4 = _("Size") |
| 16 |
|
| 17 |
# This string is intentionally duplicated in test.html |
| 18 |
dummy5 = _("This literal should be included.") |