From 859cec460360b2f6c02b6e6807105328dfedebcb Mon Sep 17 00:00:00 2001 From: dankan1890 Date: Sun, 21 Feb 2016 16:38:05 +0100 Subject: ui: localization part1. (nw) --- src/emu/ui/optsmenu.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/emu/ui/optsmenu.cpp') diff --git a/src/emu/ui/optsmenu.cpp b/src/emu/ui/optsmenu.cpp index 44ed9e11a37..54e269bf4ed 100644 --- a/src/emu/ui/optsmenu.cpp +++ b/src/emu/ui/optsmenu.cpp @@ -198,7 +198,7 @@ void ui_menu_game_options::populate() // add filter item UINT32 arrow_flags = get_arrow_flags((int)FILTER_FIRST, (int)FILTER_LAST, main_filters::actual); - item_append("Filter", main_filters::text[main_filters::actual], arrow_flags, (void *)(FPTR)FILTER_MENU); + item_append(_("Filter"), main_filters::text[main_filters::actual], arrow_flags, (void *)(FPTR)FILTER_MENU); // add category subitem if (main_filters::actual == FILTER_CATEGORY && !machine().inifile().ini_index.empty()) @@ -243,13 +243,13 @@ void ui_menu_game_options::populate() item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); // add options items - item_append("Customize UI", nullptr, 0, (void *)(FPTR)CUSTOM_MENU); + item_append(_("Customize UI"), nullptr, 0, (void *)(FPTR)CUSTOM_MENU); } - item_append("Display Options", nullptr, 0, (void *)(FPTR)DISPLAY_MENU); - item_append("Sound Options", nullptr, 0, (void *)(FPTR)SOUND_MENU); - item_append("Miscellaneous Options", nullptr, 0, (void *)(FPTR)MISC_MENU); - item_append("Device Mapping", nullptr, 0, (void *)(FPTR)CONTROLLER_MENU); - item_append("General Inputs", nullptr, 0, (void *)(FPTR)CGI_MENU); + item_append(_("Display Options"), nullptr, 0, (void *)(FPTR)DISPLAY_MENU); + item_append(_("Sound Options"), nullptr, 0, (void *)(FPTR)SOUND_MENU); + item_append(_("Miscellaneous Options"), nullptr, 0, (void *)(FPTR)MISC_MENU); + item_append(_("Device Mapping"), nullptr, 0, (void *)(FPTR)CONTROLLER_MENU); + item_append(_("General Inputs"), nullptr, 0, (void *)(FPTR)CGI_MENU); item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); custombottom = 2.0f * machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; @@ -264,7 +264,7 @@ void ui_menu_game_options::custom_render(void *selectedref, float top, float bot { float width; ui_manager &mui = machine().ui(); - mui.draw_text_full(container, "Settings", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, + mui.draw_text_full(container, _("Settings"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); width += 2 * UI_BOX_LR_BORDER; float maxwidth = MAX(origx2 - origx1, width); @@ -284,7 +284,7 @@ void ui_menu_game_options::custom_render(void *selectedref, float top, float bot y1 += UI_BOX_TB_BORDER; // draw the text within it - mui.draw_text_full(container, "Settings", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, + mui.draw_text_full(container, _("Settings"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); } @@ -304,5 +304,5 @@ void save_ui_options(running_machine &machine) file.close(); } else - machine.popmessage("**Error to save ui.ini**", emulator_info::get_configname()); + machine.popmessage(_("**Error to save ui.ini**")); } -- cgit v1.2.3-70-g09d2