gnucash maint: Make boost::locale::gettext use the proper locale

Geert Janssens gjanssens at code.gnucash.org
Fri Dec 16 14:28:49 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/dd48a025 (commit)
	from  https://github.com/Gnucash/gnucash/commit/73a13473 (commit)



commit dd48a025d5af41c96ec5d58bc10a3fe3658204a3
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Fri Dec 16 20:28:31 2022 +0100

    Make boost::locale::gettext use the proper locale

diff --git a/gnucash/gnucash-core-app.cpp b/gnucash/gnucash-core-app.cpp
index 54c6d32e2..eb4716553 100644
--- a/gnucash/gnucash-core-app.cpp
+++ b/gnucash/gnucash-core-app.cpp
@@ -223,7 +223,7 @@ Gnucash::CoreApp::CoreApp (const char* app_name)
     // Now that gettext is properly initialized, set our help tagline.
     m_tagline = bl::translate("- GnuCash, accounting for personal and small business finance").str(gnc_get_boost_locale());
     m_opt_desc_display = std::make_unique<bpo::options_description>
-        ((bl::format (bl::gettext ("{1} [options] [datafile]")) % m_app_name).str() + std::string(" ") + m_tagline);
+        ((bl::format (bl::gettext ("{1} [options] [datafile]", gnc_get_boost_locale())) % m_app_name).str() + std::string(" ") + m_tagline);
     add_common_program_options();
 }
 



Summary of changes:
 gnucash/gnucash-core-app.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list