[Bug 13637] New: Make the permission's descriptions translatable in template
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13637 Bug ID: 13637 Summary: Make the permission's descriptions translatable in template Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: gmcharlt@gmail.com Reporter: jonathan.druart@biblibre.com QA Contact: testopia@bugs.koha-community.org It could be quite easy to extract the description of the permissions (tables userflags and permissions) into the templates. They could be translatable like any other strings in templates. alter table permissions drop column description; alter table userflags drop column flagdesc; And in the templates: [% IF flag == superlibrarian %] Access to all librarian functions [...] [% IF code == 'circulate_remaining_permissions' %] Remaining circulation permissions [...] And delete / move sql files: mv installer/data/mysql/en/mandatory/userpermissions.sql installer/data/mysql/userpermissions.sq rm installer/data/mysql/LANG/*/userpermissions.* # same for userflags.sql Someone against the idea? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13637 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I think it would make sense to move those descriptions out of the database as they don't change often and it's always a lot of work to add a new permission to all files. I think the installer bit needs a bit more thought, but is solvable: Currently if you don't have a mandatory file in the directory, there is no fallback to the en file. So we'd have to have a mechanism like for the sysprefs.sql file that is outside and always loaded, no matter that language you run the installer in. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13637 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bgkriegel@gmail.com --- Comment #2 from Jonathan Druart <jonathan.druart@biblibre.com> --- Bernardo, any thoughts? Something you already have developed somewhere else? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13637 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=13632 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13637 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Jonathan Druart <jonathan.druart@biblibre.com> --- *** This bug has been marked as a duplicate of bug 13632 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org