Differences From Artifact [f635a4f99c]:
- File src/OFLocalization.h — part of check-in [f663d40cbd] at 2017-05-13 16:29:52 on branch trunk — Also use nonatomic for non-object properties (user: js, size: 6076) [annotate] [blame] [check-ins using]
To Artifact [2ce88aec39]:
- File
src/OFLocalization.h
— part of check-in
[d6553b4578]
at
2017-09-10 22:32:56
on branch trunk
— Add OFInvocation
Only support for storing an invocation, no support for invoking yet. (user: js, size: 6076) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
40 41 42 43 44 45 46 | OFString *_territory; of_string_encoding_t _encoding; OFString *_decimalPoint; OFMutableArray OF_GENERIC(OFDictionary OF_GENERIC(OFString *, id) *) *_localizedStrings; } | | | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | OFString *_territory; of_string_encoding_t _encoding; OFString *_decimalPoint; OFMutableArray OF_GENERIC(OFDictionary OF_GENERIC(OFString *, id) *) *_localizedStrings; } /*! * The language of the locale for messages. * * If the language is unknown, it is `nil`. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *language; /*! |
︙ | ︙ | |||
80 81 82 83 84 85 86 | * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ + (instancetype)sharedLocalization; | | | 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ + (instancetype)sharedLocalization; /*! * @brief Returns the language of the locale. * * If the language is unknown, `nil` is returned. * * @return The language of the locale. */ + (nullable OFString *)language; |
︙ | ︙ | |||
169 170 171 172 173 174 175 | * looked up or is missing * @return The localized string */ - (OFString *)localizedStringForID: (OFConstantString *)ID fallback: (OFConstantString *)fallback, ... OF_SENTINEL; | | | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | * looked up or is missing * @return The localized string */ - (OFString *)localizedStringForID: (OFConstantString *)ID fallback: (OFConstantString *)fallback, ... OF_SENTINEL; /*! * @brief Returns the localized string for the specified ID, using the fallback * string if it cannot be looked up or is missing. * * @note This takes a variadic argument, terminated by `nil` and passed as * va_list, that consists of pairs of variable names and variable values, * which will be replaced inside the localized string. For example, you * can pass `@"name", @"foo", nil`, causing `%[name]` to be replaced with |
︙ | ︙ |