@@ -41,10 +41,19 @@ OFString *_decimalPoint; OFMutableArray OF_GENERIC(OFDictionary OF_GENERIC(OFString *, id) *) *_localizedStrings; } +#ifdef OF_HAVE_CLASS_PROPERTIES +@property (class, readonly, nullable, nonatomic) + OFLocalization *sharedLocalization; +@property (class, readonly, nullable, nonatomic) OFString *language; +@property (class, readonly, nullable, nonatomic) OFString *territory; +@property (class, readonly, nonatomic) of_string_encoding_t encoding; +@property (class, readonly, nullable, nonatomic) OFString *decimalPoint; +#endif + /*! * The language of the locale for messages. * * If the language is unknown, it is `nil`. */ @@ -79,11 +88,11 @@ * case, you need to manually allocate an instance and call * @ref init once. * * @return The shared OFLocalization instance */ -+ (instancetype)sharedLocalization; ++ (nullable OFLocalization *)sharedLocalization; /*! * @brief Returns the language of the locale. * * If the language is unknown, `nil` is returned. @@ -116,11 +125,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. *