Command line Localization
in Xcode project use for strings to be localized
NSLocalizedString(@"String",@"Comment for the String");
in Terminal:
cd projectDir
mkdir en.lproj
genstrings -o en.lproj Classes/*.m
if there are subfolders for Classes, for each subfolder do:
genstrings -a -o en.lproj *[hm] */*[hm] */*/*[hm]
in xcode add the en.lproj folder to the project Using UTF-16 coding
to add a new language:
mkdir it.lproj
cp en.lproj/Localizable.strings it.lproj/
in xcode add the it.lproj folder to the project Using UTF-16 coding
P.S.
to search for strings not NSLocalizedString try:
grep \=\ \@\" *.m|grep -vi nslog|grep -vi sqlite|more
this will search for every '= @"' text in code excluding NSLOG and sqlite lines