[Koha-bugs] [Bug 13637] New: Make the permission's descriptions translatable in template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 28 15:34:02 CET 2015


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 at gmail.com
          Reporter: jonathan.druart at biblibre.com
        QA Contact: testopia at 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.


More information about the Koha-bugs mailing list