always build translation_c::initialize_std_and_boost_filesystem_locales

That function is used & needed even if MKVToolNix is built without libintl.
This commit is contained in:
Moritz Bunkus 2023-01-14 18:31:06 +01:00
parent 8a2da1a252
commit 29f4f99e1b
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -271,6 +271,11 @@ translation_c::set_active_translation(const std::string &locale) {
mxdebug_if(debugging_c::requested("locale"), fmt::format("[translation_c::set_active_translation() active_translation_idx {0} for locale {1}]\n", ms_active_translation_idx, locale));
}
void
translation_c::initialize_std_and_boost_filesystem_locales() {
std::locale::global(std::locale{ std::locale(), new std::codecvt_utf8<wchar_t> });
}
// ------------------------------------------------------------
translatable_string_c::translatable_string_c(const std::string &untranslated_string)
@ -436,11 +441,6 @@ init_locales(std::string locale) {
bind_textdomain_codeset("mkvtoolnix", "UTF-8");
}
void
translation_c::initialize_std_and_boost_filesystem_locales() {
std::locale::global(std::locale{ std::locale(), new std::codecvt_utf8<wchar_t> });
}
#else // HAVE_LIBINTL_H
void