gnucash maint: Prep early splash screen messages for translation
Geert Janssens
gjanssens at code.gnucash.org
Tue Sep 7 06:02:52 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/ae559089 (commit)
from https://github.com/Gnucash/gnucash/commit/4488568b (commit)
commit ae559089d39e1e2aca04ccfc47b5544f1f1549f0
Author: Geert Janssens <geert at kobaltwit.be>
Date: Tue Sep 7 12:02:46 2021 +0200
Prep early splash screen messages for translation
diff --git a/gnucash/gnucash-core-app.cpp b/gnucash/gnucash-core-app.cpp
index 4ecde0f7c..3269fbf17 100644
--- a/gnucash/gnucash-core-app.cpp
+++ b/gnucash/gnucash-core-app.cpp
@@ -99,7 +99,8 @@ Gnucash::gnc_load_scm_config (void)
static auto is_system_config_loaded = false;
if (!is_system_config_loaded)
{
- update_message ("loading system scm configuration");
+ auto msg = bl::translate ("Loading system scm configuration...").str (gnc_get_boost_locale());
+ update_message (msg.c_str());
auto system_config_dir = gnc_path_get_pkgsysconfdir ();
auto system_config = g_build_filename (system_config_dir, "config", nullptr);
is_system_config_loaded = gfec_try_load (system_config);
@@ -110,7 +111,8 @@ Gnucash::gnc_load_scm_config (void)
static auto is_user_config_loaded = false;
if (!is_user_config_loaded)
{
- update_message("loading user scm configuration");
+ auto msg = bl::translate ("Loading user scm configuration...").str (gnc_get_boost_locale());
+ update_message (msg.c_str());
auto config_filename = g_build_filename (gnc_userconfig_dir (), "config-user.scm", nullptr);
is_user_config_loaded = gfec_try_load (config_filename);
g_free (config_filename);
Summary of changes:
gnucash/gnucash-core-app.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list