OHAutoNIBi18n icon indicating copy to clipboard operation
OHAutoNIBi18n copied to clipboard

NSlocalizedString genstrings not allowed ?

Open NameX44 opened this issue 11 years ago • 3 comments

Hello,

Good job for your script it works very well. I use it with my storyboard.

By the way, it would be useful that your script offer a way to use genstrings and merge new NSLocalizedString found in every .m file into Localizable.strings.

At the moment it will erase the file with changes which mean loosing every localizable define into my storyboard.

Maybe you have a trick to do that ?

If you have any questions tell me.

NameX44 avatar Jun 04 '14 09:06 NameX44

Hi @NameX44

Sorry for the late reply.

I have to admit I don't understand your question.

The process you describe is how genstrings works, regardless of when you use OHAutoNIBi18n or not. This is the way Apple's genstrings tool is build (you can try it on any project even ones not using OHAutoNIBi18n to confirm), it will regenerate (thus override) the Localizable.strings file, right?

Or maybe I didn't understand you question correctly (I have to admit I never user genstrings myself, like a lot of other developers I think this tools is not really usable in practice)

AliSoftware avatar Jul 22 '14 19:07 AliSoftware

Hi @AliSoftware,

yes genstring works like that, but with your script we have to directly fill in Localizable.strings with new NSLocalizable that we use in our code.

What i mean is that we can forget some of NSLocalizable but with a genstring merge script we could have the benefit of both : genstring and your script.

At first, I thought that you wrote something which could make genstring useful + a easier localizable storyboard ! ;)

Maybe you have another way to handle NSLocalizable ???

With this feature your script should be indispensable... for me at least :+1:

(It is already indispensable by the way ;) )

NameX44 avatar Jul 29 '14 10:07 NameX44

but with your script we have to directly fill in Localizable.strings with new NSLocalizable that we use in our code.

What do you mean by that? Sorry I don't get how using my OHAutoNIBi18n component (which is not a script at all BTW) would change the way you use your Localizable.strings file and/or generate it, compared to when you call NSLocalizableString manually in your code? (Again, probably because I never use genstrings as it generally oven generate hard to merge output)

AliSoftware avatar Aug 06 '14 02:08 AliSoftware