Skip to content

Commit

Permalink
i18n some strings
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Oct 14, 2023
1 parent 286597a commit 528b740
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gnucash/gnucash-commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ();
Expand Down Expand Up @@ -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 ();
Expand Down

0 comments on commit 528b740

Please sign in to comment.