How do I refactor localizable.strings?

I am new to Objective C (I use Xcode if relevant). I tried to find the answer to this question but couldn't find it anywhere ... My question is, is there a way to change the variable name in the Localizable.strings file so that it changes throughout the application? I don't want to use the "find and replace" option, because if there are more instances of this string that are not this variable name, they also change (which is something I'm interested in avoiding). Basically I'm interested in finding a parallel function to java refactor using eclipse. Thanks to all the helpers!

+3


source to share


1 answer


No, it cannot be done automatically. At least not in XCode - maybe AppCode has something to suggest, but I doubt it. Localizable.strings is not code - it is a text file containing key-value pairs. Thus, there are no real key references in your code, the same string values ​​in your code and in the file.



+1


source







All Articles