blob: 59a8dea32ae99fbe9826c763825c8c68432895a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|