![]() |
2015-02-18
, 06:36
|
Posts: 646 |
Thanked: 1,124 times |
Joined on Jul 2010
@ Espoo, Finland
|
#2
|
![]() |
2015-02-18
, 10:03
|
Posts: 178 |
Thanked: 91 times |
Joined on May 2011
@ Mira (Venice) - Italy
|
#3
|
Any other advantage apart of saving ~100MB (or perhaps not even that, if you are keeping the default file as backup on the phone itself) ?
I'm still testing this little tweak, I'm not responsible for what you are doing with your phone. If your phone won't boot up it's your fault. If everything that is written in this post broke, slow or change the experience that you have on your phone, it's your fault. You have been warned!
As you know you can switch your phone language easly, it's a nice feature but a lot of pepole after the initial setup do not change the language. You do not use them but the other languages are stored in your phone.
Run the commands from a root shell, use: devel-su
Open the terminal and write:
Open "locale_list.txt" (transfer it to you pc, look at it with cat | less, do how what you want) and remember everything that you want to keep.
In my case I'd like to keep only Italian (the current installed language) and english (keep it, also if you don't use it, just keep it).
I want to delete everithing that do not begin with "en" and "it" so my final command will be:
Or maybe only english: grep -E -v "^en"
Remember to separate every language with "|" and to add "^" before the first two letter of every language code.
To commit your changes use:
Now my /usr/lib/locale looks like this:
From now do not change the system language!
You are still able to change the language in the Settings app, but do not select langauges that you have removed. At least, before do that, restore the previous backup, that you have done before touching system critical files, you have done a backup of that file yes? If not and something is not working... it's your fault. The only last hope is to recover that file somwhere around the internet and or reset your phone (or wait for an OS update, it restore the file). Agian you have been warned, do not come to complain in this thread.
If someone know how to hide some lang from the Settings app write it here, thank you
After an OS update the file will be downloaded and built again, so you have to run all these commands again.
Last edited by Vento; 2015-02-18 at 10:21.