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.dru...@bugs.koha-community.org Reporter: steven.schmie...@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. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/