diff options
| author | Tomáš Znamenáček | 2016-01-09 15:45:45 +0100 |
|---|---|---|
| committer | Tomáš Znamenáček | 2016-01-09 15:45:45 +0100 |
| commit | e267d30bfd212e1261fef9ca84fd7376d8ca21e9 (patch) | |
| tree | d2d0d76a35be228159d61236b9527616251b0f42 | |
| parent | d32fc188ca8132ce75670b7e000a040599117673 (diff) | |
| download | MASShortcut-e267d30bfd212e1261fef9ca84fd7376d8ca21e9.tar.bz2 | |
Whitespace fixes.
| -rw-r--r-- | Framework/MASLocalization.m | 28 |
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 |
