Reputation: 12262
I want to extract all the Strings from my codebase and put in an excel sheet. What is the best way to do that? And how can I do that?
To add on it. I am able to search all the strings in my project using the following expression:
@"(any)"
where (any) is the pattern available in Xcode search. I am able to search all the strings. I want to extract all those and put it in a list/excel sheet. How should I do that?
===EDIT===
2nd Part of my question. I have a string @"abc", How can I replace it to NSLocalizedString(@"abc", @"abc", nil) using Find/Replace in Xcode?
Upvotes: 0
Views: 390
Reputation: 12262
I figured it out. I had selected wrong Find option, I was searching text, I changed it to Regular Expression and @"(.*)"
expression worked. and I replaced it with NSLocalizedString(@"\1", @"\1", nil)
Upvotes: 2