Localization
VirtFusion 2.3 introduces partial support for various languages.
All languages apart from english are machine translated using services such as DeepL, Google Translate and Amazon Translate. If you would like to help improve these files, you may fork the latest language files from https://github.com/VirtFusion/app-localization and create a pull request.
We are currently evaluating other services to make this task easier.
Status
Language support is only available in the following areas. More sections will be translated in future versions.
Status | Notes | |
---|---|---|
Guest | Complete | Initially machine translated. |
End User | Complete | Initially machine translated. |
Admin | - | |
- |
Supported Languages
Code | Name |
---|---|
ar | العربية (Arabic) |
bg | български (Bulgarian) |
bn | বাংলা (Bangla) |
da | Dansk (Danish) |
de | Deutsch (German) |
el | Ελληνικά (Greek) |
en | English (English) |
en_US | English (United States) (English (United States)) |
es | Español (Spanish) |
fi | Suomi (Finnish) |
fr | Français (French) |
hi | हिन्दी (Hindi) |
hr | Hrvatski (Croatian) |
hu | Magyar (Hungarian) |
id | Indonesia (Indonesian) |
it | Italiano (Italian) |
ja | 日本語 (Japanese) |
ko | 한국인 (Korean) |
nl | Nederlands (Dutch) |
pl | Polski (Polish) |
pt_BR | Português (Portuguese) |
ro | Română (Romanian) |
ru | Pусский (Russian) |
sk | Slovenský (Slovak) |
sl | Slovenščina (Slovenian) |
sr | Српски (Serbian) |
sv | Svenska (Swedish) |
th | ไทย (Thai) |
tr | Türkçe (Turkish) |
uk | Українська (Ukrainian) |
ur | اردو (Urdu) |
vi | Tiếng Việt (Vietnamese) |
zh | 中文 (Chinese) |
zh_TW | 中文 (Chinese (Traditional)) |
Setup
Language support is not enabled by default. It can be enabled under Settings -> General
.
Selecting Enable Localization
will allow end users to select their preferred language on the login form and under
their account settings.
Default Langauge
does not need Localization enabled. This setting will set one of the supported languages as the
default for the currently supported areas.
Modifying a Language
Although you can't add your own language, you may modify the supported ones.
You can create custom overrides and place them in /opt/virtfusion/app/custom/control/language
on the control server. (
This folder may not already exist and will need to be created).
mkdir -p /opt/virtfusion/app/custom/control/language
chown virtfusion. /opt/virtfusion/app/custom/control/language
For example. If you would like to override Welcome Back
and the slogan underneath it (Login to your dashboard.
) on
the login page for the English language.
Find the correct .json
in the GitHub repo. https://github.com/VirtFusion/app-localization/blob/main/en/guest.json
Create /opt/virtfusion/app/custom/control/language/en/guest.json
If any of the custom language files contain invalid JSON code, they will be ignored and the system defaults will be used.
In your custom guest.json
add the following:
{
"1": "Hello!",
"2": "Dashboard Login"
}
Those two entries will override the keys that are in the default guest.json
and will continue to be used even after
further updates to the default files.