diff options
Diffstat (limited to 'src/emu/ui/miscmenu.cpp')
-rw-r--r-- | src/emu/ui/miscmenu.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/emu/ui/miscmenu.cpp b/src/emu/ui/miscmenu.cpp index 0b41eed95bb..5d232729bd2 100644 --- a/src/emu/ui/miscmenu.cpp +++ b/src/emu/ui/miscmenu.cpp @@ -32,7 +32,7 @@ ui_menu_keyboard_mode::ui_menu_keyboard_mode(running_machine &machine, render_co void ui_menu_keyboard_mode::populate() { bool natural = machine().ui().use_natural_keyboard(); - item_append("Keyboard Mode:", natural ? "Natural" : "Emulated", natural ? MENU_FLAG_LEFT_ARROW : MENU_FLAG_RIGHT_ARROW, nullptr); + item_append(_("Keyboard Mode:"), natural ? _("Natural") : _("Emulated"), natural ? MENU_FLAG_LEFT_ARROW : MENU_FLAG_RIGHT_ARROW, nullptr); } ui_menu_keyboard_mode::~ui_menu_keyboard_mode() @@ -86,7 +86,7 @@ void ui_menu_bios_selection::populate() } item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); - item_append("Reset", nullptr, 0, (void *)1); + item_append(_("Reset"), nullptr, 0, (void *)1); } ui_menu_bios_selection::~ui_menu_bios_selection() @@ -260,7 +260,7 @@ void ui_menu_bookkeeping::populate() /* display whether or not we are locked out */ if (machine().bookkeeping().coin_lockout_get_state(ctrnum)) - tempstring.append(" (locked)"); + tempstring.append(_(" (locked)")); tempstring.append("\n"); } @@ -520,7 +520,7 @@ void ui_menu_crosshair::populate() /* add CROSSHAIR_ITEM_AUTO_TIME menu */ sprintf(temp_text, "%d", settings.auto_time); - item_append("Visible Delay", temp_text, flags, data); + item_append(_("Visible Delay"), temp_text, flags, data); } // else // /* leave a blank filler line when not in auto time so size does not rescale */ @@ -559,17 +559,17 @@ void ui_menu_quit_game::handle() ui_menu_misc_options::misc_option ui_menu_misc_options::m_options[] = { { 0, nullptr, nullptr }, - { 0, "Re-select last machine played", OPTION_REMEMBER_LAST }, - { 0, "Enlarge images in the right panel", OPTION_ENLARGE_SNAPS }, - { 0, "DATs info", OPTION_DATS_ENABLED }, - { 0, "Cheats", OPTION_CHEAT }, - { 0, "Show mouse pointer", OPTION_UI_MOUSE }, - { 0, "Confirm quit from machines", OPTION_UI_CONFIRM_QUIT }, - { 0, "Skip displaying information's screen at startup", OPTION_UI_SKIP_GAMEINFO }, - { 0, "Force 4:3 appearance for software snapshot", OPTION_FORCED4X3 }, - { 0, "Use image as background", OPTION_USE_BACKGROUND }, - { 0, "Skip bios selection menu", OPTION_SKIP_BIOS_MENU }, - { 0, "Skip software parts selection menu", OPTION_SKIP_PARTS_MENU } + { 0, __("Re-select last machine played"), OPTION_REMEMBER_LAST }, + { 0, __("Enlarge images in the right panel"), OPTION_ENLARGE_SNAPS }, + { 0, __("DATs info"), OPTION_DATS_ENABLED }, + { 0, __("Cheats"), OPTION_CHEAT }, + { 0, __("Show mouse pointer"), OPTION_UI_MOUSE }, + { 0, __("Confirm quit from machines"), OPTION_CONFIRM_QUIT }, + { 0, __("Skip displaying information's screen at startup"), OPTION_SKIP_GAMEINFO }, + { 0, __("Force 4:3 appearance for software snapshot"), OPTION_FORCED4X3 }, + { 0, __("Use image as background"), OPTION_USE_BACKGROUND }, + { 0, __("Skip bios selection menu"), OPTION_SKIP_BIOS_MENU }, + { 0, __("Skip software parts selection menu"), OPTION_SKIP_PARTS_MENU } }; //------------------------------------------------- @@ -635,7 +635,7 @@ void ui_menu_misc_options::populate() { // add options items for (int opt = 1; opt < ARRAY_LENGTH(m_options); ++opt) - item_append(m_options[opt].description, m_options[opt].status ? "On" : "Off", m_options[opt].status ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)opt); + item_append(_(m_options[opt].description), m_options[opt].status ? "On" : "Off", m_options[opt].status ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)opt); item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); customtop = machine().ui().get_line_height() + (3.0f * UI_BOX_TB_BORDER); @@ -650,7 +650,7 @@ void ui_menu_misc_options::custom_render(void *selectedref, float top, float bot float width; ui_manager &mui = machine().ui(); - mui.draw_text_full(container, "Miscellaneous Options", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, + mui.draw_text_full(container, _("Miscellaneous Options"), 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); @@ -670,6 +670,6 @@ void ui_menu_misc_options::custom_render(void *selectedref, float top, float bot y1 += UI_BOX_TB_BORDER; // draw the text within it - mui.draw_text_full(container, "Miscellaneous Options", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, + mui.draw_text_full(container, _("Miscellaneous Options"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); } |