Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Thin out Universal apps and non-English languages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Thin out Universal apps and non-English languages
Authored by: fracai on Jun 13, '06 10:03:58AM

find "$SFnameI" -depth -name "*.lproj" -not -name \
"English.lproj" -print -exec rm -rf '{}' ;

should really be:

find "$SFnameI" -depth -name "*.lproj" -not -iname \
"en*.lproj" -print -exec rm -rf '{}' ;

English localizations can be named English.lproj or en.lproj and you don't want to remove the en.lproj if that's what is used, which the first command will.

---
i am jack's amusing sig file



[ Reply to This | # ]
10.4: Thin out Universal apps and non-English languages
Authored by: gidds on Jun 13, '06 03:08:55PM

Not just that. As well as English.lproj and en.lproj, I also have one called en_GB.lproj. (I'm British, you see.) Some apps may have en_AU, en_CA, en_IE, en_NZ, and/or en_US for other areas.

When I wrote a script to get rid of all unneeded language files, I ended up keeping any .lproj file that started with 'En' or 'en'.

---
Andy/



[ Reply to This | # ]
10.4: Thin out Universal apps and non-English languages
Authored by: fracai on Jun 14, '06 09:25:18AM

good point. I haven't seen one labeled en_GB, etc before.

the en*.lproj should handle this as it matches anything that starts with en (regardless of case).

---
i am jack's amusing sig file



[ Reply to This | # ]