PDA

View Full Version : remove unwanted languages from Openpli



frank087234
12th March, 2013, 07:35 PM
HOW to remove unwanted languages, flags from Openpli, SAFELY???

gji25
12th March, 2013, 10:42 PM
if you know how to programme in linux you can recompile the image and ommit the languages and flag icons that you dont want.

portbhoy
12th March, 2013, 10:55 PM
Ftp into the box, browse to usr/share/enigma2/po for languages and usr/share/enigma2/skin_default/countries for flags. I'm pretty sure you can just delete them.

frank087234
12th March, 2013, 11:09 PM
Ftp into the box, browse to usr/share/enigma2/po for languages and usr/share/enigma2/skin_default/countries for flags. I'm pretty sure you can just delete them.

I ve done this , now it wont bootup at all!!!

portbhoy
12th March, 2013, 11:58 PM
Hmmm strange shouldn't have effected your boxes ability to boot, I will give it a try and report back.

portbhoy
13th March, 2013, 12:10 AM
Ok did that and my box booted up fine but if I go into the language menu I go into a boot loop so ignore everything I just said. Now I'm away to reflash my box!!!

frank087234
13th March, 2013, 12:11 AM
Ok did that and my box booted up fine but if I go into the language menu I go into a boot loop so ignore everything I just said. Now I'm away to reflash my box!!!

thanks mate, i told ya. I don't know why it is not that simple.

gji25
13th March, 2013, 02:28 AM
like i said, if you know how to programme using linux you can recompile the image

frank087234
13th March, 2013, 06:02 PM
like i said, if you know how to programme using linux you can recompile the image

there must an easier way!!!

southpaw
13th March, 2013, 09:27 PM
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...


http://img705.imageshack.us/img705/6496/sublimetext2.png (http://imageshack.us/photo/my-images/705/sublimetext2.png/)


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


http://img849.imageshack.us/img849/1058/sublimetext22.png (http://imageshack.us/photo/my-images/849/sublimetext22.png/)


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...


http://imageshack.us/a/img846/8889/screenshotuly.th.png (http://imageshack.us/photo/my-images/846/screenshotuly.png/)


- 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 (http://www.mediafire.com/?a747x8048dzpdg6)

southpaw
13th March, 2013, 09:30 PM
also from elsewhere

tspanel- from tools 2 -language manager will be able to remove languages and to restore them

frank087234
13th March, 2013, 09:54 PM
also from elsewhere

tspanel- from tools 2 -language manager will be able to remove languages and to restore them

I ll try first method. The tspanel method causes the box to stop booting Up needing reflash.
thanks

gji25
14th March, 2013, 04:21 AM
have fun and post back how you get on lol

frank087234
15th March, 2013, 11:03 AM
The first method worked perfect.!!!