summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFInput/macsrc
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-17 01:58:25 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-17 01:58:25 +0000
commit3043ded6406ce8bb06392b2c6351eb7596658d11 (patch)
tree7b8976d506d1033a7e628a1a12c9ef7e0b24f5eb /macosx/plugins/DFInput/macsrc
parentac860b2d845ab7c90a7388de026cc63074791350 (diff)
downloadpcsxr-3043ded6406ce8bb06392b2c6351eb7596658d11.tar.gz
First steps for localization support for Mac OS X/Cocoa, including:
Localizable.strings files for each plug-in. Try to get localizable string from a c string (see Pcsxr_locale_text in main.m). Each Mac plug-in now has a Principal class declaration in their Info.plist Also updated the memory card extensions git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72361 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFInput/macsrc')
-rw-r--r--macosx/plugins/DFInput/macsrc/PadController.h2
-rw-r--r--macosx/plugins/DFInput/macsrc/PadController.m11
2 files changed, 10 insertions, 3 deletions
diff --git a/macosx/plugins/DFInput/macsrc/PadController.h b/macosx/plugins/DFInput/macsrc/PadController.h
index 63a1b1d2..c65876ff 100644
--- a/macosx/plugins/DFInput/macsrc/PadController.h
+++ b/macosx/plugins/DFInput/macsrc/PadController.h
@@ -24,8 +24,6 @@
#import <Cocoa/Cocoa.h>
#import "PadView.h"
-@class PadView;
-
@interface PadController : NSWindowController
{
IBOutlet PadView *controllerView;
diff --git a/macosx/plugins/DFInput/macsrc/PadController.m b/macosx/plugins/DFInput/macsrc/PadController.m
index 49edcf21..ab6e19d4 100644
--- a/macosx/plugins/DFInput/macsrc/PadController.m
+++ b/macosx/plugins/DFInput/macsrc/PadController.m
@@ -135,4 +135,13 @@ long DoConfiguration() {
}
}
-@end \ No newline at end of file
+@end
+
+char* PLUGLOC(char *toloc)
+{
+ NSBundle *mainBundle = [NSBundle bundleForClass:[PadController class]];
+ NSString *origString = nil, *transString = nil;
+ origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding];
+ transString = [mainBundle localizedStringForKey:origString value:nil table:nil];
+ return [transString cStringUsingEncoding:NSUTF8StringEncoding];
+}