aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASLocalization.h
diff options
context:
space:
mode:
authorTomáš Znamenáček2015-08-18 14:00:09 +0200
committerTomáš Znamenáček2015-08-18 14:00:09 +0200
commit814934072aef7050f0efc880a6496c97aa288d3a (patch)
tree3fc5abc1718183af62873272fd562f9520864b46 /Framework/MASLocalization.h
parent74e3f32438ec052828fe53a48dc04afaf66e7fd3 (diff)
downloadMASShortcut-814934072aef7050f0efc880a6496c97aa288d3a.tar.bz2
Added Czech localization.
Diffstat (limited to 'Framework/MASLocalization.h')
-rw-r--r--Framework/MASLocalization.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Framework/MASLocalization.h b/Framework/MASLocalization.h
new file mode 100644
index 0000000..466a969
--- /dev/null
+++ b/Framework/MASLocalization.h
@@ -0,0 +1,13 @@
+/**
+ Reads a localized string from the framework’s bundle.
+
+ Normally you would use NSLocalizedString to read the localized
+ strings, but that’s just a shortcut for loading the strings from
+ the main bundle. And once the framework ends up in an app, the
+ main bundle will be the app’s bundle and won’t contain our strings.
+ So we introduced this helper function that makes sure to load the
+ strings from the framework’s bundle. Please avoid using
+ NSLocalizedString throughout the framework, it wouldn’t work
+ properly.
+*/
+NSString *MASLocalizedString(NSString *key, NSString *comment); \ No newline at end of file