Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9506 closed (fixed)

Missing i18n string in django.contrib.admin.options

Reported by: Petar Marić Owned by: Karen Tracey
Component: Internationalization Version: dev
Severity: Keywords: i18n
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Source line 559:
raise Http404('%s object with primary key %r does not exist.' % (force_unicode(opts.verbose_name), escape(object_id)))

Expected:
raise Http404(_('%s object with primary key %r does not exist.') % (force_unicode(opts.verbose_name), escape(object_id)))

Attachments (1)

9506_1.0.1.diff (714 bytes ) - added by Marc Fargas 16 years ago.
Patch

Download all attachments as: .zip

Change History (9)

by Marc Fargas, 16 years ago

Attachment: 9506_1.0.1.diff added

Patch

comment:1 by Marc Fargas, 16 years ago

Component: TranslationsInternationalization
Triage Stage: UnreviewedAccepted

Patch attached, please commit ASAP to have translations in time for 1.0.1 if possible ;)

comment:2 by Karen Tracey, 16 years ago

Resolution: fixed
Status: newclosed

(In [9360]) Fixed #9506 -- Marked error string for translation.

comment:3 by Karen Tracey, 16 years ago

(In [9362]) [1.0.X] Fixed #9506 -- Marked error string for translation.

[9360] from trunk.

comment:4 by Jarek Zgoda, 16 years ago

Resolution: fixed
Status: closedreopened

The convention used in this patch prevents locale catalog updating:

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:559: 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.

comment:5 by Karen Tracey, 16 years ago

Owner: changed from nobody to Karen Tracey
Status: reopenednew

Oops. I'll fix it.

comment:6 by Karen Tracey, 16 years ago

Resolution: fixed
Status: newclosed

(In [9363]) Fixed #9506 take 2 -- Marked the message properly for translation, in both places it appears in the source.

comment:7 by Karen Tracey, 16 years ago

(In [9364]) [1.0.X] Fixed #9506 take 2 -- Marked the message properly for translation, in both places it appears in the source.

[9363] from trunk.

comment:8 by Ramiro Morales, 16 years ago

(In [9421]) [1.0.X] Updated Argentinian spanish translations, refs #9506 and related commits.

Port of [9420] from trunk.

Note: See TracTickets for help on using tickets.
Back to Top