localization - iPhone: Update Localizable.strings files using genstrings? -
i have generated strings file correctly using genstrings. have changed localized strings different languages. now, have added few more nslocalizedstring() occurrences , want generate of localized strings files.
but, running genstrings again not seem update strings files. doing wrong?
usually because you've got genstrings looking in wrong folder, or in wrong files. had problem wasn't picking of strings, , realized searching *.m files (not *.mm) , wasn't parsing files in classes folder. small change fixed that:
genstrings -o classes/en.lproj classes/*.{m,mm}
the first parameter tells genstrings want .strings file.
- -o classes/en.lprog
the second parameter tells genstrings look. remember i'm running genstrings project root, needed specify classes/.m, or more classes/.{m,mm} parse .m , .mm files.
Comments
Post a Comment