mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
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:
parent
8a2da1a252
commit
29f4f99e1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user