is there a possibility to set cocoa app, so it will translate NSString (placed in code) after launching without need of using NSLocalizedString ?
Thanks for help !
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.
The answer is no. And you probably wouldn’t want this anyway, as not every string should be localizable. Some of your strings may contain display text and hence need to be localizable through
NSLocalizedString, and on the other hand some other of your strings may affect your logic, such as strings that define the name of a resource (e.g. the string you pass toloadNibNamedor the name of an image or audio file to load). These are really meant to be hardcoded and translating them would break your application.