#11240: Compilemessages fails if a % character is at certain places in the .po
file
-------------------------------------------+--------------------------------
Reporter: tback | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: 1.0
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by ramiro):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> Reproduce:
> Create a template:
> {% load i18n %}
> {% trans "findme 10% " %}
>
> run ./manage.py makemessages -a
> find the string in the .po file and translate it like this:
> #: templates/test.html:2
> #, python-format
> msgid "findme 10% of their"
> msgstr "findemich 10% an "
>
> run ./manage.py compilemessages
>
> get this error message:
> /project/locale/de/LC_MESSAGES/django.po:925: 'msgstr' is not a valid
> Python format string, unlike 'msgid'. Reason: In the directive number 1,
> the character 'a' is not a valid conversion specifier.
> msgfmt: found 1 fatal errors
New description:
Reproduce:
Create a template:
{{{
{% load i18n %}
{% trans "findme 10% " %}
}}}
run `./manage.py makemessages -a`
find the string in the .po file and translate it like this:
{{{
#: templates/test.html:2
#, python-format
msgid "findme 10% of their"
msgstr "findemich 10% an "
}}}
run `./manage.py compilemessages`
get this error message:
{{{
/project/locale/de/LC_MESSAGES/django.po:925: 'msgstr' is not a valid
Python format string, unlike 'msgid'. Reason: In the directive number 1,
the character 'a' is not a valid conversion specifier.
msgfmt: found 1 fatal errors
}}}
Comment:
(formatted description)
--
Ticket URL: <http://code.djangoproject.com/ticket/11240#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---