injectionforxcode icon indicating copy to clipboard operation
injectionforxcode copied to clipboard

NSLocalizedString isn't replaced after injection

Open castus opened this issue 9 years ago • 2 comments

I was wondering if this is possible to refresh all NSLocalizedStrings after injection? Now, when I inject the code and re-render the view in "injected" method, instead of proper translated labels I have key strings. What do you recon?

castus avatar Apr 14 '16 09:04 castus

Not sure why that would be or how it could be automated. Any ideas?

johnno1962 avatar Apr 14 '16 11:04 johnno1962

I bet the NSLocalizedString macro looks inside the current bundle for the key value lookup, then when injected it looks up inside the injection bundle for the key value, which fails

orta avatar Apr 14 '16 13:04 orta