Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#10616 closed Uncategorized (duplicate)

Meta.permission does not work with lazy translations

Reported by: Florian Apolloner Owned by: nobody
Component: Contrib apps Version: master
Severity: Normal Keywords:
Cc: bronger@…, eschler@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Problem is this line:

        permissions = (
                ("only_own", _("Restrict to own Obj.")),

As jacob suggested on irc:

<jacobkm> It's probably a simple fix -- just need a smart_unicode() call somewhere.
<jacobkm> File a ticket and mark it for the 1.1 milestone; we'll get it done.

Attachments (1)

permissions-translations.diff (1.9 KB) - added by Alex Gaynor 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Alex Gaynor

comment:1 Changed 11 years ago by Alex Gaynor

Resolution: duplicate
Status: newclosed

Upon reexamination this is really a dupe of #6460.

comment:2 Changed 10 years ago by Harro

As a note to other people getting the "Error binding parameter 0 - probably unsupported type." error.

You can't translate the permission description name in the model, it's inserted in the database so translations will never work that way. (because then the translated string would be entered in the database and on the fly changing of the language would mean you have to update the database for that user and not for others)

comment:3 Changed 9 years ago by Torsten Bronger

Cc: bronger@… added

In this case I think storing the description of a permission in the DB is an error. It should be taken from the code while the program runs. That way, it would be easily translatable. Please consider reopen this ticket if you agree.

comment:4 Changed 9 years ago by Dirk Eschler

Cc: eschler@… added
Easy pickings: unset
Severity: Normal
Type: Uncategorized

comment:5 Changed 8 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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