[Bug 25923] New: pr-BR translations breaks Tools (Ferramentas) menu and submenus
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@bugs.koha-community.org Reporter: steven.schmieder@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.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25923 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Steven, usually translation errors like these need to be fixed on translate.koha-community.org where we maintain the po files used for translations. The files from there are then shipped with every release of Koha. I have copied the original English into the translations on translate now for pr-BR now and hope this will fix the issue. But please check! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org