aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASLocalization.m
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/MASLocalization.m')
-rw-r--r--Framework/MASLocalization.m28
1 files changed, 14 insertions, 14 deletions
diff --git a/Framework/MASLocalization.m b/Framework/MASLocalization.m
index 70434ea..5e119a7 100644
--- a/Framework/MASLocalization.m
+++ b/Framework/MASLocalization.m
@@ -13,20 +13,20 @@ NSString *MASLocalizedString(NSString *key, NSString *comment) {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSBundle *frameworkBundle = [NSBundle bundleForClass:[MASShortcut class]];
- // first we'll check if resources bundle was copied to MASShortcut framework bundle when !use_frameworks option is active
- NSURL *cocoaPodsBundleURL = [frameworkBundle URLForResource:@"MASShortcut" withExtension:@"bundle"];
- if (cocoaPodsBundleURL) {
- localizationBundle = [NSBundle bundleWithURL: cocoaPodsBundleURL];
- } else {
- // trying to fetch cocoapods bundle from main bundle
- cocoaPodsBundleURL = [[NSBundle mainBundle] URLForResource: @"MASShortcut" withExtension:@"bundle"];
- if (cocoaPodsBundleURL) {
- localizationBundle = [NSBundle bundleWithURL: cocoaPodsBundleURL];
- } else {
- // fallback to framework bundle
- localizationBundle = frameworkBundle;
- }
- }
+ // first we'll check if resources bundle was copied to MASShortcut framework bundle when !use_frameworks option is active
+ NSURL *cocoaPodsBundleURL = [frameworkBundle URLForResource:@"MASShortcut" withExtension:@"bundle"];
+ if (cocoaPodsBundleURL) {
+ localizationBundle = [NSBundle bundleWithURL: cocoaPodsBundleURL];
+ } else {
+ // trying to fetch cocoapods bundle from main bundle
+ cocoaPodsBundleURL = [[NSBundle mainBundle] URLForResource: @"MASShortcut" withExtension:@"bundle"];
+ if (cocoaPodsBundleURL) {
+ localizationBundle = [NSBundle bundleWithURL: cocoaPodsBundleURL];
+ } else {
+ // fallback to framework bundle
+ localizationBundle = frameworkBundle;
+ }
+ }
});
return [localizationBundle localizedStringForKey:key
value:MASPlaceholderLocalizationString