HOW to remove unwanted languages, flags from Openpli, SAFELY???
remove unwanted languages from Openpli
Collapse
X
-
Tags: None
-
Comment
-
Comment
-
Comment
-
unashamedly cut+pasted from elsewhere
Here's how you can remove unused system languages from your openpli 2.1 system
Important - Before you begin:
* Backup your Language.pyo from /usr/lib/enigma2/python/Components to a safe location so you can restore in case sth goes wrong.
* the supplied language.py mod is based on Openpli 2.1, I have no idea whether it'd be compatible on other images or not. But if you have access to language.PY version, it should be the same.
* Download the file below, there are 2 folders inside; original and edited for English only.
If you only want English like I do, then upload the edited version to /usr/lib/enigma2/python/Components, restart enigma 2 and you're done!
But if you want to edit it for your preferred language, then;
1 - Upload Language.py from original folder (download) to /usr/lib/enigma2/python/Components, then
2 - Open it with a python-capable editor, on a mac i use "Sublime Text 2", and navigate to Language (class), see screenshot...

3 - Edit/Remove all "self.addLanguage" sub-entries of those unwanted languages, keep only the one(s) you need, see screenshot...

4 - Save your edits then Restart enigma2 to apply...you'll only be able to see and select the languages you left out, see screenshot...

- Now, let's clean it up for good;
- go to /usr/share/enigma2/po/ and remove the very same languages you edited out of Language.py (step3 above)...
- go to /usr/lib/locale and do the same...,
- then go to /usr/share/enigma2/countries/ and remove the flags for those very same countries.
Bonus:
If you want to gain even more space, and i don't blame you if you've got an old dm800 like me; you prolly know that inside almost each and every system Plugin and/or Extension, there is a locale folder which translates the Plugin and/or Extension menus to your current system language, so by removing the languages you don't need from there, you are basically doing the same thing...reclaiming space that is just sitting there!!!
I hope this helps, Enjoy!
Thx to everyone who helped out, couldn't have figured it out by myself!
Download Here:
Language PY code.zip
Comment
-
Comment
-
Comment