From d17ded15081c391c40791cbedae9e12ad3c42c24 Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Wed, 5 Oct 2016 03:14:50 -0300 Subject: [PATCH] Cleaned up UI strings passed to the file dialog Most of these were wordier than necessary (e.g. "Save the Map As" instead of "Save Map As). Also replaced "want" with "wish" in external prompts at vultraz's suggestion. --- src/editor/map/context_manager.cpp | 12 ++++++------ src/menu_events.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/editor/map/context_manager.cpp b/src/editor/map/context_manager.cpp index 11858f3a3823..b803a9819895 100644 --- a/src/editor/map/context_manager.cpp +++ b/src/editor/map/context_manager.cpp @@ -193,7 +193,7 @@ void context_manager::load_map_dialog(bool force_same_context /* = false */) gui2::tfile_dialog dlg; - dlg.set_title(_("Choose a File to Open")) + dlg.set_title(_("Load Map")) .set_path(fn); if(dlg.show(gui_.video())) { @@ -452,7 +452,7 @@ void context_manager::apply_mask_dialog() gui2::tfile_dialog dlg; - dlg.set_title(_("Choose a Mask to Apply")) + dlg.set_title(_("Apply Mask")) .set_path(fn); if(dlg.show(gui_.video())) { @@ -623,7 +623,7 @@ void context_manager::save_map_as_dialog() gui2::tfile_dialog dlg; - dlg.set_title(_("Save the Map As")) + dlg.set_title(_("Save Map As")) .set_ok_label(_("Save")) .set_save_mode(true) .set_path(input_name) @@ -634,7 +634,7 @@ void context_manager::save_map_as_dialog() if (filesystem::file_exists(input_name)) { int res = gui2::show_message(gui_.video(), "", - _("The file already exists. Do you want to overwrite it?"), gui2::tmessage::yes_no_buttons); + _("The file already exists. Do you wish to overwrite it?"), gui2::tmessage::yes_no_buttons); overwrite_res = gui2::twindow::CANCEL == res ? 1 : 0; } else { overwrite_res = 0; @@ -661,7 +661,7 @@ void context_manager::save_scenario_as_dialog() gui2::tfile_dialog dlg; - dlg.set_title(_("Save the Scenario As")) + dlg.set_title(_("Save Scenario As")) .set_ok_label(_("Save")) .set_save_mode(true) .set_path(input_name) @@ -672,7 +672,7 @@ void context_manager::save_scenario_as_dialog() if (filesystem::file_exists(input_name)) { int res = gui2::show_message(gui_.video(), "", - _("The file already exists. Do you want to overwrite it?"), gui2::tmessage::yes_no_buttons); + _("The file already exists. Do you wish to overwrite it?"), gui2::tmessage::yes_no_buttons); overwrite_res = gui2::twindow::CANCEL == res ? 1 : 0; } else { overwrite_res = 0; diff --git a/src/menu_events.cpp b/src/menu_events.cpp index c8a90109baa2..d46f33c98412 100644 --- a/src/menu_events.cpp +++ b/src/menu_events.cpp @@ -168,7 +168,7 @@ void menu_handler::save_map() do { gui2::tfile_dialog dlg; - dlg.set_title(_("Save the Map As")) + dlg.set_title(_("Save Map As")) .set_save_mode(true) .set_path(input_name) .set_extension(".map"); @@ -177,7 +177,7 @@ void menu_handler::save_map() input_name = dlg.path(); if (filesystem::file_exists(input_name)) { - const int res = gui2::show_message((*gui_).video(), "", _("The map already exists. Do you want to overwrite it?"), gui2::tmessage::yes_no_buttons); + const int res = gui2::show_message((*gui_).video(), "", _("The map already exists. Do you wish to overwrite it?"), gui2::tmessage::yes_no_buttons); overwrite = res == gui2::twindow::CANCEL ? 1 : 0; } else