19 OF_ASSUME_NONNULL_BEGIN
32 #define OF_LOCALIZED(ID, ...) \
33 [[OFLocale currentLocale] localizedStringForID: ID \
34 fallback: __VA_ARGS__, nil]
44 OF_SUBCLASSING_RESTRICTED
47 OFString *_Nullable _language, *_Nullable _territory;
54 #ifdef OF_HAVE_CLASS_PROPERTIES
55 @property (
class, readonly, nullable, nonatomic)
OFLocale *currentLocale;
56 @property (
class, readonly, nullable, nonatomic)
OFString *language;
57 @property (
class, readonly, nullable, nonatomic)
OFString *territory;
59 @property (
class, readonly, nullable, nonatomic)
OFString *decimalPoint;
89 @property (readonly, nonatomic)
OFString *decimalPoint;
100 + (nullable
OFLocale *)currentLocale;
137 + (nullable
OFString *)decimalPoint;
145 + (void)addLanguageDirectory: (
OFString *)path;
158 - (instancetype)init;
166 - (void)addLanguageDirectory: (
OFString *)path;
189 fallback: (
id)fallback, ... OF_SENTINEL;
214 fallback: (
id)fallback
215 arguments: (va_list)arguments;
218 OF_ASSUME_NONNULL_END
of_string_encoding_t
The encoding of a string.
Definition: OFString.h:68
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:42
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:58
A class for querying the locale and retrieving localized strings.
Definition: OFLocale.h:46
OFString * territory
The territory of the locale for messages.
Definition: OFLocale.h:74
OFString * language
The language of the locale for messages.
Definition: OFLocale.h:67
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:520
A class for handling strings.
Definition: OFString.h:132