is there a way to extract string in XCode ios project for i18n, I need to auto find strings and make localized files.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I know it is only possible to auto find NSLocalizedString…(…); methods and extract the keys from them. If you haven’t already used on of these macros during development, you can’t extract every NSString in the Project. I am pretty sure this would always lead to broken code as you can’t simply replace every NSString with an NSLocalizedString statement.
To look for NSLocalizedString stuff in your code, genstrings is the way you want to go: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/genstrings.1.html