use the _() macro for localisation within base

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32173 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-15 06:25:54 +00:00
parent 8acf2cf573
commit 27550994ee
17 changed files with 45 additions and 60 deletions

View file

@ -37,6 +37,15 @@
*/
#import "Foundation/NSString.h"
#import "Foundation/NSDebug.h"
#import "Foundation/NSBundle.h"
#import "GNUstepBase/NSBundle+GNUstepBase.h"
/* Change localisation macro for use within the base library itsself.
*/
#undef _
#define _(X) [[NSBundle bundleForLibrary: @"gnustep-base" version: \
OBJC_STRINGIFY(GNUSTEP_BASE_MAJOR_VERSION.GNUSTEP_BASE_MINOR_VERSION)] \
localizedStringForKey:(X) value: @"" table: nil]
#include <string.h>
#include <ctype.h>