Bug #34933
closedWeb elements are not localized Available Button
Description
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.
Updated by Chris Roberts over 2 years ago
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.
Updated by The Foreman Bot over 2 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/10118 added
Updated by Chris Roberts over 2 years ago
- Subject changed from Web elements are not localized (Available Button to Web elements are not localized Available Button
Updated by The Foreman Bot over 2 years ago
- Fixed in Releases Katello 4.5.0 added
Updated by Chris Roberts over 2 years ago
- Status changed from Ready For Testing to Closed
- Difficulty set to easy
Updated by Lucy Fu over 2 years ago
- Target version changed from Katello 4.6.0 to Katello 4.5.0
- Triaged changed from No to Yes
Updated by The Foreman Bot over 2 years ago
- Pull request https://github.com/Katello/katello/pull/10152 added