summaryrefslogtreecommitdiff
path: root/macosx/plugins/PeopsXgl
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/PeopsXgl
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/PeopsXgl')
-rw-r--r--macosx/plugins/PeopsXgl/English.lproj/Localizable.strings11
-rw-r--r--macosx/plugins/PeopsXgl/Info.plist2
-rw-r--r--macosx/plugins/PeopsXgl/PeopsXGL.xcodeproj/project.pbxproj32
-rw-r--r--macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m9
4 files changed, 38 insertions, 16 deletions
diff --git a/macosx/plugins/PeopsXgl/English.lproj/Localizable.strings b/macosx/plugins/PeopsXgl/English.lproj/Localizable.strings
new file mode 100644
index 00000000..8528a0f4
--- /dev/null
+++ b/macosx/plugins/PeopsXgl/English.lproj/Localizable.strings
@@ -0,0 +1,11 @@
+/*
+ Localizable.strings
+ PeopsXGL
+
+ Created by C.W. Betts on 11/16/11.
+ Copyright 2011 __MyCompanyName__. All rights reserved.
+ */
+
+"OpenGL Driver" = "OpenGL Driver";
+"Pete Bernert" = "Pete Bernert";
+"Based on P.E.Op.S. MesaGL Driver V1.78\nCoded by Pete Bernert\n" = "Based on P.E.Op.S. MesaGL Driver V1.78\nCoded by Pete Bernert\n";
diff --git a/macosx/plugins/PeopsXgl/Info.plist b/macosx/plugins/PeopsXgl/Info.plist
index d5641fc2..9213c5d8 100644
--- a/macosx/plugins/PeopsXgl/Info.plist
+++ b/macosx/plugins/PeopsXgl/Info.plist
@@ -16,5 +16,7 @@
<string>POGl</string>
<key>CFBundleVersion</key>
<string>1.16</string>
+ <key>NSPrincipalClass</key>
+ <string>NetSfPeopsOpenGLPluginConfigController</string>
</dict>
</plist>
diff --git a/macosx/plugins/PeopsXgl/PeopsXGL.xcodeproj/project.pbxproj b/macosx/plugins/PeopsXgl/PeopsXGL.xcodeproj/project.pbxproj
index 1040a176..2fb78aac 100644
--- a/macosx/plugins/PeopsXgl/PeopsXGL.xcodeproj/project.pbxproj
+++ b/macosx/plugins/PeopsXgl/PeopsXGL.xcodeproj/project.pbxproj
@@ -26,6 +26,7 @@
3F7F384E13079BFD00556C34 /* gpu.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F7F384113079BFD00556C34 /* gpu.c */; };
3F7F384F13079BFD00556C34 /* soft.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F7F384313079BFD00556C34 /* soft.c */; };
3F7F385013079BFD00556C34 /* draw.c in Sources */ = {isa = PBXBuildFile; fileRef = 3F7F384713079BFD00556C34 /* draw.c */; };
+ 552E4CC91474742F00FB231F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 552E4CCB1474742F00FB231F /* Localizable.strings */; };
A191B90713F6741300D0971F /* gte_accuracy.c in Sources */ = {isa = PBXBuildFile; fileRef = A191B90513F6741300D0971F /* gte_accuracy.c */; };
/* End PBXBuildFile section */
@@ -67,6 +68,7 @@
3F7F384513079BFD00556C34 /* externals.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; lineEnding = 2; name = externals.h; path = ../../../plugins/peopsxgl/externals.h; sourceTree = SOURCE_ROOT; };
3F7F384613079BFD00556C34 /* draw.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = draw.h; path = ../../../plugins/peopsxgl/draw.h; sourceTree = SOURCE_ROOT; };
3F7F384713079BFD00556C34 /* draw.c */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.c; lineEnding = 2; name = draw.c; path = ../../../plugins/peopsxgl/draw.c; sourceTree = SOURCE_ROOT; };
+ 552E4CCA1474742F00FB231F /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
55F36E4A146C9F9900718DE6 /* drawgl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = drawgl.h; path = macsrc/drawgl.h; sourceTree = "<group>"; };
A191B90513F6741300D0971F /* gte_accuracy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = gte_accuracy.c; path = ../../../plugins/peopsxgl/gte_accuracy.c; sourceTree = SOURCE_ROOT; };
A191B90613F6741300D0971F /* gte_accuracy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = gte_accuracy.h; path = ../../../plugins/peopsxgl/gte_accuracy.h; sourceTree = SOURCE_ROOT; };
@@ -139,6 +141,7 @@
28586CBF14651E560082B8EC /* NetSfPeopsOpenGLGPUInterface.xib */,
2BD2E767077AF53E00657C69 /* Credits.rtf */,
2B038C05069183300082466B /* InfoPlist.strings */,
+ 552E4CCB1474742F00FB231F /* Localizable.strings */,
);
name = Resources;
sourceTree = "<group>";
@@ -228,6 +231,7 @@
2BD2E769077AF53E00657C69 /* Credits.rtf in Resources */,
28586CBE14651D960082B8EC /* NetSfPeopsOpenGLConfig.xib in Resources */,
28586CC014651E560082B8EC /* NetSfPeopsOpenGLGPUInterface.xib in Resources */,
+ 552E4CC91474742F00FB231F /* Localizable.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -283,6 +287,14 @@
name = Credits.rtf;
sourceTree = "<group>";
};
+ 552E4CCB1474742F00FB231F /* Localizable.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 552E4CCA1474742F00FB231F /* English */,
+ );
+ name = Localizable.strings;
+ sourceTree = "<group>";
+ };
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
@@ -290,13 +302,12 @@
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
- DEBUGGING_SYMBOLS = YES;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 1;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "";
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
+ "PCSXRPLUG=PeopsXGL",
_MACGL,
_DARWIN,
);
@@ -315,11 +326,6 @@
PRODUCT_NAME = PeopsXGL;
SECTORDER_FLAGS = "";
SYMROOT = ../../build;
- WARNING_CFLAGS = (
- "-Wmost",
- "-Wno-four-char-constants",
- "-Wno-unknown-pragmas",
- );
WRAPPER_EXTENSION = psxplugin;
};
name = Debug;
@@ -328,13 +334,12 @@
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = YES;
- DEBUGGING_SYMBOLS = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_OPTIMIZATION_LEVEL = 3;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "";
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
+ "PCSXRPLUG=PeopsXGL",
_MACGL,
_DARWIN,
);
@@ -352,11 +357,6 @@
PRODUCT_NAME = PeopsXGL;
SECTORDER_FLAGS = "";
SYMROOT = ../../build;
- WARNING_CFLAGS = (
- "-Wmost",
- "-Wno-four-char-constants",
- "-Wno-unknown-pragmas",
- );
WRAPPER_EXTENSION = psxplugin;
};
name = Release;
diff --git a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
index 634362a4..39968406 100644
--- a/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
+++ b/macosx/plugins/PeopsXgl/macsrc/NetSfPeopsOpenGLPluginConfigController.m
@@ -346,3 +346,12 @@ void ReadConfig(void)
}
@end
+
+char* PLUGLOC(char *toloc)
+{
+ NSBundle *mainBundle = [NSBundle bundleForClass:[PluginConfigController class]];
+ NSString *origString = nil, *transString = nil;
+ origString = [NSString stringWithCString:toloc encoding:NSUTF8StringEncoding];
+ transString = [mainBundle localizedStringForKey:origString value:nil table:nil];
+ return [transString cStringUsingEncoding:NSUTF8StringEncoding];
+}