Ticket #5012 (closed Bug: fixed)

Opened 8 years ago

Last modified 8 years ago

check_id error messages not translated or translatable

Reported by: Christian Zagrodnick <cz@…> Owned by: hannosch
Priority: minor Milestone: 2.5
Component: Internationalization Version:
Keywords: Cc:

Description

The error messages genererated from the skins/plone_scripts/check_id.py are neither translated nor are the translatable very easily. I suspect the script itself would need to translate the messages.

Attachments

check_id.py Download (4.7 KB) - added by Christian Zagrodnick <cz@…> 8 years ago.
New version of check_id which translates

Change History

Changed 8 years ago by Christian Zagrodnick <cz@…>

New version of check_id which translates

comment:1 Changed 8 years ago by Christian Zagrodnick <cz@…>

The German translations are

msgid "Please enter a name."
msgstr "Geben Sie bitte einen Namen an."

msgid "There is already an item named '${name}' in this folder."
msgstr "In diesem Ordner gibt es bereits einen Eintrag mit dem Namen '${name}'."

msgid "'${name}' is not a legal name."
msgstr "'${name} ist kein gültiger Name."

msgid "'${name}' is reserved."
msgstr "'${name}' ist reserviert."

comment:2 Changed 8 years ago by hannosch

  • Milestone set to 2.1.x

The patch is definitly not the way to do it. But you can put context.translate() calls around every message, which will be replaced by MessageID's in Plone 2.5.

comment:3 Changed 8 years ago by hannosch

  • Milestone changed from 2.1.x to 2.1.3

comment:4 Changed 8 years ago by hannosch

  • Milestone changed from 2.1.x to 2.5

comment:5 Changed 8 years ago by hannosch

  • Owner changed from somebody to hannosch

comment:6 Changed 8 years ago by hannosch

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

(In [9301]) check_id error messages were not translated. This fixes #5012.

Note: See TracTickets for help on using tickets.