Description of problem: Some string constans that we use in UI use _() routine for translation. This poses a problem, because the UI constants are being loaded only once during application start, i.e. if they are wrapped in _(), they are being translated at the application start. At this point, the application locale is set to English. When these strings are then being rendered in the UI in a non-English locale, the strings will still be in English. What we need to do here is: 1. use N_() when defining the constant 2. use _() when the constant is being rendered (run-time) Version-Release number of selected component (if applicable): CFME-5.6 How reproducible: Always Steps to Reproduce: 1. Set Japanese locale 2. Navigate to VM list advanced search and select search-type date field 3. Navigate to Cloud Intel -> Reports -> Dashboard Widgets Actual results: The constant UI strings remain in English. See screenshots. Expected results: The strings need to be translated into the respective locale. Additional info: N/A
Created attachment 1174853 [details] Dashboard widgets tree
Created attachment 1174854 [details] VM list advanced search
https://github.com/ManageIQ/manageiq/pull/9257
In CFME 5.7.0.16.20161213213754_1ad3545 I see that the widgets tree translations have been updated, but the dropdown selections in the Dashboard Widgets form are still in the default locale (English). Should these have been covered by this bug, or should a new bug be written against the lack of translation in those forms? Attaching screenshot report_dropdowns_noTranslation.png Thanks.
Created attachment 1233546 [details] ON_QA - Form dropdowns Forms on the Dashboard Widgets page have elements that aren't translated, though the accordion tree is now translated.
(In reply to Mike Shriver from comment #8) > Created attachment 1233546 [details] > ON_QA - Form dropdowns > > Forms on the Dashboard Widgets page have elements that aren't translated, > though the accordion tree is now translated. As things are, the untranslated entries you're showing in your screenshot happen to come from the database, so we cannot really have them translated.
Noted, thanks for the clarification. Both the date field selections on advanced search and the dashboard widget accordion folder names are now both translated properly when the locale is set. Tested on CFME 5.7.0.16.20161213213754_1ad3545