commit 8ce530b65d0e6eac94fa95a7294f61433c4d85dc Author: Ahmed Siam Date: Mon Jun 5 13:15:36 2023 +0300 update error messages diff --git a/src/i18n.cpp b/src/i18n.cpp index cb3c44a..716f161 100644 --- a/src/i18n.cpp +++ b/src/i18n.cpp @@ -39,7 +39,8 @@ I18n::I18n(const char *locales_path) : resource("", "", status) resource = icu::ResourceBundle("locales", icu::Locale().getName(), status); if (!U_SUCCESS(status)) { - std::cerr << "Error in accessing locales directory!" << std::endl; + std::cerr << "Error in initializing resource bundle" << std::endl; + std::cerr << u_errorName(status) << std::endl; exit(EXIT_FAILURE); } } @@ -52,18 +53,21 @@ icu::UnicodeString I18n::format(const char* key, const std::vector