summaryrefslogtreecommitdiff
path: root/macosx/OSXPlugLocalization.h
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-09 04:18:01 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-09 04:18:01 +0000
commit302832eabec2f062591162840da9dbe9a127f780 (patch)
tree15240364e27ef5493e945b16bc1359c5c4d1fe53 /macosx/OSXPlugLocalization.h
parentc912deb4e76adb823b1bb5355b1171eb1241b42b (diff)
downloadpcsxr-302832eabec2f062591162840da9dbe9a127f780.tar.gz
Include file missing from last commit.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85928 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/OSXPlugLocalization.h')
-rw-r--r--macosx/OSXPlugLocalization.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/macosx/OSXPlugLocalization.h b/macosx/OSXPlugLocalization.h
new file mode 100644
index 00000000..59a8dea3
--- /dev/null
+++ b/macosx/OSXPlugLocalization.h
@@ -0,0 +1,22 @@
+//
+// OSXPlugLocalization.h
+// Pcsxr
+//
+// Created by C.W. Betts on 7/8/13.
+//
+//
+
+#ifndef Pcsxr_OSXPlugLocalization_h
+#define Pcsxr_OSXPlugLocalization_h
+
+#define PLUGLOCIMP(klass) \
+char* PLUGLOC(char *toloc) \
+{ \
+NSBundle *mainBundle = [NSBundle bundleForClass:klass]; \
+NSString *origString = nil, *transString = nil; \
+origString = @(toloc); \
+transString = [mainBundle localizedStringForKey:origString value:nil table:nil]; \
+return (char*)[transString UTF8String]; \
+}
+
+#endif