User Tag List

  1. supertaco99's Avatar
    WTF
    don't erase any files from SpringBoard.app!
    i erased the Italian language and rebooted my ipod touch and now i have to restore it. its very risky, but is it really worth it?
    Last edited by supertaco99; 2009-09-01 at 12:13 AM. Reason: Automerged Doublepost
    2009-09-01 12:12 AM
  2. undert0w's Avatar
    Just an update.. I'm still running just fine. No crashes, reboots, etc. Everytime I install a new app, the non-english lproj files are purged from the phone.

    I really can't imagine what some people are accidentally deleting to cause problems. Especially reboot-loops, I can't for the life of me figure out what deleting a language file could do to muck up the boot process.
    2009-09-04 01:32 PM
  3. klouud's Avatar
    I can't for the life of me figure out what some people are deleting that is causing the endless reboot loop.. what commands are you running? I found the ones posted earlier to be a bit cludgy and redundant.

    I use the following:
    Code:
    find / -type d -name "*.lproj" -not -iname "en*.lproj" -exec rm -rf {} ;
    Now, keep in mind the above command will run in your root ('/'), so your ENTIRE PHONE will be affected. So far *I* personally have not experienced any adverse effects, however, your mileage may vary.

    If you wish to run it in a specific directory, simply replace ('/') with the absolute pathname.
    Ok, so if we combine the above script with this other one:

    for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do rm -vr ./ ; done

    We should be able to delete everything except English and Japanese (emoji)by adding -not -iname "ja*.lproj" to the simpler/first code?

    right? Will this work on WinSCP/Vista? Even though Vista=the devil?

    tim
    Last edited by klouud; 2009-09-04 at 03:29 PM.
    2009-09-04 03:26 PM
  4. undert0w's Avatar
    Ok, so if we combine the above script with this other one:

    for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do rm -vr ./ ; done

    We should be able to delete everything except English and Japanese (emoji)by adding -not -iname "ja*.lproj" to the simpler/first code?
    Whoa, wait. No. There's no combining necessary. To delete everything except Japanese and English simply run:
    Code:
     find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec rm -rf {} \;
    There's no reason to run find in a for loop, as that's what it is anyway.. and there's absolutely no use to use sed on the results.

    The above code will search cwd (current working directory), recursively, for all NON-EN/JP lproj matches and delete them.


    Will this work on WinSCP/Vista? Even though Vista=the devil?

    tim
    It doesn't matter what OS you're on. The command is issued/run on the iPhone itself. You can be running OS/2 Warp, it makes no difference. You may want to disable Autolock during the process, to prevent the phone prematurely sleeping.
    Last edited by undert0w; 2009-09-04 at 09:39 PM.
    2009-09-04 09:36 PM
  5. confucious's Avatar
    Why do people want to keep Japanese? Are you all secretly Japanese?
    He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
    2009-09-04 09:46 PM
  6. klouud's Avatar
    Why do people want to keep Japanese? Are you all secretly Japanese?
    I use emoji.

    Whoa, wait. No. There's no combining necessary. To delete everything except Japanese and English simply run:
    Code:
     find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec rm -rf {} ;
    There's no reason to run find in a for loop, as that's what it is anyway.. and there's absolutely no use to use sed on the results.

    The above code will search cwd (current working directory), recursively, for all NON-EN/JP lproj matches and delete them.



    It doesn't matter what OS you're on. The command is issued/run on the iPhone itself. You can be running OS/2 Warp, it makes no difference. You may want to disable Autolock during the process, to prevent the phone prematurely sleeping.
    Thanx, and thanked.

    tim

    ----------------------------------
    EDIT: ran script and freed 27mb from /var and RAM is about the same @ 58mb free.
    Using a basic Winterboard theme running 1 info.plist, SBSettings, 5 icon dock installed,
    Performance is pretty much the same after a re-boot. The most noticable difference
    is the extra room in /var.

    Well... I'm off to disable some daemons now! Thanx guys!

    tim
    Last edited by klouud; 2009-09-04 at 10:48 PM.
    2009-09-04 10:36 PM
  7. angiepangie's Avatar
    Why do people want to keep Japanese? Are you all secretly Japanese?
    Of course!
    I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
    2009-09-05 12:11 AM
  8. confucious's Avatar
    I use emoji.
    Lots of people do - but I'm sure someone said you don't need the japanese language to use them.

    Maybe I'm wrong, I don't use them so it doesn't bother me.
    He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
    2009-09-05 09:03 AM
  9. undert0w's Avatar
    I had a couple people ask me about backing up the deleted language files. If you want to do this, run the following command BEFORE running the delete routing:

    Code:
    find / -name "*.lproj" -not -iname "en*.lproj" -exec tar rvf /lproj-backup.tar {} \;
    This will archive all of the files into a tarball (located in your root) that you will be deleting. So, if for some reason you need to restore them, they'll be there.

    I recommend moving this file elsewhere, as you don't need a 20+MB file sitting in your root. I keep all my backup files on my laptop.
    2009-09-08 04:31 PM
  10. peteo's Avatar
    I had a couple people ask me about backing up the deleted language files. If you want to do this, run the following command BEFORE running the delete routing:

    Code:
    find / -name "*.lproj" -not -iname "en*.lproj" -exec tar rvf /lproj-backup.tar {} ;
    This will archive all of the files into a tarball (located in your root) that you will be deleting. So, if for some reason you need to restore them, they'll be there.

    I recommend moving this file elsewhere, as you don't need a 20+MB file sitting in your root. I keep all my backup files on my laptop.
    I recommend putting it in your stash folder: /private/var/stash/langBackup/ that partition should have plenty of room.

    undert0w, thanks for cleaning up my code!
    2009-09-08 07:31 PM
  11. Ro-K's Avatar
    i read somewhere in this thread about making tomotom loadint time quicker.. is that by deleting language pack or extra voices? anyone know how to delete extra voice? i only need english
    2009-09-13 02:50 AM
  12. klouud's Avatar
    Just bought a 3GS and ran the one line script to delete all but Jap and Eng

    Results:

    56mb free on /var storage
    --211mb > 267mb
    9mb free on available memory
    --161mb > 170mb

    tim
    2009-09-15 05:25 PM
  13. L33tWeazel's Avatar
    HAs anyone found out which of these causes the need for restore? I have deleted all of the iproj on /Applications except English and i noticed a huge diffetence in speed of my iPod touch 2g. I would like to try deleting more but I'm scared as I really can't afford to restore. I have too much stuff so can someone please try deleting all iproj listed in the main thread except English or en please and let me know . Thanks :]
    2009-09-16 03:50 AM
  14. cpjr's Avatar
    Lots of people do - but I'm sure someone said you don't need the japanese language to use them.

    Maybe I'm wrong, I don't use them so it doesn't bother me.
    Correcto, the language packs have NOTHING to do with the funny little faces
    2009-09-16 03:52 AM
  15. confucious's Avatar
    HAs anyone found out which of these causes the need for restore? I have deleted all of the iproj on /Applications except English and i noticed a huge diffetence in speed of my iPod touch 2g. I would like to try deleting more but I'm scared as I really can't afford to restore. I have too much stuff so can someone please try deleting all iproj listed in the main thread except English or en please and let me know . Thanks :]
    Over enthusiasm causes the problem. I deleted some stuff I shouldn't which is quite easily done if you're not looking (and are fairly stupid) but if you just run the scripts it does it properly and you won't have a problem (but delete Japanese as well unless you speak it and want to keep it)
    He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
    2009-09-16 07:29 AM
  16. undert0w's Avatar
    HAs anyone found out which of these causes the need for restore? I have deleted all of the iproj on /Applications except English and i noticed a huge diffetence in speed of my iPod touch 2g. I would like to try deleting more but I'm scared as I really can't afford to restore. I have too much stuff so can someone please try deleting all iproj listed in the main thread except English or en please and let me know . Thanks :]
    I've yet to find a single lproj that, when deleted, causes any ill effect on the phone.
    2009-09-16 01:55 PM
  17. L33tWeazel's Avatar
    Oh ok it's just cause some people said they did them all and it caused them to reboot. Ok so the script deletes all language packs except English and en.iproj right? The script is hard to read to can someone pm it to me so I can copy it cuz I can't copy from the little box on mobile. Thanks to both replies too :]

    Also can this be done in terminal bacause I don't own a pc thanks :]
    Last edited by L33tWeazel; 2009-09-16 at 02:26 PM. Reason: Automerged Doublepost
    2009-09-16 02:26 PM
  18. popmanbx's Avatar
    I tried running the script to remove the language files and I get an error
    -sh: syntax error near unexpected token `|'
    anyone know why it won't run. Oh, I am typing this in terminal.
    I *hEaRt* my IpHoNe


    http://twitter.com/#!/Loudmouth0

    wanna be cool? Follow me
    2009-09-18 05:41 AM
  19. duceduc's Avatar
    I did it to my 1G iphone manually and I don't feel like doing it again with my 3G. I tried the script but got errors when running it. I am using winscp terminal btw. See screenshot. Thanks.

    Edited.
    I am trying with putty since winscp is giving me timeout errors. What is the default password for putty? It is assking me everything I type a command.
    Attached Thumbnails [LIST] Language Packages to Delete on 3.0 :: Increased Performance-error.png  
    Last edited by duceduc; 2009-10-01 at 04:22 AM.
    2009-10-01 03:34 AM
  20. andybno1's Avatar
    I tried the first script to backup language files in winscp's terminal program and got:

    /private/var/stash/Applications.pwn$ for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do tar -rf /private/var/stash/langBackup/langBackup.tar ./ ; done
    -sh: command substitution: line 10: syntax error near unexpected token `|'
    -sh: command substitution: line 10: `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///''
    2009-10-01 11:16 AM
384 ... 789101119 ...
LINK TO POST COPIED TO CLIPBOARD