@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2022 Jonathan Schleifer + * Copyright (c) 2008-2024 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -15,10 +15,12 @@ #import "OFObject.h" #import "OFString.h" OF_ASSUME_NONNULL_BEGIN + +@class OFIRI; /** @file */ /** * @def OF_LOCALIZED @@ -136,18 +138,16 @@ * * @return The decimal point of the system's locale */ + (nullable OFString *)decimalSeparator; -#ifdef OF_HAVE_FILES /** * @brief Adds a directory to scan for localizations. * - * @param path The path to the directory to scan for localizations + * @param IRI The IRI to the directory to scan for localizations */ -+ (void)addLocalizationDirectory: (OFString *)path; -#endif ++ (void)addLocalizationDirectoryIRI: (OFIRI *)IRI; /** * @brief Initializes the current OFLocale. * * @warning This sets the locale via `setlocale()`! @@ -157,18 +157,16 @@ * instance of OFLocale, which will become the current locale, and * call this method. */ - (instancetype)init; -#ifdef OF_HAVE_FILES /** * @brief Adds a directory to scan for localizations. * - * @param path The path to the directory to scan for localizations + * @param IRI The IRI to the directory to scan for localizations */ -- (void)addLocalizationDirectory: (OFString *)path; -#endif +- (void)addLocalizationDirectoryIRI: (OFIRI *)IRI; /** * @brief Returns the localized string for the specified ID, using the fallback * string if it cannot be looked up or is missing. *