From 528b740d200d92edccdc959a2e7253f39d62a3b4 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 14 Oct 2023 12:30:27 +0800 Subject: [PATCH] i18n some strings --- gnucash/gnucash-commands.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnucash/gnucash-commands.cpp b/gnucash/gnucash-commands.cpp index 996d14d49e6..695b67ff691 100644 --- a/gnucash/gnucash-commands.cpp +++ b/gnucash/gnucash-commands.cpp @@ -201,7 +201,8 @@ load_file (const std::string& m_file_to_load, bool m_open_readwrite) return session; case ERR_BACKEND_LOCKED: { - auto response = get_choice ("File Locked. Open [R]eadonly, [U]nlock or [A]bort?", + // Translators: [R] [U] and [A] are responses and must not be translated. + auto response = get_choice (_("File Locked. Open [R]eadonly, [U]nlock or [A]bort?"), {"R","r","U","u","A","a"}); if (response == "R" || response == "r") mode = SESSION_READ_ONLY; @@ -531,7 +532,7 @@ run_guile_cli (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char **ar scm_c_use_module ("system repl repl"); scm_c_use_module ("ice-9 readline"); scm_c_eval_string ("(activate-readline)"); - std::cout << "Welcome to Gnucash Interactive Guile Session" << std::endl; + std::cout << _("Welcome to Gnucash Interactive Guile Session") << std::endl; scm_c_eval_string ("(start-repl)"); } cleanup_and_exit_with_save (); @@ -595,7 +596,7 @@ Gnucash::run_scripting (const bo_str& m_file_to_load, } if (m_interactive) { - std::cout << "Welcome to Gnucash Interactive Python Session" << std::endl; + std::cout << _("Welcome to Gnucash Interactive Python Session") << std::endl; PyRun_InteractiveLoop (stdin, "foo"); } cleanup_and_exit_with_save ();