remove unwanted languages from Openpli

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frank087234
    Member
    • Jul 2012
    • 61

    #1

    remove unwanted languages from Openpli

    HOW to remove unwanted languages, flags from Openpli, SAFELY???
  • gji25
    DK Veteran
    • Feb 2010
    • 353

    #2
    if you know how to programme in linux you can recompile the image and ommit the languages and flag icons that you dont want.
    dm500hd -dm500hd v2-vu+duo- triax 1.1m - inverto lnb - technomate 2300 motor- linksys ddwrt router

    Comment

    • portbhoy
      DK Veteran
      • Sep 2008
      • 717

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

      Comment

      • frank087234
        Member
        • Jul 2012
        • 61

        #4
        Originally posted by portbhoy
        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!!!

        Comment

        • portbhoy
          DK Veteran
          • Sep 2008
          • 717

          #5
          Hmmm strange shouldn't have effected your boxes ability to boot, I will give it a try and report back.

          Comment

          • portbhoy
            DK Veteran
            • Sep 2008
            • 717

            #6
            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!!!

            Comment

            • frank087234
              Member
              • Jul 2012
              • 61

              #7
              Originally posted by portbhoy
              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.

              Comment

              • gji25
                DK Veteran
                • Feb 2010
                • 353

                #8
                like i said, if you know how to programme using linux you can recompile the image
                dm500hd -dm500hd v2-vu+duo- triax 1.1m - inverto lnb - technomate 2300 motor- linksys ddwrt router

                Comment

                • frank087234
                  Member
                  • Jul 2012
                  • 61

                  #9
                  Originally posted by gji25
                  like i said, if you know how to programme using linux you can recompile the image
                  there must an easier way!!!

                  Comment

                  • southpaw
                    V.I.P. Member
                    • Dec 2009
                    • 2233

                    #10
                    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

                    • southpaw
                      V.I.P. Member
                      • Dec 2009
                      • 2233

                      #11
                      also from elsewhere

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

                      Comment

                      • frank087234
                        Member
                        • Jul 2012
                        • 61

                        #12
                        Originally posted by southpaw
                        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

                        Comment

                        • gji25
                          DK Veteran
                          • Feb 2010
                          • 353

                          #13
                          have fun and post back how you get on
                          dm500hd -dm500hd v2-vu+duo- triax 1.1m - inverto lnb - technomate 2300 motor- linksys ddwrt router

                          Comment

                          • frank087234
                            Member
                            • Jul 2012
                            • 61

                            #14
                            The first method worked perfect.!!!

                            Comment

                            Working...