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/
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/
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.
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.
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.
Cleaned finnish (fi.po) translation. Is it okay now ?
fi.zip
See posts #193 and #194, under \Root\usr\lib\enigma2\python\Plugins\Extensions\
So as I see it, your __init__.py file should look something like this:
And then in each *.py that needs localisation you need 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)
Code:# for localized messages from . import _
Orlandox (22-12-21)
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 ?
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.
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.
Orlandox (22-12-21)
Thank you for the commit.
Okay, I leave Chromium this way.
Hello @Huevos,
one more finnish localization before Christmas vacation
AboutBoxBranding. Small thing, but ... Can you commit it ? Thank you.
AboutBoxBranding.zip
Orlandox (22-12-21)