aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASLocalization.m
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/MASLocalization.m')
-rw-r--r--Framework/MASLocalization.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Framework/MASLocalization.m b/Framework/MASLocalization.m
index a36d3a4..431fc5f 100644
--- a/Framework/MASLocalization.m
+++ b/Framework/MASLocalization.m
@@ -1,6 +1,10 @@
#import "MASLocalization.h"
#import "MASShortcut.h"
+// The CocoaPods trickery here is needed because when then code
+// is built as a part of CocoaPods, it won’t make a separate framework
+// and the Localized.strings file won’t be bundled correctly.
+// See https://github.com/shpakovski/MASShortcut/issues/74
NSString *MASLocalizedString(NSString *key, NSString *comment) {
NSBundle *frameworkBundle = nil;
#ifdef COCOAPODS