Jump to content


Photo

Remove unused languages?

enigma2 remove language dm800

  • Please log in to reply
65 replies to this topic

#1 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 25 October 2012 - 14:19

Hi there!


I only use English for my system, how do I remove all other unused languages so that they don't even show up on languague selection menu under system settings?

Posted Image

Thx!
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #2 Rob van der Does

  • Senior Member
  • 7,483 posts

+174
Excellent

Posted 25 October 2012 - 14:24

LOL, why would you want to delete them? If you never switch languages, you never even see this menu at all........

Re: Remove unused languages? #3 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 25 October 2012 - 14:37

I know SatKiekerd :lol: , so the tiny space doesn't get maxed out on my old dm800 for trying out other useful plugins.
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #4 Happysat

  • Senior Member
  • 681 posts

+42
Good

Posted 25 October 2012 - 15:22

You can remove the not needed overhere - /usr/share/enigma2/po/ and here /usr/share/enigma2/countries/
But after a online update they are back, you can make a script for removing them after update.

Mine looks like this (i only want english and dutch)

cp /usr/share/enigma2/countries/missing.png /media/hdd/backup/restore/po/
cp /usr/share/enigma2/countries/en.png /media/hdd/backup/restore/po/
cp /usr/share/enigma2/countries/nl.png /media/hdd/backup/restore/po/
cp -r /usr/share/enigma2/po/en /media/hdd/backup/restore/po/lang/
cp -r /usr/share/enigma2/po/nl /media/hdd/backup/restore/po/lang/
echo "Removing obsolete Languages"
rm /usr/share/enigma2/countries/*.png
rm -r /usr/share/enigma2/po/*
echo "Restoring NL/EN Languages back"
mv /media/hdd/backup/restore/po/*.png /usr/share/enigma2/countries/
cp -r /media/hdd/backup/restore/po/lang/* /usr/share/enigma2/po/
echo "Cleaning up used files"
rm -r /media/hdd/backup/restore/po/lang/*

'Wie weet spreekt niet, wie spreekt weet niet'

Sunray Vu Solo2/DM800SE V2 DVB-S2/C/T T-85 (28e,23e,19e,13e,9e,4e,1w,5w)


Re: Remove unused languages? #5 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 25 October 2012 - 15:39

Thx so much Happysat for your input!!, ;)

I know the script will come in handy, and I'm definitely giving it a shot, but I wanted all other languages to somehow disappear from that menu, because if they still show up and i accidentally navigate down the language selection menu, the system would green screen on me, until i put 'em back into place...
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #6 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 27 October 2012 - 10:38

I can see there is a Language.pyo inside /usr/lib/enigma2/python/Components...but there is no source .Py...can you help out, please!
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #7 radxnl

  • Senior Member
  • 1,527 posts

+57
Good

Posted 27 October 2012 - 11:21

opkg install enigma2-src


Re: Remove unused languages? #8 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 27 October 2012 - 11:36

opkg install enigma2-src


overkill... just get your .py file from git
http://openpli.git.s...35f2abc;hb=HEAD

raw:
http://openpli.git.s...35f2abc;hb=HEAD

Edited by atilaks, 27 October 2012 - 11:36.


Re: Remove unused languages? #9 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 27 October 2012 - 11:47

Thx!, radxnl, atilaks!

I'm no coder but i'm trying to figure it out...is it a matter of just removing "self.addLanguage" sub-entries of those unwanted languages under "class Language"?

Thx so much!
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #10 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 27 October 2012 - 11:50

yes, try it :)

just make backup of Language.pyo file, in case smth goes wrong.

Edited by atilaks, 27 October 2012 - 11:54.


Re: Remove unused languages? #11 mfaraj57

  • Senior Member
  • 1,383 posts

+211
Excellent

Posted 27 October 2012 - 12:00

you can not remove block addlanguage but you can modify it in way similar to this
if os.path.exist(language file path ):
addlanguage

Re: Remove unused languages? #12 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 27 October 2012 - 12:14

you can not remove block addlanguage but you can modify it in way similar to this
if os.path.exist(language file path ):
addlanguage


he doesn't want to remove the whole addLanguage function, he simply should remove calls to it...

just remove lines with self.addLanguage("some language",...)
be very careful with indentation

Edited by atilaks, 27 October 2012 - 12:15.


Re: Remove unused languages? #13 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 27 October 2012 - 12:36

Yes, it works...Thx so much everyone! especially atilaks, mfaraj57


Posted Image
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #14 littlesat

  • PLi® Core member
  • 44,441 posts

+447
Excellent

Posted 27 October 2012 - 13:30

But what is the advantage to remove them???
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W Thanks to Henksat

Re: Remove unused languages? #15 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 27 October 2012 - 14:03

But what is the advantage to remove them???


i just gained back almost 3 megs of precious internal flash space on my old dm800 ;) .
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #16 hemertje

  • Forum Moderator
    PLi® Core member
  • 32,916 posts

+116
Excellent

Posted 28 October 2012 - 14:49

time for an update ;)

WaveFrontier T90: 28.2E | 23.5E | 19.2E | 16E | 13E | 10E | 4.8E | 0.8W | 5W | 8W |
Tell your friends about our Pli Wiki as it is there to help you: Click here for the PLi Wiki


Re: Remove unused languages? #17 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 28 October 2012 - 17:31

time for an update ;)


I know, I've been thinking a lot about it lately....No DMM crapware anymore, learned my leasson the hard way...but definitely going for the new ones from ET, or maybe even Vu+...(if I ever decide to get a new box, that is)....
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #18 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 28 October 2012 - 18:34

you can also remove some of the wireless kernel modules or e.g. samba if you don't use them... try opkg list-installed

Re: Remove unused languages? #19 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 28 October 2012 - 19:59

Thx atilaks...good idea!...,I'd really love to know more about that...i usually stay away from kernel stuff...

What are the ones that are safe to get rid of...anyone can shed some light on that, please?
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #20 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 28 October 2012 - 20:09

Yes, there are many things that people can remove, saving MUCH more space than 2-3MB of languages, but one size can't fit all. Users have to figure out for themsleves what they do or don't need. I've a fair amount of extra plugins installed on my box, but removing the stuff I know I personally don't need saves me another 8MB of flash, currently have 16MB free...

df -h
Filesystem				Size	  Used	 Available Use% Mounted on
/dev/root				60.0M	 44.1M	 15.9M	  73%        /



Wireless modules (rt* & their coresponding firmware-* files) and samba (including kernel-module-cifs & kernel-module-smbfs) are mentioned above. In turn their related software can also be removed, enigma2-plugin-systemplugins-wirelesslan, wpa-supplicant, etc... If you don't have a motorized dish, enigma2-plugin-systemplugins-positionersetup, osdpositionsetup, etc... No cable tuner, enigma2-plugin-systemplugins-cablescan, etc..., fastscan not work for your provider, remove it, etc... etc...

--
hemi

Edited by hemispherical1, 28 October 2012 - 20:10.






Also tagged with one or more of these keywords: enigma2, remove, language, dm800

2 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


    Google (2)