update_localization icon indicating copy to clipboard operation
update_localization copied to clipboard

It merges all Localized tables in Localizable.strings

Open ziogaschr opened this issue 10 years ago • 4 comments

If I place this NSLocalizedStringWithDefaultValue(@"button_ok", @"StandardInterface", [NSBundle mainBundle], @"Ok", @"Button to confirm a choice"); inside one of my .m files it parses it and puts the string inside Localizable.strings and not in StandardInterface.strings.

Can you make it preserve the tables in different files? I show that this works fine for your unittests but for some reason not in my code. Can it be that the .m file is nested 6 folders down?

ziogaschr avatar Feb 13 '15 10:02 ziogaschr

Can you maybe provide a sample project where this happens?

As far as i know, the fact that the .m file is nested deep inside your folder structure should not matter since the script uses the genstrings tool from Xcode to extract the strings from the source code...

iv-mexx avatar Feb 20 '15 17:02 iv-mexx

I will try to create an example project. Can it be that the project is written in swift?

ziogaschr avatar Feb 20 '15 18:02 ziogaschr

Maybe - I have not yet used this script in a project with swift. But i have just merged #3 which indicates to me that someone has used it with swift already.

iv-mexx avatar Feb 20 '15 19:02 iv-mexx

It works for Swift for me also. It just doesn't create strings for some tables of pods written in obj-c.

I am trying to figure out what it is.

Sent from my iPhone

On 20 Φεβ 2015, at 21:30, Markus Chmelar [email protected] wrote:

Possibly - I have not yet used this script in a project with swift. But i have just merged #3 which indicates to me that someone has used it with swift already.

— Reply to this email directly or view it on GitHub.

ziogaschr avatar Feb 21 '15 09:02 ziogaschr