Skip to content

Commit

Permalink
Cleaned up UI strings passed to the file dialog
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
irydacea committed Oct 5, 2016
1 parent 95a192f commit d17ded1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/editor/map/context_manager.cpp
Expand Up @@ -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())) {
Expand Down Expand Up @@ -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())) {
Expand Down Expand Up @@ -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)
Expand All @@ -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;
Expand All @@ -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)
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/menu_events.cpp
Expand Up @@ -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");
Expand All @@ -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
Expand Down

0 comments on commit d17ded1

Please sign in to comment.