Non UK Language - PO Files

There are 8 replies in this Thread which was already clicked 2,280 times. The last Post () by cochize.

  • 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/


    34e6e43cf.png



    Now we can use another online website to add in our conversions easily.

    https://localise.biz/free/poeditor


    342f7e0.png


    Loaded PO file.


    eeb87.png


    Click the po icon to unlock it

    a55539b1b8f6b4054.png


    Then click Add to add the english text to be converted.

    09d7389cc8984.png



    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.


    57162b7d7ea6cd18f8.png


    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

    ** A person who feels appreciated will always do more than what is expected **

    Edited 4 times, last by KiddaC ().

  • BIG BIG THANK "MASTER".... all clear and simple :-)


    2 little questions:


    - in my case i use your slykq1080 and in /usr/lib/enigma2/python/Components/Converter i have already

    Slyk18ClockToText.py

    Slyk18RemainingToText.py

    Slyk18ServicePosition.py

    and i must overwrite with your file in this thread ?


    - in case of your example "Italian", thank for this, i see the the new enigma2.mo is more little (395kb), of the one present in

    \root\usr\share\enigma2\po\it\LC_MESSAGES

    that is 456kb. It's normal ?


    Thank again

    Hispa

    - OpenATV & PurE2 - user :-) -

  • Yes override them 3 files with the attached new versions.


    Each build probably has different conversion files.

    The one I attached was from openatv 6.2


    I provided a version of enigma2.mo for convenience.

    You can always follow the full instructions and download your own .mo file. Add in the translations and reupload back.


    You probably don't need to though. :)

    ** A person who feels appreciated will always do more than what is expected **

  • %d Min - %d Min

    %d Mins -%d Min

    %d Hour - %d Ora

    %d Hours - %d Ore

    %dh %2dm - %do %2dm

    %dh - %do

    Started at - Iniziato alle

    Starts at - Inizia alle

    Started %d min ago - Iniziato da %d min

    Started %d mins ago - Iniziato da %d min


    KiddaC can you fix this phrases? This is in italian correctly like original sky Italia. Thank you

  • Hi, is there a chance to restore/get original files:

    Slyk18ClockToText.py

    Slyk18RemainingToText.py

    Slyk18ServicePosition.py


    I tried to tweak with languages following your instructions but now get crash whenever try to play the media file. Thanks in advance.

KiddaC Skins and Plugins

KiddaC Enigma2 Picons, Plugins and Skins, includes slyk-1-HD, v-skin-HD, slyk-q-HD, slyk onyx skins, Bouquet Maker Xtream, E2Piconizer, IPTV Bouquet Maker, Jedi Maker Xtream, Jedi EPG Xtream, ScreenNames, Visual Weather and X Class, X-Streamity - Xtream Codes IPTV Player.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!