Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 14 of 15 FirstFirst ... 412131415 LastLast
Results 196 to 210 of 223

Thread: ViX Finnish translation

  1. #196
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    If you add stuff that is not in the repo how is it going to get in the *.mo files?

    Chromium comes from here:
    Code:
    http://code.vuplus.com/download/chromium/
    Help keep OpenViX servers online.Please donate!

  2. #197

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    Can there be a bug on youtube.py -file that it is missing localization definition ? I don't know python 3 to check it.

    That url is forbidden.

    youtube.zip
    Last edited by Orlandox; 20-12-21 at 17:54.

  3. #198
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Hard to know what is going on without seeing the entire plugin.

    And the real problem is if we fix how do we get the fix into the plugin on a repo we are not in control of.
    Help keep OpenViX servers online.Please donate!

  4. #199

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    I'm just intrested what is the problem that Chromium-plugin is not using its translation files.

    Chromium-plugin: Chromium.zip

    If you can fix it, I can allways copy corrections to my boxes and clean enigma2.mo and use my own made Chromium.po. If not, I will still clean translations from enigma2.mo and make a PR.
    Thank you very much for helping me and clearing this out.

  5. #200

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    Cleaned finnish (fi.po) translation. Is it okay now ?

    fi.zip

  6. #201
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Quote Originally Posted by Orlandox View Post
    I'm just intrested what is the problem that Chromium-plugin is not using its translation files.

    Chromium-plugin: Chromium.zip

    If you can fix it, I can allways copy corrections to my boxes and clean enigma2.mo and use my own made Chromium.po. If not, I will still clean translations from enigma2.mo and make a PR.
    Thank you very much for helping me and clearing this out.
    Where does the plugin install?
    Help keep OpenViX servers online.Please donate!

  7. #202

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    See posts #193 and #194, under \Root\usr\lib\enigma2\python\Plugins\Extensions\

  8. #203
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Quote Originally Posted by Orlandox View Post
    See posts #193 and #194, under \Root\usr\lib\enigma2\python\Plugins\Extensions\
    What is the path to youtube.py? we seem to be missing the plugin name.
    Help keep OpenViX servers online.Please donate!

  9. #204
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    So as I see it, your __init__.py file should look something like this:
    Code:
    # -*- coding: utf-8 -*-
    from __future__ import print_function
    
    from Components.Language import language
    from Tools.Directories import resolveFilename, SCOPE_PLUGINS
    import os
    import gettext
    
    PluginLanguageDomain = "<plugin-name>"
    PluginLanguagePath = "SystemPlugins/<plugin-name>/locale"
    
    
    def localeInit():
    	gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
    
    
    def _(txt):
    	if gettext.dgettext(PluginLanguageDomain, txt):
    		return gettext.dgettext(PluginLanguageDomain, txt)
    	else:
    		print("[" + PluginLanguageDomain + "] fallback to default translation for " + txt)
    		return gettext.gettext(txt)
    
    
    localeInit()
    language.addCallback(localeInit)
    And then in each *.py that needs localisation you need this:
    Code:
    # for localized messages
    from . import _
    Help keep OpenViX servers online.Please donate!

  10. The Following User Says Thank You to Huevos For This Useful Post:

    Orlandox (22-12-21)

  11. #205

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    chromium.py, plugin.py and youtube.py needs localization. I can try to do the changes myself and see what happens. Thanx!
    What about new fi.po from post #200, is it okay ?

  12. #206

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    Here modified files Chromium changed pys.zip and now localization (finnish) is completely working ! Thank you very much.
    How to commit these ? Impossible, because vuplus controls this ?
    Last edited by Orlandox; 21-12-21 at 11:10.

  13. #207
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    I have committed #200.

    I don't know if you can send a PR, but even if you could you would need to check it is compatible with the factory image.
    Help keep OpenViX servers online.Please donate!

  14. The Following User Says Thank You to Huevos For This Useful Post:

    Orlandox (22-12-21)

  15. #208

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    Thank you for the commit.
    Okay, I leave Chromium this way.

  16. #209

    Title
    ViX Beta Tester
    Join Date
    Nov 2020
    Location
    Finland
    Posts
    625
    Thanks
    217
    Thanked 77 Times in 64 Posts
    Hello @Huevos,

    one more finnish localization before Christmas vacation

    AboutBoxBranding. Small thing, but ... Can you commit it ? Thank you.

    AboutBoxBranding.zip

  17. #210
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,626
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Help keep OpenViX servers online.Please donate!

  18. The Following User Says Thank You to Huevos For This Useful Post:

    Orlandox (22-12-21)

Page 14 of 15 FirstFirst ... 412131415 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.