As I get asked a lot about language conversion for my skins and plugins. I thought I would do some investigation for you. Because its easier for you to edit your PO files than for me to keep creating multiple scripts in different languages.
Firstly for any of my 3 latest skins, Slyk 1080 R19, Slyk Onyx 1080 & Slyk Q 1080, there needs to be an update of my custom components.
So download the 3 files attached and upload to
/usr/lib/enigma2/python/Components/Converter
(note I will be putting the new versions of these files in the next skin releases)
Now all enigma2 boxes have PO language files which convert into your chosen language.
These live here...
/usr/share/enigma2/po
For this example I am going to use Italian files.
/usr/share/enigma2/po/it/LC_MESSAGES
Inside that folder you will either have a .po file or a .mo file.
If .mo we need to convert it to a .po file.
To convert the .mo file, download it to your computer then upload to this online converter.
http://tools.konstruktors.com/
https://ezgif.com/mo-to-po/
Now we can use another online website to add in our conversions easily.
https://localise.biz/free/poeditor
Loaded PO file.
Click the po icon to unlock it
Then click Add to add the english text to be converted.
For my custom components you need to add
%d Min
%d Mins
%d Hour
%d Hours
%dh %2dm
%dh
Started at
Starts at
Started %d min ago
Started %d mins ago
If there are any existing conversions for these text. Delete them first with the delete button as they might clash.
Once you have added in all the text to convert whether in one go or one at a time.
Then click the POT file icon to lock it again.
When the file is locked again, you can highlight each text and add in the translation.
i.e
%d Min - %d Min
%d Mins -%d Mins
%d Hour - %d Ora
%d Hours - %d Ore
%dh %2dm - %do %2dm
%dh - %do
Started at - Iniziato a
Starts at - Inizio a
Started %d min ago - Iniziato %d min fa
Started %d mins ago - Iniziato %d mins fa
Once you are finished editting click save and download the .mo or .po (which ever your box is using)
Rename it back to engima2.mo and reupload back to your box.
Restart your GUI