We recently added multilanguage support to Volumio2, so if you want to see it in your language, every contribution is welcome!
Here’s a tutorial on how you can do that
Introduction
Translations are handled in 3 files:
-
Frontend file (translations from the UI)
github.com/volumio/Volumio2-UI/ … le-en.json -
Backend file (translations from the Volumio system)
github.com/volumio/Volumio2/blo … gs_en.json -
Language file, that provides the language options, like Language Name and Language code
github.com/volumio/Volumio2/blo … uages.json
So, in order to have a new translation available, we must edit those 3 files.
[b]How to:
IF YOU HAVE GIT KNOWLEDGE[/b]
-
Clone those 2 git repos:
Backend: github.com/volumio/Volumio2 (it’s now in branch dev, but we’ll merge it to master soon)
Frontend: github.com/volumio/Volumio2-UI (it’s now in branch dev, but we’ll merge it to master soon) -
Copy the frontend file in /src/app/i18n/locale-en.json to /src/app/i18n/locale-XX.json , where XX is the lang code for your language (it for italian, de for deutsch etc )
-
Translate it by subsituting the english text with your translation
-
Do the same for the backend, the file will be app/i18n/strings_XX.json
-
Add your language to app/plugins/miscellanea/appearance/languages.json , where code is the code you placed instead of XX and name is your language name.
-
Copy all 3 files on your volumio system in the right location ,and restart it (killall node)
-
If everything looks fine, and your translations are appropriate. Send a pull request to the 2 repos involved
IF YOU DON’T HAVE GIT KNOWLEDGE
- Download those 2 files:
raw.githubusercontent.com/volum … gs_en.json
github.com/volumio/Volumio2-UI/ … le-en.json
- Edit the name of strings_en.json to strings_XX.json where XX is the lang code for your language (it for italian, de for deutsch etc )
- Translate it by subsituting the english text with your translation
- Do the same for the file locale-en.json
- Attach those 2 files in this thread
TO TRY THE NEW TRANSLATION:
Edit accordingly the files on both the backend and the frontend. Then
BACKEND:
killall node
FRONTEND
Follow the instructions on how to develop the UI from its README
github.com/volumio/Volumio2-UI
Thanks to everyone that will be contributing!
Thanks to:
Balbuze - French translation
Dennis Hagens - Dutch Translation
ycat3 - Japanese Translation
ChristianFink - German Translation
zbeegniev - Polish Translation
tomatpasser - Danish Translation
FishTest - Chinese translation
Magnus kjez - Swedish translation