In my objective-c code base I have several NSLog statements.
eg.
NSLog(@"Here is the message without arguments");
NSLog(@"Here is the message with arguments: %s, %s","argument1","argument2");
Now I want to do two things:
First to do: updating NSLog statements with NSLocalizedString(<#key#>, <#comment#>)
eg.
NSLog(NSLocalizedString(@"Here is the message without arguments", @""));
NSLog(NSLocalizedString(@"Here is the message with arguments: %s, %s", @""), "argument1", "argument2");
Second to do: obtaining format strings from NSLog statements and adding it to localizable.strings file
eg.
"Here is the message without arguments" = "Here is the message without arguments";
"Here is the message with arguments: %s, %s" = "Here is the message with arguments: %s, %s";
Is there any way to do so through `tops` command, please suggest.