Navigation buttons in staff client browse result appear untranslated

Bug #1920247 reported by Eva Cerninakova
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned

Bug Description

In Evergreen 3.6.2 in the Angular staff client, the navigation buttons "Next" and "Back" are displayed untranslated in the Browse and Shelf Browse result screen, see the attachment.

I am not sure where the strings come from, and also whether the strings have been marked for translation. In The POEditor translation strings I didn’t have found the "Back" string, however, there is the string Next (ID 3885497195825665706).

Revision history for this message
Eva Cerninakova (ece) wrote :
tags: added: i18n staffcatalog
Revision history for this message
Eva Cerninakova (ece) wrote :

The problem i probably caused by code in lines 16 and 17 in Open-ILS/src/eg2/src/app/staff/nav.component.html.

I suppose the original lines 16 and 17
         <a ngbDropdownToggle i18n class="nav-link dropdown-toggle">
          Search

 should be replaced by following:
         <a ngbDropdownToggle class="nav-link dropdown-toggle">
          <span i18n>Search</span>

tags: added: bitesize
Revision history for this message
Eva Cerninakova (ece) wrote :

I accidentally mixed another two similar problems - the comment #2 concerns not the browsing navigation button, but the untranslated "Search" menu item on the main navigation bar.

The untranslatable "back" and "next" strings are in the template Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.html, lines 31 & 32, 79 & 80:

31       <button class="btn btn-primary" (click)="prevPage()">Back</button>
32       <button class="btn btn-primary ml-3" (click)="nextPage()">Next</button>

79       <button class="btn btn-primary" (click)="prevPage()">Back</button>
80       <button class="btn btn-primary ml-3" (click)="nextPage()">Next</button>

Revision history for this message
Eva Cerninakova (ece) wrote :

Still issue in Evergreen 3.11. Tested in https://bugsquash3.mobiusconsortium.org/

Revision history for this message
Eva Cerninakova (ece) wrote :
Changed in evergreen:
status: New → Confirmed
Revision history for this message
Linda Jansova (skolkova-s) wrote :

I can confirm it is still an issue on Blake's bugsquash2 test server.

My guess is that adding the i18n attribute to the button element on lines 31, 32, 79 and 80 in the results.component.html file (https://git.evergreen-ils.org/?p=Evergreen.git;a=blob;f=Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse/results.component.html;h=02dd920287fe57ebcee097bf7a50ee165eed37c1;hb=HEAD) which Eva has mentioned in comment #3 could serve an appropriate remedy.

Revision history for this message
Stephanie Leary (stephanieleary) wrote :

Thanks for tracking down the exact lines, Linda!

Here's a branch that adds the missing i18n attributes (with clarification for translators): https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sleary/LP1920247-missing-nav-button-i18n

tags: added: pullrequest
Revision history for this message
Linda Jansova (skolkova-s) wrote :

Thank you very much, Stephanie!

Changed in evergreen:
milestone: none → 3.13-beta
Revision history for this message
Mike Rylander (mrylander) wrote :

Picked to main, I18N FTW! Also, more examples of providing translator context! Thanks, Stephanie.

Changed in evergreen:
assignee: nobody → Mike Rylander (mrylander)
status: Confirmed → Fix Committed
Andrea Neiman (aneiman)
Changed in evergreen:
assignee: Mike Rylander (mrylander) → nobody
importance: Undecided → Medium
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.