mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
8acf2cf573
commit
27550994ee
17 changed files with 45 additions and 60 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue