Project

General

Custom queries

Profile

Actions

Bug #34933

closed

Web elements are not localized Available Button

Added by Chris Roberts almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Chris Roberts almost 3 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.

Actions

Also available in: Atom PDF