summaryrefslogtreecommitdiffstats
path: root/macosx/HBLocalizationUtilities.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2018-10-20 13:31:06 +0200
committerDamiano Galassi <[email protected]>2018-10-20 13:31:06 +0200
commit4854e51a58cad3b6ce06cf02d1bec15a5fc38d34 (patch)
tree5bf4a11c2f8aa8282c0d9e0e9272cdc7ba49fc22 /macosx/HBLocalizationUtilities.h
parent70f1438bd17a9eea7e18db17d0bbc5b1ec11ac93 (diff)
MacGui: load the HandBrakeKit framework localized strings from the framework bundle.
Diffstat (limited to 'macosx/HBLocalizationUtilities.h')
-rw-r--r--macosx/HBLocalizationUtilities.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/macosx/HBLocalizationUtilities.h b/macosx/HBLocalizationUtilities.h
new file mode 100644
index 000000000..6db55dca2
--- /dev/null
+++ b/macosx/HBLocalizationUtilities.h
@@ -0,0 +1,15 @@
+//
+// HBLocalizationUtilities.h
+// HandBrakeKit
+//
+// Created by Damiano Galassi on 20/10/2018.
+//
+
+#ifndef HBLocalizationUtilities_h
+#define HBLocalizationUtilities_h
+
+#define HBKitLocalizedString(key, comment) \
+[[NSBundle bundleForClass:self.class] localizedStringForKey:(key) value:@"" table:nil]
+
+
+#endif /* HBLocalizationUtilities_h */