[Koha-bugs] [Bug 25923] New: pr-BR translations breaks Tools (Ferramentas) menu and submenus

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 3 15:33:21 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25923

            Bug ID: 25923
           Summary: pr-BR translations breaks Tools (Ferramentas) menu and
                    submenus
 Change sponsored?: ---
           Product: Project Infrastructure
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Bugzilla
          Assignee: jonathan.druart at bugs.koha-community.org
          Reporter: steven.schmieder at gmail.com

Created attachment 106508
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106508&action=edit
Examples of erroneous lines in pt-BR code

When updating translations to Koha version 20.05.01 using pt-BR (Brazilian
Portuguese) coding errors are introduced into several files making the Tools
(Ferramentas) and submenus inoperable. An "internal server error" message is
displayed.

The coding errors are found in at least two file that I can identify:

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pt-BR/modules/tools/tools-home.tt

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/pt-BR/includes/tools-menu.inc

For example (there is more than one error in each file), in the file
"tools-home.tt" at line 16, the original file has:

[% IF (CAN_user_tools_manage_patron_lists || || CAN_user_clubs
CAN_user_tools_moderate_comments || || CAN_user_tools_import_patrons
CAN_user_tools_edit_notices || || CAN_user_tools_edit_notice_status_triggers
CAN_user_tools_label_creator || || CAN_user_tools_delete_anonymize_patrons
CAN_user_tools_edit_patrons || || CAN_user_tools_batch_extend_due_dates
CAN_user_tools_moderate_tags || (CAN_user_tools_batch_upload_patron_images &&
Koha.Preference ('patronimages') ) ) %]  <h3>Usuários e circulação</h3>

The line should be:

[% IF (CAN_user_tools_manage_patron_lists || CAN_user_clubs ||
CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons ||
CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers ||
CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons ||
CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates ||
CAN_user_tools_moderate_tags || (CAN_user_tools_batch_upload_patron_images &&
Koha.Preference ('patronimages') ) ) %]  <h3>Usuários e circulação</h3>

In the file "tools-menu.inc" at line 8, the original file has:

[% IF (CAN_user_tools_manage_patron_lists || || CAN_user_clubs
CAN_user_tools_moderate_comments || || CAN_user_tools_import_patrons
CAN_user_tools_edit_notices || || CAN_user_tools_edit_notice_status_triggers
CAN_user_tools_label_creator || || CAN_user_tools_delete_anonymize_patrons
CAN_user_tools_edit_patrons || || (CAN_user_tools_moderate_tags
CAN_user_tools_batch_upload_patron_images && Koha.Preference ('patronimages') )
) % ] <h5>Usuários e circulação</h5>

The line should be:

[% IF (CAN_user_tools_manage_patron_lists || CAN_user_clubs ||
CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons ||
CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers ||
CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons ||
CAN_user_tools_edit_patrons || CAN_user_tools_moderate_tags || (
CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') )
) %] <h5>Usuários e circulação</h5>

There are other errors in both files. Theses are just two examples. 

Running "koha-translate --update pt-BR" reproduces the erroneous files.

Manually editing both files solves the problem.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list