Django

Code

Ticket #7564 (closed: fixed)

Opened 5 months ago

Last modified 5 months ago

Translated string with unamed arguments

Reported by: garcia_marc Assigned to: permon
Milestone: 1.0 alpha Component: Internationalization
Version: newforms-admin Keywords: nfa-blocker
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

When executing django/bin/make-messages.py on newforms-admin branch, next warnings are displayed:

errors happened while running xgettext on options.py
./contrib/admin/options.py:430: 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.
./contrib/admin/options.py:433: 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.
./contrib/admin/options.py:438: 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.

Attachments

gettext.diff (2.0 kB) - added by permon on 06/28/08 18:39:38.

Change History

06/28/08 18:39:38 changed by permon

  • attachment gettext.diff added.

06/28/08 18:40:34 changed by permon

  • status changed from new to assigned.
  • needs_better_patch changed.
  • needs_tests changed.
  • owner changed from nobody to permon.
  • needs_docs changed.
  • has_patch set to 1.
  • stage changed from Unreviewed to Ready for checkin.

Lines corrected, make-messages now doesn't complain.

07/09/08 13:29:47 changed by brosner

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [7874]) newforms-admin: Fixed #7564 -- Make position argument string interpolation use keywords instead. Works better for translators and get rid of make-messages.py warnings. Thanks Marc Garcia for the report and permon for the patch.


Add/Change #7564 (Translated string with unamed arguments)




Change Properties
Action