19 OF_ASSUME_NONNULL_BEGIN
36 #define OF_LOCALIZED(ID, ...) \
37 [[OFLocale currentLocale] localizedStringForID: ID \
38 fallback: __VA_ARGS__, nil]
48 OF_SUBCLASSING_RESTRICTED
51 OFString *_Nullable _languageCode, *_Nullable _countryCode;
58 #ifdef OF_HAVE_CLASS_PROPERTIES
59 @property (
class, readonly, nullable, nonatomic)
OFLocale *currentLocale;
60 @property (
class, readonly, nullable, nonatomic)
OFString *languageCode;
61 @property (
class, readonly, nullable, nonatomic)
OFString *countryCode;
63 @property (
class, readonly, nullable, nonatomic)
OFString *decimalSeparator;
93 @property (readonly, nonatomic)
OFString *decimalSeparator;
104 + (nullable
OFLocale *)currentLocale;
113 + (nullable
OFString *)languageCode;
141 + (nullable
OFString *)decimalSeparator;
148 + (void)addLocalizationDirectoryIRI: (
OFIRI *)IRI;
160 - (instancetype)init;
167 - (void)addLocalizationDirectoryIRI: (
OFIRI *)IRI;
189 fallback: (
id)fallback, ... OF_SENTINEL;
216 fallback: (
id)fallback
217 arguments: (va_list)arguments;
220 OF_ASSUME_NONNULL_END
OFStringEncoding
The encoding of a string.
Definition: OFString.h:61
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:38
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:80
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition: OFIRI.h:37
A class for querying the locale and retrieving localized strings.
Definition: OFLocale.h:50
OFString * languageCode
The language code of the locale for messages.
Definition: OFLocale.h:71
OFString * countryCode
The country code of the locale for messages.
Definition: OFLocale.h:78
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:44
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
A class for handling strings.
Definition: OFString.h:135