root/Trunk/AIUtilities.framework/Versions/A/Headers/AIStringUtilities.h @ 2

Revision 2, 0.6 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1//Localization
2#ifndef AILocalizedString
3
4        //Note that while NSLocalizedString() uses the main bundle, AILocalizedString() uses [self class]'s bundle
5        #define AILocalizedString(key, comment) \
6                AILocalizedStringFromTableInBundle(key, nil, [NSBundle bundleForClass:[self class]], comment)
7
8        //Like NSLocalizedString(), AILocalizedString() looks to the main bundle
9        #define AILocalizedStringFromTable(key, table, comment) \
10                AILocalizedStringFromTableInBundle(key, table, [NSBundle mainBundle], comment)
11
12        #define AILocalizedStringFromTableInBundle(key, table, bundle, comment) \
13                NSLocalizedStringFromTableInBundle(key, table, bundle, comment)
14
15#endif
Note: See TracBrowser for help on using the browser.