added/fixed some dialog titles

This commit is contained in:
Jordà Polo 2004-09-19 14:00:51 +00:00
parent e03c262bc5
commit f26a4ee11c
3 changed files with 9 additions and 9 deletions

View File

@ -171,7 +171,7 @@ int get_save_name(display & disp,const std::string& caption, const std::string&
int overwrite=0;
int res=0;
do {
res = gui::show_dialog(disp,NULL,_("Save"),caption,dialog_type,NULL,NULL,message,name);
res = gui::show_dialog(disp,NULL,_("Save Game"),caption,dialog_type,NULL,NULL,message,name);
if (res == 0 && save_game_exists(*name))
overwrite = gui::show_dialog(disp,NULL,_("Overwrite?"),
_("Save already exists. Do you want to overwrite it ?"),gui::YES_NO);

View File

@ -355,7 +355,7 @@ void key_event(display& disp, const SDL_KeyboardEvent& event, command_executor*
{
if(event.keysym.sym == SDLK_ESCAPE && disp.in_game()) {
std::cerr << "escape pressed..showing quit\n";
const int res = gui::show_dialog(disp,NULL,_("Quit?"),_("Do you really want to quit?"),gui::YES_NO);
const int res = gui::show_dialog(disp,NULL,_("Quit"),_("Do you really want to quit?"),gui::YES_NO);
if(res == 0) {
throw end_level_exception(QUIT);
} else {
@ -539,7 +539,7 @@ void execute_command(display& disp, HOTKEY_COMMAND command, command_executor* ex
case HOTKEY_QUIT_GAME: {
if(disp.in_game()) {
std::cerr << "is in game -- showing quit message\n";
const int res = gui::show_dialog(disp,NULL,_("Quit?"),_("Do you really want to quit?"),gui::YES_NO);
const int res = gui::show_dialog(disp,NULL,_("Quit"),_("Do you really want to quit?"),gui::YES_NO);
if(res == 0) {
throw end_level_exception(QUIT);
}

View File

@ -1348,7 +1348,7 @@ void turn_info::rename_unit()
return;
std::string name = un->second.description();
const int res = gui::show_dialog(gui_,NULL,"",_("Rename Unit"), gui::OK_CANCEL,NULL,NULL,"",&name);
const int res = gui::show_dialog(gui_,NULL,_("Rename Unit"),"", gui::OK_CANCEL,NULL,NULL,"",&name);
if(res == 0) {
un->second.rename(name);
gui_.invalidate_unit();
@ -1631,8 +1631,8 @@ void turn_info::recruit()
std::vector<gui::preview_pane*> preview_panes;
preview_panes.push_back(&unit_preview);
recruit_res = gui::show_dialog(gui_,NULL,"",
_("Recruit unit") + std::string(":\n"),
recruit_res = gui::show_dialog(gui_,NULL,_("Recruit"),
_("Select unit") + std::string(":\n"),
gui::OK_CANCEL,&items,&preview_panes,"",NULL,NULL,NULL,-1,-1,
NULL,NULL,"recruit_and_recall");
}
@ -1808,7 +1808,7 @@ void turn_info::recall()
std::vector<gui::preview_pane*> preview_panes;
preview_panes.push_back(&unit_preview);
res = gui::show_dialog(gui_,NULL,"",
res = gui::show_dialog(gui_,NULL,_("Recall"),
_("Select unit") + std::string(":\n"),
gui::OK_CANCEL,&options,
&preview_panes,"",NULL,
@ -2083,7 +2083,7 @@ void turn_info::show_statistics()
items.push_back(str.str());
}
const int res = gui::show_dialog(gui_,NULL,"",_("Statistics"),gui::MESSAGE,&items);
const int res = gui::show_dialog(gui_,NULL,_("Statistics"),"",gui::MESSAGE,&items);
std::string title;
items.clear();
switch(res) {
@ -2283,7 +2283,7 @@ void turn_info::label_terrain()
}
std::string label = gui_.labels().get_label(last_hex_);
const int res = gui::show_dialog(gui_,NULL,"",_("Place Label"),gui::OK_CANCEL,
const int res = gui::show_dialog(gui_,NULL,_("Place Label"),"",gui::OK_CANCEL,
NULL,NULL,_("Label") + std::string(":"),&label);
if(res == 0) {
gui_.labels().set_label(last_hex_,label);