Multilingual Support - ovirt-china/manage-domains-plugin GitHub Wiki
⚠️ The actual system allowing the plugin to handle multiple languages is a custom solution build quickly to answer the need of our Chinese users while dealing with the restriction of the oVirt's UI Plugins. In the future versions, we will have to switch to something less specific as for example angular-translate.
Due to the fact oVirt's UI Plugins doesn't seems to support static files, most of the translations are in the js file translations.js except for the answers from the API which are with the requests in the file ajax.js.
The language is chosen on the default browser language and not on the language define by the user in oVirt. This is due to the fact that the UI Plugin can't access the language parameter in the oVirt URL.
Supported Languages
🇬🇧 English [Default]
🇨🇳 Chinese
N.B. The answers of the API are still in English and so the messages displayed in the browser are pre-generated ones. To get the precise message send by the API, you should check them in your browser console.
Label Names and Translations
💡 Some of the messages where the {domain-name} has to be inserted are split in two.
General
Label Name
English
中国
TAB_NAME
Domains
域名
PROCESSING
Processing...
处理...
Menu
Label Name
English
中国
BTN_ADD_LABEL
Add
添加
BTN_REFRESH_LABEL
Refresh
刷新
Table
Label Name
English
中国
TABLE_DOMAIN_LABEL
Domain
域
TABLE_USERNAME_LABEL
Username
用户名
TABLE_ACTIONS_LABEL
Actions
行动
TABLE_NO_DOMAINS
No domain to display.
无域显示。
TABLE_BTN_EDIT_LABEL
Edit
编辑
TABLE_BTN_REMOVE_LABEL
Delete
删除
Notification Messages
Label Name
English
中国
NOTIFICATION_WELCOME
Thanks for using this plugin. All the code is on GitHub. If you have any suggestion please open an issue on GitHub.