Bug 1917585

Summary: OLM Operator install page missing i18n
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.0   
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: 2021-02-24 15:54:15 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
01 - placeholder text not pseudolocalized
none
02 - error message not pseudolocalized none

Description Jon Jackson 2021-01-18 20:10:34 UTC
Description of problem:
Some strings missing i18n on the operator subscription page

Version-Release number of selected component (if applicable):
4.7

How reproducible:
Always

Steps to Reproduce:
1. Visit the admin console and add the url search params `?pseudolocalization=true&lng=en`
2. Navigate to OperatorHub
3. Click any Operator that isn't already installed in the current Namespace
4. Click Install (dismiss Community operator alert if you encounter it)

Actual results:
Most of the text on the Operator install page is not pseudolocalized.

Expected results:
All of the static text (form field labels, help text, static radio options, alerts, button text, etc.) on the Operator install page should be pseudolocalized.

Comment 2 Yadan Pei 2021-01-22 08:30:30 UTC
Created attachment 1749647 [details]
01 - placeholder text not pseudolocalized

Comment 3 Yadan Pei 2021-01-22 08:31:01 UTC
Created attachment 1749648 [details]
02 - error message not pseudolocalized

Comment 4 Yadan Pei 2021-01-22 08:31:28 UTC
1. Placeholder text 'Selected Namespace' for Installed Namespace dropdown is not pseudolocalized, see attachment 01 [details] - placeholder text not pseudolocalized 
2. When clicking 'Install' button without choosing namespace, it will throw error `namespaces "undefined" not found`, this error message is not pseudolocalized, see attachment 02 [details] - error message not pseudolocalized

Assigning back to double confirm

Comment 5 Jon Jackson 2021-01-25 15:37:31 UTC
(In reply to Yadan Pei from comment #4)
> 1. Placeholder text 'Selected Namespace' for Installed Namespace dropdown is
> not pseudolocalized, see attachment 01 [details] - placeholder text not
> pseudolocalized 
> 2. When clicking 'Install' button without choosing namespace, it will throw
> error `namespaces "undefined" not found`, this error message is not
> pseudolocalized, see attachment 02 [details] - error message not
> pseudolocalized
> 
> Assigning back to double confirm

I've opened a follow on PR for #1, but #2 is expected. That error message is coming directly from the API response, so we can't always translate it. We do have a fallback value that is displayed if the API call fails without an error message. I checked and my PR does include that fallback message in the translations, so I think we have covered that error alert as much as we can.

Comment 7 Yadan Pei 2021-01-27 01:54:00 UTC
1. Visit the admin console and add the url search params `?pseudolocalization=true&lng=en`
2. Navigate to OperatorHub
3. Click any Operator that isn't already installed in the current Namespace
4. Click Install (dismiss Community operator alert if you encounter it)

Check static text (form field labels, help text, static radio options, alerts, button text, etc.) on the Operator install page, all have been pseudolocalized


Verified on 4.7.0-0.nightly-2021-01-26-162323

Comment 10 errata-xmlrpc 2021-02-24 15:54:15 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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-2020:5633