Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It merges all Localized tables in Localizable.strings #4

Open
ziogaschr opened this issue Feb 13, 2015 · 4 comments
Open

It merges all Localized tables in Localizable.strings #4

ziogaschr opened this issue Feb 13, 2015 · 4 comments

Comments

@ziogaschr
Copy link

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?

@iv-mexx
Copy link
Owner

iv-mexx commented Feb 20, 2015

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...

@ziogaschr
Copy link
Author

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

@iv-mexx
Copy link
Owner

iv-mexx commented Feb 20, 2015

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.

@ziogaschr
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants