QBValidator icon indicating copy to clipboard operation
QBValidator copied to clipboard

Framework localization fix

Open flippinjoe opened this issue 9 years ago • 8 comments

Previously QBValidator was using NSLocalizedStringFromTable to do localizations. Which works in the case that you're not using QBValidator as a .framework.

The solution is to first try to NSLocalizedStringFromTableInBundle using [NSBundle bundleForClass:[self class]]. This will get the key from the .framework bundle if available. If not, then go to the main bundle

flippinjoe avatar Sep 25 '15 14:09 flippinjoe

+1

ryang1428 avatar Sep 29 '15 18:09 ryang1428

+1

ndis1 avatar Sep 29 '15 18:09 ndis1

+1

ghost avatar Sep 29 '15 18:09 ghost

:+1:

rmigneco avatar Sep 29 '15 18:09 rmigneco

+1

KVTaniguchi avatar Sep 29 '15 18:09 KVTaniguchi

+1

tysontune avatar Sep 29 '15 18:09 tysontune

:+1:

codecaffeine avatar Sep 29 '15 18:09 codecaffeine

:+1:

merkmaloney avatar Sep 29 '15 20:09 merkmaloney