20 OF_ASSUME_NONNULL_BEGIN
24 #define OF_LOCALIZED(ID, ...) \ 25 [[OFLocalization sharedLocalization] \ 26 localizedStringForID: ID \ 27 fallback: __VA_ARGS__, nil] 39 OFString *_Nullable _language, *_Nullable _territory;
129 + (void)addLanguageDirectory: (
OFString *)path;
150 - (void)addLanguageDirectory: (
OFString *)path;
198 arguments: (va_list)arguments;
201 OF_ASSUME_NONNULL_END
instancetype sharedLocalization()
Returns the shared OFLocalization instance.
Definition: OFLocalization.m:89
OFString * decimalPoint()
Returns the decimal point of the system's locale.
A class for handling strings.
Definition: OFString.h:114
A class for querying the locale and retrieving localized strings.
Definition: OFLocalization.h:37
nullable OFString * territory()
Returns the territory of the locale.
id init()
Initializes the OFLocalization singleton with the specified locale.
Definition: OFLocalization.m:121
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:54
readonly
Definition: OFLocalization.h:51
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:37
of_string_encoding_t
The encoding of a string.
Definition: OFString.h:53
nullable OFString * language()
Returns the language of the locale.
of_string_encoding_t encoding()
Returns the native 8-bit string encoding for the locale.
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:40