Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1965930

Summary: NetworkPolicy is not translated in Korean or Chinese
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: ralpert
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.8CC: aos-bugs, eukim, jokerman, ralpert, tchuang, tfu, yapei
Target Milestone: ---Keywords: Translation
Target Release: 4.9.0Flags: ralpert: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Resource kind was not translated. Consequence: Poor readability. Fix: Resource kind was localized. Result: Bug is fixed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:32:13 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
networkpolicy - korean not translated
none
networkpolicy - chinese not translated none

Description Yadan Pei 2021-05-31 07:44:41 UTC
Description of problem:
When Korean or Chinese language is chosen, NetworkPolicy is not localized

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-05-29-114625

How reproducible:
Always

Steps to Reproduce:
1. view console in Korean or Chinese language
2.
3.

Actual results:
1. NetworkPolicy is not translated, it is still NetworkPolicy.

Expected results:
1. NetworkPolicy should be correctly localized, some references 
https://kubernetes.io/zh/docs/concepts/services-networking/network-policies/
https://kubernetes.io/ko/docs/concepts/services-networking/network-policies/

Additional info:

Comment 1 Yadan Pei 2021-05-31 07:47:32 UTC
Created attachment 1788154 [details]
networkpolicy - korean not translated

Comment 2 Yadan Pei 2021-05-31 07:47:57 UTC
Created attachment 1788156 [details]
networkpolicy - chinese not translated

Comment 3 Yadan Pei 2021-05-31 07:49:47 UTC
Hi Rebecca,

This bug should also be handed over to Terry's team, shall I send the email to request translation or do you send the email?

Comment 4 ralpert 2021-06-01 15:30:23 UTC
@yapei - I'm fine with either. I can send an email for this one though.

Comment 5 ralpert 2021-06-01 15:32:35 UTC
Emailed the team!

Comment 6 Yadan Pei 2021-06-02 01:31:49 UTC
Thank you Rebecca,

next time I can send by ourselves : )

Comment 7 Terry CHUANG 2021-06-03 06:42:34 UTC
Hi Yadan and Rebecca,
I'm assuming this is in the public__public file? Will this apply to both NetworkPolicies and NetworkPolicy?
Adding Eunju and Tony to this bz so they're aware of this bug.
- Terry

Comment 8 Yadan Pei 2021-06-03 08:34:42 UTC
Hi Terry,

Yeah, I think it is only in public.json.
This should apply to both NetworkPolicy and NetworkPolicies


$ grep -nir 'networkpolic' frontend/public/locales/
frontend/public/locales/zh/public.json:940:  "NetworkPolicies": "NetworkPolicies",
frontend/public/locales/zh/public.json:987:  "Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in:": "Pod 默认接受所有流量。它们可以通过指定了 ingress 规则白名单的网络策略来隔离。当一个 pod 被网络策略选择时,它将拒绝所有没有通过网络策略明确指定允许的流量。更多详细信息:",
frontend/public/locales/zh/public.json:988:  "NetworkPolicies documentation": "网络策略文档",
frontend/public/locales/zh/public.json:1447:  "NetworkPolicy": "NetworkPolicy",
frontend/public/locales/en/public.json:988:  "NetworkPolicies": "NetworkPolicies",
frontend/public/locales/en/public.json:1037:  "Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in: <2></2>.": "Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in: <2></2>.",
frontend/public/locales/en/public.json:1038:  "NetworkPolicies documentation": "NetworkPolicies documentation",
frontend/public/locales/en/public.json:1546:  "NetworkPolicy": "NetworkPolicy",
frontend/public/locales/ja/public.json:951:  "NetworkPolicies": "ネットワークポリシー",
frontend/public/locales/ja/public.json:998:  "Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in:": "Pod はデフォルトですべてのトラフィックを受け入れます。これらは、ingress ルールのホワイトリストを指定するネットワークポリシー経由で分離できます。Pod がネットワークポリシーによって選択されると、ネットワークポリシーで明示的に許可されていないすべてのトラフィックが拒否されます。詳細については、以下を参照してください。",
frontend/public/locales/ja/public.json:999:  "NetworkPolicies documentation": "ネットワークポリシーのドキュメント",
frontend/public/locales/ja/public.json:1463:  "NetworkPolicy": "ネットワークポリシー",
frontend/public/locales/ko/public.json:951:  "NetworkPolicies": "NetworkPolicies",
frontend/public/locales/ko/public.json:998:  "Pods accept all traffic by default. They can be isolated via NetworkPolicies which specify a whitelist of ingress rules. When a Pod is selected by a NetworkPolicy, it will reject all traffic not explicitly allowed via a NetworkPolicy. See more details in:": "Pod는 기본적으로 모든 트래픽을 허용합니다. Ingress 규칙의 화이트리스트를 지정하는 네트워크 정책을 통해 분리할 수 있습니다. 네트워크 정책에서 Pod를 선택하면 네트워크 정책을 통해 명시적으로 허용되지 않은 모든 트래픽이 거부됩니다. 자세한 내용은 다음을 참조하십시오.",
frontend/public/locales/ko/public.json:999:  "NetworkPolicies documentation": "네트워크 정책 문서",
frontend/public/locales/ko/public.json:1463:  "NetworkPolicy": "NetworkPolicy",

Comment 9 ralpert 2021-06-03 16:13:24 UTC
It looks like this wasn't addressed in https://github.com/openshift/console/pull/9135/files.

Comment 10 Tony Fu 2021-06-03 23:51:56 UTC
Just fixed this issue in Chinese in sprint #201 and #202, please check.

Comment 11 ralpert 2021-06-11 17:24:31 UTC
This looks like it was fixed in the latest round of files. See https://github.com/openshift/console/pull/9223/files. Moving to POST. Thank you!

Comment 12 Yadan Pei 2021-07-05 07:22:23 UTC
NetworkPolicy is now translated correctly when viewing console in Korean or Chinese

Verified on 4.9.0-0.nightly-2021-07-04-140102

Comment 15 errata-xmlrpc 2021-10-18 17:32:13 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.9.0 bug fix and security 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-2021:3759