Bug 1009731

Summary: [RFE] ui-plugins infrastructure: localization support (e.g. support adding a tab/sub-tab/button/dialog with a localized title, supply current GUI locale)
Product: [oVirt] ovirt-engine Reporter: Yuko Katabami <ykatabam>
Component: Frontend.WebAdminAssignee: Nobody <nobody>
Status: CLOSED WONTFIX QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: bugs, croe, eng-i18n-bugs, oourfali, qe-i18n-bugs, rbalakri, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ---Keywords: FutureFeature, i18n, Improvement
Target Release: ---Flags: ylavi: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-15 15:17:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1009722, 1247872    
Attachments:
Description Flags
Unlocalized subtabs under Data Center tab
none
Red Hat Search subtab unlocalized none

Description Yuko Katabami 2013-09-19 02:30:22 UTC
Description of problem:
"Red Hat Search" and "Red Hat Documentation" subtabs are unlocalized.

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


How reproducible: 100%


Steps to Reproduce:
1. Open Web Admin Portal in a given locale
2. Click on "Data Centers" tab and select one item in the list.
3. Check the subtabs in the details pane.

Actual results:
"Red Hat Search" and "Red Hat Documentation" subtabs are unlocalized.

Expected results:
Both should be localized.

Additional info:
I have attached a screenshot.

Comment 1 Yuko Katabami 2013-09-19 02:30:57 UTC
Created attachment 799698 [details]
Unlocalized subtabs under Data Center tab

Comment 2 Yuko Katabami 2013-09-19 02:36:09 UTC
Created attachment 799710 [details]
Red Hat Search subtab unlocalized

Comment 3 Yuko Katabami 2013-09-19 02:37:45 UTC
In addition to the unlocalized subtab labels, I have also attached a screenshot of unlocalized strings on the "Red Hat Search" subtab.

Comment 4 Yuko Katabami 2013-09-19 03:33:44 UTC
Just found that the same subtabs appear under other resource tabs as well:
Clusters
Host
Storage
Virtual Machines
Templates

Comment 5 Einav Cohen 2013-09-19 14:34:13 UTC
"Red Hat Search" and "Red Hat Documentation" tabs are dynamically added to the application via the ui plugins infrastructure. each plug-in must supply a set of names in all of RHEV's supported locales, but first we must support localization in the ui-plugins infrastructure.

Comment 6 croe@redhat.com 2013-09-20 01:52:04 UTC
This bug has also found into fr-FR Portal

Comment 7 Einav Cohen 2013-09-20 15:09:54 UTC
there is a chance that the ui-plugins infrastructure would have to supply the currently-selected locale for the ui-plugins to consume (so bugs such as bug 1009722 can be solved).

Comment 8 Itamar Heim 2014-05-10 11:46:01 UTC
einav - scope of effort to support this for the changes to the main gui (buttons/context menu added)? on how uiplugins would support it for their dialogs?

Comment 9 Einav Cohen 2014-05-13 17:59:29 UTC
(In reply to Itamar Heim from comment #8)
> einav - scope of effort to support this for the changes to the main gui
> (buttons/context menu added)? 

main-tab/sub-tab/dialog-title/button/context-menu can probably all be covered by the same effort. 
the ui-plugins-infrastructure will need to be able to consume dynamic resources [i.e. resources (e.g. .properties files) supplied by the ui-plugin]. not trivial IMO. 

> on how uiplugins would support it for their dialogs?

each custom dialog/main-tab/sub-tab will need to take care of its own localization (as they typically display external content). 
we can only supply the current GUI locale to be consumed by the external content. this is the "supply current GUI locale" part of the RFE subject. 
this shouldn't take long - sounds like another method/property of 'getCurrentEngineLocale' or similar.

Comment 10 Oved Ourfali 2017-05-15 15:17:44 UTC
I don't see us prioritizing this work.
For specific plugins that are built in, like the dashboard, we solve this as part of the plugin itself.

Closing this as wontfix.