From 3043ded6406ce8bb06392b2c6351eb7596658d11 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 17 Nov 2011 01:58:25 +0000 Subject: 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 --- plugins/dfcdrom/cdr.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'plugins/dfcdrom') diff --git a/plugins/dfcdrom/cdr.h b/plugins/dfcdrom/cdr.h index 771faa77..d568972c 100644 --- a/plugins/dfcdrom/cdr.h +++ b/plugins/dfcdrom/cdr.h @@ -31,6 +31,28 @@ #include #define _(x) gettext(x) #define N_(x) (x) +#elif defined(__MACOSX__) +#ifdef __cplusplus +extern "C" { +#endif +#ifdef PCSXRCORE +extern char* Pcsxr_locale_text(char* toloc); +#define _(String) Pcsxr_locale_text(String) +#define N_(String) String +#else +#ifndef PCSXRPLUG +#warning please define the plug being built to use Mac OS X localization! +#define _(msgid) msgid +#define N_(msgid) msgid +#endif +#define PLUGLOC PCSXRPLUG##_locale_text +extern char* PLUGLOC(char* toloc); +#define _(String) PLUGLOC(String) +#define N_(String) String +#endif +#ifdef __cplusplus +} +#endif #else #define _(x) (x) #define N_(x) (x) -- cgit v1.2.3