blob: 134a3daaad6e1f5696bed9a9835f0683bf3f9e8d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//
// 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 = @(toloc), *transString = nil; \
transString = [mainBundle localizedStringForKey:origString value:@"" table:nil]; \
return (char*)[transString UTF8String]; \
}
#endif
|