Ceph : Issueshttps://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2020-06-19T09:00:17ZCeph
Redmine Dashboard - Bug #46105 (Resolved): mgr/dashboard: fails to start dev server with zh-CN or zh-TW c...https://tracker.ceph.com/issues/461052020-06-19T09:00:17ZKiefer Chang
<p>Starting dev server with `--configuration=zh-CN` or `--configuration=zh-TW` fails with the error:</p>
<pre>
[cd.js] 'src/environments/environment.tpl.ts' was copied to 'src/environments/environment.prod.ts'
[cd.js] 'src/environments/environment.tpl.ts' was copied to 'src/environments/environment.ts'
[cd.js] Placeholders were replace in 'src/environments/environment.ts'
[cd.js] Placeholders were replace in 'src/environments/environment.prod.ts'
An unhandled exception occurred: Configuration 'zh-TW' is not set in the workspace.
See "/tmp/ng-yD9LIo/angular-errors.log" for further details.
</pre> Dashboard - Feature #43252 (New): mgr/dashboard: Add I18N/L10N support to the backend to return l...https://tracker.ceph.com/issues/432522019-12-11T10:51:15ZLenz Grimmer
<p>This came up during the review of <a href="https://github.com/ceph/ceph/pull/32032" class="external">PR32032</a> - by moving the validation of the password complexity to the dashboard backend / REST API, the frontend would need to translate the messages returned in order to provide a consistent user experience. In order to avoid the duplication of strings and to also support localized error messages for users talking to the REST API directly, we concluded to make the REST API return localized strings, based on the HTTP header submitted by the API client (e.g. the dashboard). The translations could then be managed via <a href="https://docs.python.org/3/library/gettext.html" class="external">gettext</a> and the Transifex translation platform.</p>
<p>Note that this will only apply to messages generated by the Ceph dashboard backend directly; the REST API will still return a lot of other information in English only (e.g. the Ceph health state), as these messages originate from other parts of the Ceph codebase.</p> Dashboard - Bug #42376 (Resolved): mgr/dashboard: Language selection issues on Firefoxhttps://tracker.ceph.com/issues/423762019-10-18T11:54:12ZLenz Grimmer
<p>After the changes made via <a class="issue tracker-1 status-3 priority-5 priority-high3 closed" title="Bug: mgr/dashboard: Building the frontend with --prod cause problems (Resolved)" href="https://tracker.ceph.com/issues/41988">#41988</a> , selecting a different language in Firefox seems to suffer from some caching issue that does not seem to appear using Chrome: the page reloads, but is still displayed in the previously selected language (the dropdown also reverts back to the previous language). After doing a force-reload (pressing Shift+Ctrl+R), the desired language is used (and the selection box also switches to the correct language). Ideally, the desired language should be displayed immediately and automatically after choosing another language in the dropdown.</p>