@@ -34,12 +34,11 @@ * * @brief A class for querying the locale and retrieving localized strings. */ @interface OFLocalization: OFObject { - OFString *_language; - OFString *_territory; + OFString *_Nullable _language, *_Nullable _territory; of_string_encoding_t _encoding; OFString *_decimalPoint; OFMutableArray OF_GENERIC(OFDictionary OF_GENERIC(OFString *, id) *) *_localizedStrings; } @@ -80,11 +79,11 @@ * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ -+ (instancetype)sharedLocalization; ++ (nullable instancetype)sharedLocalization; /** * @brief Returns the language of the locale. * * If the language is unknown, `nil` is returned. @@ -117,11 +116,11 @@ /*! * @brief Returns the decimal point of the system's locale. * * @return The decimal point of the system's locale */ -+ (OFString *)decimalPoint; ++ (nullable OFString *)decimalPoint; #ifdef OF_HAVE_FILES /*! * @brief Adds a directory to scan for language files. *