Permalink
Browse files

Made the language dropdown selection reflect configured language

  • Loading branch information...
1 parent 261f8cc commit 2d43f68ef4b9375e6e0a089c91327f6cfb2bc674 @hagabaka hagabaka committed Jan 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/pause_game_dialog.cpp
@@ -86,6 +86,7 @@ PAUSE_GAME_RESULT show_pause_game_dialog()
i18n::get_available_locales(locale_codes, language_names);
dropdown_widget* language_list_widget = new dropdown_widget(language_names, button_width, button_height);
language_list_widget->set_on_select_handler(handle_locale_change);
+ language_list_widget->set_selection(std::find(locale_codes.begin(), locale_codes.end(), i18n::get_locale()) - locale_codes.begin());
widget_ptr language_list(language_list_widget);
widget_ptr b3(new button(widget_ptr(new graphical_font_label(_("Return to Titlescreen"), "door_label", 2)), boost::bind(end_dialog, &d, &result, PAUSE_GAME_GO_TO_TITLESCREEN), BUTTON_STYLE_NORMAL, BUTTON_SIZE_DOUBLE_RESOLUTION));

0 comments on commit 2d43f68

Please sign in to comment.