I took the liberty of correcting openatv's setup.py by adding two lines so that the setup.xml can also be translated into the user language.
It might not be good for the team, but at least I tested it, and it works for me.
I'll apply it to the new Calendar plugin that I'll release soon.
i have setup.it.xml for eg.
pasted-from-clipboard.png


With this modification, the system will look for:
Code
For plugins: /usr/lib/enigma2/python/Plugins/Extensions/[PluginName]/
├── setup.it.xml # Italian (first choice if language=it)
├── setup.de.xml # German
├── setup.fr.xml # French
├── setup.xml # English/default (fallback)
└── plugin.py
For system: /usr/share/enigma2/
├── setup.it.xml # Italian
├── setup.de.xml # German
├── setup.fr.xml # French
├── setup.xml # English/default
└── ...other skin files
Display More
HOW IT WORKS
- Language Detection: Uses
language.getLanguage()[:2] to get 2-char language code - Priority Search:
- First tries
setup.[lang].xml (e.g., setup.it.xml) - Falls back to
setup.xml if localized version doesn't exist
- Backward Compatible: If no localized files exist, behaves exactly like original
- Plugin & System Support: Works for both plugin setups and system setups
ADVANTAGES
- No breaking changes: Original function names and behavior preserved
- Automatic fallback: If
setup.it.xml doesn't exist, uses setup.xml - Cache maintained: Uses same caching system as original
- Clean implementation: Only modifies the file selection logic
EXAMPLE
Italian user with setup.it.xml available:
Code
[Setup] Using setup file: setup.it.xml
[Setup] XML setup file '/usr/lib/.../setup.it.xml', using element 'settingCalendar' from plugin 'Extensions/Calendar'.
German user without setup.de.xml:
Code
[Setup] Using default setup file
[Setup] XML setup file '/usr/lib/.../setup.xml', using element 'settingCalendar' from plugin 'Extensions/Calendar'.
I have tested on openatv 7.6 and work very fine..
i have putted all setup.it.xml on plugin / system. .and all default plugin . i have all translate plugins
pasted-from-clipboard.png
filecommander
pasted-from-clipboard.png
mymetrix
pasted-from-clipboard.png
oaweather
pasted-from-clipboard.png
i attached file setup.py for developer team
For users who want to test: it's best not to do so if you don't know how to do it or how to go back ;)
At your own risk.