Opened 16 years ago

Closed 15 years ago

#8778 closed (fixed)

validate_unique - different phrases have the same translations

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: nobody
Component: Internationalization Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the new function validate_unique from [8805] two new translations phrases are added. One for one field (unique), one for more fields (unique_together). There is a difference in code - in the first phrase "field_label" variable is used, in the second phrase "field_labels" variable is used. But in the translation strings only "field_label" is used. It means that for some languages (at least for mine) it is almost impossible to have nice translations of these strings. Could it be possible to change the second "field_label" to "field_labels"?

Attachments (2)

validate-unique-field-labels.diff (854 bytes ) - added by Petr Marhoun <petr.marhoun@…> 16 years ago.
00-unique-together-field-labels.diff (883 bytes ) - added by Petr Marhoun <petr.marhoun@…> 16 years ago.

Download all attachments as: .zip

Change History (7)

by Petr Marhoun <petr.marhoun@…>, 16 years ago

comment:1 by Jacob, 16 years ago

milestone: 1.0post-1.0

That was a deliberate choice -- with string freeze on we're making as few changes as possible for 1.0. We'll fix this after when we can make more string changes without messing with translators' heads.

by Petr Marhoun <petr.marhoun@…>, 16 years ago

comment:2 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

comment:3 by Jacob, 16 years ago

Triage Stage: UnreviewedAccepted

comment:4 by Ramiro Morales, 15 years ago

We missed the chance of fixing this for 1.1, for 1.2 this has been solved by the model validation branch merge that also interoduced some refactoring on the modelform validation code.

I'm leaving this ticket open because I'm not sure if we can change/add translatable literals in the 1.1.x maintenance branch. If we can't then please close this ticket.

in reply to:  4 comment:5 by Ramiro Morales, 15 years ago

Resolution: fixed
Status: newclosed

Replying to ramiro:

I'm leaving this ticket open because I'm not sure if we can change/add translatable literals in the 1.1.x maintenance branch. If we can't then please close this ticket.

I confirmed with Jannis Leidel via IRC that we can't change or add literals in 1.1.x because we can't require translators to update translations there.

Closing ticket as fixed then.

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