2013-07-09 06:18:01 +02:00
|
|
|
//
|
|
|
|
// 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]; \
|
2013-07-09 09:07:15 +02:00
|
|
|
NSString *origString = @(toloc), *transString = nil; \
|
|
|
|
transString = [mainBundle localizedStringForKey:origString value:@"" table:nil]; \
|
2013-07-09 06:18:01 +02:00
|
|
|
return (char*)[transString UTF8String]; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|