Code

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10600 closed (fixed)

Broken msgid in r.10140 translations

Reported by: zgoda Owned by: nobody
Component: Translations Version: master
Severity: Keywords: xgettext makemessages
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I tried to update messages catalog for pl and got:

jarek:~/install/django/django$ LANG=C django-admin.py makemessages -l pl
processing language pl
Error: errors happened while running xgettext on options.py
./contrib/admin/options.py:498: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
                                         The translator cannot reorder the arguments.
                                         Please consider using a format string with named arguments,
                                         and a mapping instead of a tuple for the arguments.

This error prevents updating django.po for Polish language (and I suppose for others too).

Attachments (1)

admin-options-trans.diff (862 bytes) - added by zgoda 5 years ago.
patch for contrib/admin/options.py with fixed msgid

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by zgoda

patch for contrib/admin/options.py with fixed msgid

comment:1 Changed 5 years ago by zgoda

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [10141]) Fixed #10600 -- Allow for format marker reordering in a translatable string.

comment:3 Changed 5 years ago by mtredinnick

Sorry, Jarek. I didn't see you'd attached a patch before I fixed it. My bad. :-(

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.