1
/** Additional functions and macros for GNUStep
2
Copyright (C) 2005 Free Software Foundation, Inc.
4
Written by: Richard Frith-Macdonald <rfm@gnu.org>
7
This file is part of the GNUstep Base Library.
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of the GNU Lesser General Public
11
License as published by the Free Software Foundation; either
12
version 2 of the License, or (at your option) any later version.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Library General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library; if not, write to the Free
21
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24
AutogsdocSource: Additions/GSFunctions.m
27
#ifndef __GSFunctions_h_GNUSTEP_BASE_INCLUDE
28
#define __GSFunctions_h_GNUSTEP_BASE_INCLUDE
29
#import "GNUstepBase/GNUstep.h"
31
#import "GNUstepBase/preface.h"
32
#import "GNUstepBase/GSObjCRuntime.h"
34
#if defined(__cplusplus)
38
#define GSLocalizedStringFromTableInFramework(key, tbl, fpth, comment) \
39
[[NSBundle mainBundle] localizedStringForKey:(key) value:@"" \
40
table: [bundle pathForGNUstepResource:(tbl) ofType: nil inDirectory: (fpth)]
42
/* Now Support for Quick Localization */
44
/* The quickest possible way to localize a string:
46
NSLog (_(@"New Game"));
48
Please make use of the longer functions taking a comment when you
49
get the time to localize seriously your code.
52
#if GS_API_VERSION(GS_API_NONE,011500)
56
* Try to locate file/directory (aName).(anExtension) in paths.
57
* Will return the first found or nil if nothing is found.<br />
58
* Deprecated ... may be removed in later release.
60
GS_EXPORT NSString *GSFindNamedFile(NSArray *paths, NSString *aName,
61
NSString *anExtension);
64
#if defined(__cplusplus)
68
#endif /* __NSPathUtilities_h_GNUSTEP_BASE_INCLUDE */