Bug 1879811

Summary: [ALL_LANG] [SAT_6.8 | 6.9 | 6.10|6.11 ] Web elements are not localized (Available Button, ON/OFF Switch Button)
Product: Red Hat Satellite Reporter: visawant
Component: Hosts - ContentAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: medium Docs Contact:
Priority: high    
Version: 6.8.0CC: aupadhye, chrobert, visawant, zhunting
Target Milestone: 6.12.0Keywords: i18n, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:32:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Non localized strings on web element.
none
search translated correctly. none

Description visawant 2020-09-17 05:37:50 UTC
Created attachment 1715166 [details]
Non localized strings on web element.

Created attachment 1715166 [details]
Non localized strings on web element.

Description of problem: In locale ja_JP, zh_CN, pt_BR, fr_FR, and es_ES, Text on web element are not translated as per locale.


Version-Release number of selected component (if applicable):Satellite 6.8.0 Beta


How reproducible: Always


Steps to Reproduce:
1. Login to Satellite 6.8 instance with any locale.
2. Navigate to Content - Red Hat Repositories.
3. Look for 'Available' drop down, 'Search' button, 'ON/OFF' switch button.

Actual results: Strings are not marked as translatable strings.


Expected results: Strings should be marked as translatable strings.


Additional info: Please see attached screen shot.

Comment 5 visawant 2022-05-05 09:26:48 UTC
This issue has been observed in 6.11.0 build as well.

Comment 6 Chris Roberts 2022-05-17 15:27:24 UTC
Hi Team,

I looked into this more and here is what I found:

* Search button has been translated properly: 

See screenshot attached to bz

* On/Off Toggle: 

It looks like Patternfly 3 does not support labels for states: https://github.com/patternfly/patternfly-react/blob/patternfly-3/packages/patternfly-react/src/components/Switch/Switch.js

I do see Pattenfly 4 does, so until this page gets revamped to P4 then the on/off selector will not translate. 

https://www.patternfly.org/2020.04/documentation/react/components/switch

I did try the props but it didn't do anything

* Dropdown:

I did see a few spots missing the translate bits, so will make a pr for that.

Comment 7 Chris Roberts 2022-05-17 15:28:36 UTC
Created attachment 1880536 [details]
search translated correctly.

Comment 9 Silas Pusateri 2022-08-05 20:29:34 UTC
Hi,

I've tested this on 6.12.0 snap 5 with all of the locales listed in the original description (Comment 0)

Results:
The search is translated correctly in all

In the 'Available' dropdown, 'Available' option is translated, however the 'Both' option does not appear to be translated in any of the locales

As @chrobert mentioned above, the ON/OFF selector is not translated until this page is updated to PF4



Questions:
Is the 'Both' option expected to be translated as well? 

Without the ON/OFF selector does this meet the criteria to be verified? If it cannot be translated until the page is updated to use PF4, will there be a separate ticket filed for it?

Comment 10 Chris Roberts 2022-08-18 15:24:49 UTC
Hi Silas,

I have filed this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2119470

For the Both and other component

I think base on that if the other areas are verified, you can say this bug is good to go.

Comment 11 Silas Pusateri 2022-08-26 13:26:46 UTC
Thanks Chris,

Just wanted to make sure it was being tracked somewhere

Marking this Verified with info/steps listed in Comment 9

Comment 16 errata-xmlrpc 2022-11-16 13:32:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506

Comment 17 Red Hat Bugzilla 2023-09-18 00:22:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days