mirror of
https://github.com/holub/mame
synced 2025-04-16 21:44:32 +03:00
some strings internationalization. (nw)
This commit is contained in:
parent
13a5b5bc55
commit
20f8eb021b
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -46,7 +46,7 @@ ui_menu_controller_mapping::~ui_menu_controller_mapping()
|
|||||||
std::string error_string;
|
std::string error_string;
|
||||||
for (int d = 1; d < ARRAY_LENGTH(m_options); ++d)
|
for (int d = 1; d < ARRAY_LENGTH(m_options); ++d)
|
||||||
{
|
{
|
||||||
if (strcmp(machine().options().value(m_options[d].option),m_device_status[m_options[d].status])!=0)
|
if (strcmp(machine().options().value(m_options[d].option), m_device_status[m_options[d].status])!=0)
|
||||||
{
|
{
|
||||||
machine().options().set_value(m_options[d].option, m_device_status[m_options[d].status], OPTION_PRIORITY_CMDLINE, error_string);
|
machine().options().set_value(m_options[d].option, m_device_status[m_options[d].status], OPTION_PRIORITY_CMDLINE, error_string);
|
||||||
machine().options().mark_changed(m_options[d].option);
|
machine().options().mark_changed(m_options[d].option);
|
||||||
|
@ -171,7 +171,7 @@ void ui_menu_custom_filter::populate()
|
|||||||
if (custfltr::other[x] == FILTER_MANUFACTURER && c_mnfct::ui.size() > 0)
|
if (custfltr::other[x] == FILTER_MANUFACTURER && c_mnfct::ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, c_mnfct::ui.size() - 1, custfltr::mnfct[x]);
|
arrow_flags = get_arrow_flags(0, c_mnfct::ui.size() - 1, custfltr::mnfct[x]);
|
||||||
std::string fbuff("^!Manufacturer");
|
std::string fbuff(_("^!Manufacturer"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), c_mnfct::ui[custfltr::mnfct[x]].c_str(), arrow_flags, (void *)(FPTR)(MNFCT_FILTER + x));
|
item_append(fbuff.c_str(), c_mnfct::ui[custfltr::mnfct[x]].c_str(), arrow_flags, (void *)(FPTR)(MNFCT_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ void ui_menu_custom_filter::populate()
|
|||||||
else if (custfltr::other[x] == FILTER_YEAR && c_year::ui.size() > 0)
|
else if (custfltr::other[x] == FILTER_YEAR && c_year::ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, c_year::ui.size() - 1, custfltr::year[x]);
|
arrow_flags = get_arrow_flags(0, c_year::ui.size() - 1, custfltr::year[x]);
|
||||||
std::string fbuff("^!Year");
|
std::string fbuff(_("^!Year"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), c_year::ui[custfltr::year[x]].c_str(), arrow_flags, (void *)(FPTR)(YEAR_FILTER + x));
|
item_append(fbuff.c_str(), c_year::ui[custfltr::year[x]].c_str(), arrow_flags, (void *)(FPTR)(YEAR_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -456,7 +456,7 @@ void ui_menu_swcustom_filter::populate()
|
|||||||
if (sw_custfltr::other[x] == UI_SW_PUBLISHERS && m_filter.publisher.ui.size() > 0)
|
if (sw_custfltr::other[x] == UI_SW_PUBLISHERS && m_filter.publisher.ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, m_filter.publisher.ui.size() - 1, sw_custfltr::mnfct[x]);
|
arrow_flags = get_arrow_flags(0, m_filter.publisher.ui.size() - 1, sw_custfltr::mnfct[x]);
|
||||||
std::string fbuff("^!Publisher");
|
std::string fbuff(_("^!Publisher"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), m_filter.publisher.ui[sw_custfltr::mnfct[x]].c_str(), arrow_flags, (void *)(FPTR)(MNFCT_FILTER + x));
|
item_append(fbuff.c_str(), m_filter.publisher.ui[sw_custfltr::mnfct[x]].c_str(), arrow_flags, (void *)(FPTR)(MNFCT_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -465,7 +465,7 @@ void ui_menu_swcustom_filter::populate()
|
|||||||
else if (sw_custfltr::other[x] == UI_SW_YEARS && m_filter.year.ui.size() > 0)
|
else if (sw_custfltr::other[x] == UI_SW_YEARS && m_filter.year.ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, m_filter.year.ui.size() - 1, sw_custfltr::year[x]);
|
arrow_flags = get_arrow_flags(0, m_filter.year.ui.size() - 1, sw_custfltr::year[x]);
|
||||||
std::string fbuff("^!Year");
|
std::string fbuff(_("^!Year"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), m_filter.year.ui[sw_custfltr::year[x]].c_str(), arrow_flags, (void *)(FPTR)(YEAR_FILTER + x));
|
item_append(fbuff.c_str(), m_filter.year.ui[sw_custfltr::year[x]].c_str(), arrow_flags, (void *)(FPTR)(YEAR_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -474,7 +474,7 @@ void ui_menu_swcustom_filter::populate()
|
|||||||
else if (sw_custfltr::other[x] == UI_SW_LIST && m_filter.swlist.name.size() > 0)
|
else if (sw_custfltr::other[x] == UI_SW_LIST && m_filter.swlist.name.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, m_filter.swlist.name.size() - 1, sw_custfltr::list[x]);
|
arrow_flags = get_arrow_flags(0, m_filter.swlist.name.size() - 1, sw_custfltr::list[x]);
|
||||||
std::string fbuff("^!Software List");
|
std::string fbuff(_("^!Software List"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), m_filter.swlist.description[sw_custfltr::list[x]].c_str(), arrow_flags, (void *)(FPTR)(LIST_FILTER + x));
|
item_append(fbuff.c_str(), m_filter.swlist.description[sw_custfltr::list[x]].c_str(), arrow_flags, (void *)(FPTR)(LIST_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -483,7 +483,7 @@ void ui_menu_swcustom_filter::populate()
|
|||||||
else if (sw_custfltr::other[x] == UI_SW_TYPE && m_filter.type.ui.size() > 0)
|
else if (sw_custfltr::other[x] == UI_SW_TYPE && m_filter.type.ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, m_filter.type.ui.size() - 1, sw_custfltr::type[x]);
|
arrow_flags = get_arrow_flags(0, m_filter.type.ui.size() - 1, sw_custfltr::type[x]);
|
||||||
std::string fbuff("^!Device type");
|
std::string fbuff(_("^!Device type"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), m_filter.type.ui[sw_custfltr::type[x]].c_str(), arrow_flags, (void *)(FPTR)(TYPE_FILTER + x));
|
item_append(fbuff.c_str(), m_filter.type.ui[sw_custfltr::type[x]].c_str(), arrow_flags, (void *)(FPTR)(TYPE_FILTER + x));
|
||||||
}
|
}
|
||||||
@ -492,7 +492,7 @@ void ui_menu_swcustom_filter::populate()
|
|||||||
else if (sw_custfltr::other[x] == UI_SW_REGION && m_filter.region.ui.size() > 0)
|
else if (sw_custfltr::other[x] == UI_SW_REGION && m_filter.region.ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, m_filter.region.ui.size() - 1, sw_custfltr::region[x]);
|
arrow_flags = get_arrow_flags(0, m_filter.region.ui.size() - 1, sw_custfltr::region[x]);
|
||||||
std::string fbuff("^!Region");
|
std::string fbuff(_("^!Region"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), m_filter.region.ui[sw_custfltr::region[x]].c_str(), arrow_flags, (void *)(FPTR)(REGION_FILTER + x));
|
item_append(fbuff.c_str(), m_filter.region.ui[sw_custfltr::region[x]].c_str(), arrow_flags, (void *)(FPTR)(REGION_FILTER + x));
|
||||||
}
|
}
|
||||||
|
@ -265,7 +265,7 @@ void ui_menu_font_ui::list()
|
|||||||
std::stable_sort(m_fonts.begin(), m_fonts.end());
|
std::stable_sort(m_fonts.begin(), m_fonts.end());
|
||||||
|
|
||||||
// add default string to the top of array
|
// add default string to the top of array
|
||||||
m_fonts.insert(m_fonts.begin(), std::string("default"));
|
m_fonts.insert(m_fonts.begin(), std::string(_("default")));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -857,34 +857,34 @@ void ui_menu_rgb_ui::populate()
|
|||||||
if (m_lock_ref != RGB_ALPHA)
|
if (m_lock_ref != RGB_ALPHA)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, 255, m_color->a());
|
arrow_flags = get_arrow_flags(0, 255, m_color->a());
|
||||||
item_append("Alpha", string_format("%3d", m_color->a()).c_str(), arrow_flags, (void *)(FPTR)RGB_ALPHA);
|
item_append(_("Alpha"), string_format("%3d", m_color->a()).c_str(), arrow_flags, (void *)(FPTR)RGB_ALPHA);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
item_append("Alpha", s_text.c_str(), 0, (void *)(FPTR)RGB_ALPHA);
|
item_append(_("Alpha"), s_text.c_str(), 0, (void *)(FPTR)RGB_ALPHA);
|
||||||
|
|
||||||
if (m_lock_ref != RGB_RED)
|
if (m_lock_ref != RGB_RED)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, 255, m_color->r());
|
arrow_flags = get_arrow_flags(0, 255, m_color->r());
|
||||||
item_append("Red", string_format("%3d", m_color->r()).c_str(), arrow_flags, (void *)(FPTR)RGB_RED);
|
item_append(_("Red"), string_format("%3d", m_color->r()).c_str(), arrow_flags, (void *)(FPTR)RGB_RED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
item_append("Red", s_text.c_str(), 0, (void *)(FPTR)RGB_RED);
|
item_append(_("Red"), s_text.c_str(), 0, (void *)(FPTR)RGB_RED);
|
||||||
|
|
||||||
if (m_lock_ref != RGB_GREEN)
|
if (m_lock_ref != RGB_GREEN)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, 255, m_color->g());
|
arrow_flags = get_arrow_flags(0, 255, m_color->g());
|
||||||
item_append("Green", string_format("%3d", m_color->g()).c_str(), arrow_flags, (void *)(FPTR)RGB_GREEN);
|
item_append(_("Green"), string_format("%3d", m_color->g()).c_str(), arrow_flags, (void *)(FPTR)RGB_GREEN);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
item_append("Green", s_text.c_str(), 0, (void *)(FPTR)RGB_GREEN);
|
item_append(_("Green"), s_text.c_str(), 0, (void *)(FPTR)RGB_GREEN);
|
||||||
|
|
||||||
if (m_lock_ref != RGB_BLUE)
|
if (m_lock_ref != RGB_BLUE)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, 255, m_color->b());
|
arrow_flags = get_arrow_flags(0, 255, m_color->b());
|
||||||
item_append("Blue", string_format("%3d", m_color->b()).c_str(), arrow_flags, (void *)(FPTR)RGB_BLUE);
|
item_append(_("Blue"), string_format("%3d", m_color->b()).c_str(), arrow_flags, (void *)(FPTR)RGB_BLUE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
item_append("Blue", s_text.c_str(), 0, (void *)(FPTR)RGB_BLUE);
|
item_append(_("Blue"), s_text.c_str(), 0, (void *)(FPTR)RGB_BLUE);
|
||||||
|
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
||||||
item_append(_("Choose from palette"), nullptr, 0, (void *)(FPTR)PALETTE_CHOOSE);
|
item_append(_("Choose from palette"), nullptr, 0, (void *)(FPTR)PALETTE_CHOOSE);
|
||||||
@ -1023,16 +1023,16 @@ void ui_menu_rgb_ui::inkey_special(const ui_menu_event *m_event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui_menu_palette_sel::palcolor ui_menu_palette_sel::m_palette[] = {
|
ui_menu_palette_sel::palcolor ui_menu_palette_sel::m_palette[] = {
|
||||||
{ "White", "FFFFFFFF" },
|
{ __("White"), "FFFFFFFF" },
|
||||||
{ "Silver", "FFC0C0C0" },
|
{ __("Silver"), "FFC0C0C0" },
|
||||||
{ "Gray", "FF808080" },
|
{ __("Gray"), "FF808080" },
|
||||||
{ "Black", "FF000000" },
|
{ __("Black"), "FF000000" },
|
||||||
{ "Red", "FFFF0000" },
|
{ __("Red"), "FFFF0000" },
|
||||||
{ "Orange", "FFFFA500" },
|
{ __("Orange"), "FFFFA500" },
|
||||||
{ "Yellow", "FFFFFF00" },
|
{ __("Yellow"), "FFFFFF00" },
|
||||||
{ "Green", "FF00FF00" },
|
{ __("Green"), "FF00FF00" },
|
||||||
{ "Blue", "FF0000FF" },
|
{ __("Blue"), "FF0000FF" },
|
||||||
{ "Violet", "FF8F00FF" }
|
{ __("Violet"), "FF8F00FF" }
|
||||||
};
|
};
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@ -1078,7 +1078,7 @@ void ui_menu_palette_sel::handle()
|
|||||||
void ui_menu_palette_sel::populate()
|
void ui_menu_palette_sel::populate()
|
||||||
{
|
{
|
||||||
for (int x = 0; x < ARRAY_LENGTH(m_palette); ++x)
|
for (int x = 0; x < ARRAY_LENGTH(m_palette); ++x)
|
||||||
item_append(m_palette[x].name, m_palette[x].argb, MENU_FLAG_UI_PALETTE, (void *)(FPTR)(x + 1));
|
item_append(_(m_palette[x].name), m_palette[x].argb, MENU_FLAG_UI_PALETTE, (void *)(FPTR)(x + 1));
|
||||||
|
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
||||||
}
|
}
|
||||||
|
@ -35,21 +35,21 @@ ui_menu_display_options::video_modes ui_menu_display_options::m_video = {
|
|||||||
|
|
||||||
ui_menu_display_options::dspl_option ui_menu_display_options::m_options[] = {
|
ui_menu_display_options::dspl_option ui_menu_display_options::m_options[] = {
|
||||||
{ 0, nullptr, nullptr },
|
{ 0, nullptr, nullptr },
|
||||||
{ 0, "Video Mode", OSDOPTION_VIDEO },
|
{ 0, __("Video Mode"), OSDOPTION_VIDEO },
|
||||||
#if defined(UI_WINDOWS) && !defined(UI_SDL)
|
#if defined(UI_WINDOWS) && !defined(UI_SDL)
|
||||||
{ 0, "Hardware Stretch", WINOPTION_HWSTRETCH },
|
{ 0, __("Hardware Stretch"), WINOPTION_HWSTRETCH },
|
||||||
{ 0, "Triple Buffering", WINOPTION_TRIPLEBUFFER },
|
{ 0, __("Triple Buffering"), WINOPTION_TRIPLEBUFFER },
|
||||||
{ 0, "HLSL", WINOPTION_HLSL_ENABLE },
|
{ 0, __("HLSL"), WINOPTION_HLSL_ENABLE },
|
||||||
#endif
|
#endif
|
||||||
{ 0, "GLSL", OSDOPTION_GL_GLSL },
|
{ 0, __("GLSL"), OSDOPTION_GL_GLSL },
|
||||||
{ 0, "Bilinear Filtering", OSDOPTION_FILTER },
|
{ 0, __("Bilinear Filtering"), OSDOPTION_FILTER },
|
||||||
{ 0, "Bitmap Prescaling", OSDOPTION_PRESCALE },
|
{ 0, __("Bitmap Prescaling"), OSDOPTION_PRESCALE },
|
||||||
{ 0, "Multi-Threaded Rendering", OSDOPTION_MULTITHREADING },
|
{ 0, __("Multi-Threaded Rendering"), OSDOPTION_MULTITHREADING },
|
||||||
{ 0, "Window Mode", OSDOPTION_WINDOW },
|
{ 0, __("Window Mode"), OSDOPTION_WINDOW },
|
||||||
{ 0, "Enforce Aspect Ratio", OSDOPTION_KEEPASPECT },
|
{ 0, __("Enforce Aspect Ratio"), OSDOPTION_KEEPASPECT },
|
||||||
{ 0, "Start Out Maximized", OSDOPTION_MAXIMIZE },
|
{ 0, __("Start Out Maximized"), OSDOPTION_MAXIMIZE },
|
||||||
{ 0, "Synchronized Refresh", OSDOPTION_SYNCREFRESH },
|
{ 0, __("Synchronized Refresh"), OSDOPTION_SYNCREFRESH },
|
||||||
{ 0, "Wait Vertical Sync", OSDOPTION_WAITVSYNC }
|
{ 0, __("Wait Vertical Sync"), OSDOPTION_WAITVSYNC }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -176,17 +176,17 @@ void ui_menu_display_options::populate()
|
|||||||
// add video mode option
|
// add video mode option
|
||||||
std::string v_text(m_video[m_list[m_options[1].status]]);
|
std::string v_text(m_video[m_list[m_options[1].status]]);
|
||||||
UINT32 arrow_flags = get_arrow_flags(0, m_list.size() - 1, m_options[1].status);
|
UINT32 arrow_flags = get_arrow_flags(0, m_list.size() - 1, m_options[1].status);
|
||||||
item_append(m_options[1].description, v_text.c_str(), arrow_flags, (void *)(FPTR)1);
|
item_append(_(m_options[1].description), v_text.c_str(), arrow_flags, (void *)(FPTR)1);
|
||||||
|
|
||||||
// add options items
|
// add options items
|
||||||
for (int opt = 2; opt < ARRAY_LENGTH(m_options); ++opt)
|
for (int opt = 2; opt < ARRAY_LENGTH(m_options); ++opt)
|
||||||
if (strcmp(m_options[opt].option, OSDOPTION_PRESCALE) != 0)
|
if (strcmp(m_options[opt].option, OSDOPTION_PRESCALE) != 0)
|
||||||
item_append(m_options[opt].description, m_options[opt].status ? "On" : "Off",
|
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);
|
m_options[opt].status ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)opt);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(1, 3, m_options[opt].status);
|
arrow_flags = get_arrow_flags(1, 3, m_options[opt].status);
|
||||||
item_append(m_options[opt].description, string_format("%d", m_options[opt].status).c_str(), arrow_flags, (void *)(FPTR)opt);
|
item_append(_(m_options[opt].description), string_format("%d", m_options[opt].status).c_str(), arrow_flags, (void *)(FPTR)opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
||||||
|
@ -156,10 +156,10 @@ ui_menu_confirm_save_as::~ui_menu_confirm_save_as()
|
|||||||
|
|
||||||
void ui_menu_confirm_save_as::populate()
|
void ui_menu_confirm_save_as::populate()
|
||||||
{
|
{
|
||||||
item_append("File Already Exists - Override?", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(_("File Already Exists - Override?"), nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
item_append("No", nullptr, 0, ITEMREF_NO);
|
item_append(_("No"), nullptr, 0, ITEMREF_NO);
|
||||||
item_append("Yes", nullptr, 0, ITEMREF_YES);
|
item_append(_("Yes"), nullptr, 0, ITEMREF_YES);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
@ -268,19 +268,19 @@ void ui_menu_file_create::populate()
|
|||||||
{
|
{
|
||||||
new_image_name = m_filename_buffer;
|
new_image_name = m_filename_buffer;
|
||||||
}
|
}
|
||||||
item_append("New Image Name:", new_image_name, 0, ITEMREF_NEW_IMAGE_NAME);
|
item_append(_("New Image Name:"), new_image_name, 0, ITEMREF_NEW_IMAGE_NAME);
|
||||||
|
|
||||||
// do we support multiple formats?
|
// do we support multiple formats?
|
||||||
if (ENABLE_FORMATS) format = m_image->formatlist();
|
if (ENABLE_FORMATS) format = m_image->formatlist();
|
||||||
if (ENABLE_FORMATS && (format != nullptr))
|
if (ENABLE_FORMATS && (format != nullptr))
|
||||||
{
|
{
|
||||||
item_append("Image Format:", m_current_format->description(), 0, ITEMREF_FORMAT);
|
item_append(_("Image Format:"), m_current_format->description(), 0, ITEMREF_FORMAT);
|
||||||
m_current_format = format;
|
m_current_format = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
// finish up the menu
|
// finish up the menu
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
||||||
item_append("Create", nullptr, 0, ITEMREF_CREATE);
|
item_append(_("Create"), nullptr, 0, ITEMREF_CREATE);
|
||||||
|
|
||||||
customtop = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER;
|
customtop = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER;
|
||||||
}
|
}
|
||||||
@ -311,7 +311,7 @@ void ui_menu_file_create::handle()
|
|||||||
ui_menu::stack_pop(machine());
|
ui_menu::stack_pop(machine());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
machine().ui().popup_time(1, "Please enter a file extension too");
|
machine().ui().popup_time(1, "%s", _("Please enter a file extension too"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -499,15 +499,15 @@ void ui_menu_file_selector::append_entry_menu_item(const file_selector_entry *en
|
|||||||
switch(entry->type)
|
switch(entry->type)
|
||||||
{
|
{
|
||||||
case SELECTOR_ENTRY_TYPE_EMPTY:
|
case SELECTOR_ENTRY_TYPE_EMPTY:
|
||||||
text = "[empty slot]";
|
text = _("[empty slot]");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SELECTOR_ENTRY_TYPE_CREATE:
|
case SELECTOR_ENTRY_TYPE_CREATE:
|
||||||
text = "[create]";
|
text = _("[create]");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SELECTOR_ENTRY_TYPE_SOFTWARE_LIST:
|
case SELECTOR_ENTRY_TYPE_SOFTWARE_LIST:
|
||||||
text = "[software list]";
|
text = _("[software list]");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SELECTOR_ENTRY_TYPE_DRIVE:
|
case SELECTOR_ENTRY_TYPE_DRIVE:
|
||||||
@ -799,7 +799,7 @@ ui_menu_select_format::~ui_menu_select_format()
|
|||||||
|
|
||||||
void ui_menu_select_format::populate()
|
void ui_menu_select_format::populate()
|
||||||
{
|
{
|
||||||
item_append("Select image format", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(_("Select image format"), nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
for (int i = 0; i < m_total_usable; i++)
|
for (int i = 0; i < m_total_usable; i++)
|
||||||
{
|
{
|
||||||
const floppy_image_format_t *fmt = m_formats[i];
|
const floppy_image_format_t *fmt = m_formats[i];
|
||||||
@ -859,12 +859,12 @@ ui_menu_select_rw::~ui_menu_select_rw()
|
|||||||
|
|
||||||
void ui_menu_select_rw::populate()
|
void ui_menu_select_rw::populate()
|
||||||
{
|
{
|
||||||
item_append("Select access mode", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(_("Select access mode"), nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
item_append("Read-only", nullptr, 0, (void *)READONLY);
|
item_append(_("Read-only"), nullptr, 0, (void *)READONLY);
|
||||||
if (m_can_in_place)
|
if (m_can_in_place)
|
||||||
item_append("Read-write", nullptr, 0, (void *)READWRITE);
|
item_append(_("Read-write"), nullptr, 0, (void *)READWRITE);
|
||||||
item_append("Read this image, write to another image", nullptr, 0, (void *)WRITE_OTHER);
|
item_append(_("Read this image, write to another image"), nullptr, 0, (void *)WRITE_OTHER);
|
||||||
item_append("Read this image, write to diff", nullptr, 0, (void *)WRITE_DIFF);
|
item_append(_("Read this image, write to diff"), nullptr, 0, (void *)WRITE_DIFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ void ui_menu_control_device_image::test_create(bool &can_create, bool &need_conf
|
|||||||
|
|
||||||
case ENTTYPE_DIR:
|
case ENTTYPE_DIR:
|
||||||
/* a directory exists here - we can't save over it */
|
/* a directory exists here - we can't save over it */
|
||||||
machine().ui().popup_time(5, "Cannot save over directory");
|
machine().ui().popup_time(5, "%s", _("Cannot save over directory"));
|
||||||
can_create = false;
|
can_create = false;
|
||||||
need_confirm = false;
|
need_confirm = false;
|
||||||
break;
|
break;
|
||||||
@ -146,7 +146,7 @@ void ui_menu_control_device_image::load_software_part()
|
|||||||
hook_load(temp_name, true);
|
hook_load(temp_name, true);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
machine().popmessage("The software selected is missing one or more required ROM or CHD images. Please select a different one.");
|
machine().popmessage(_("The software selected is missing one or more required ROM or CHD images. Please select a different one."));
|
||||||
state = SELECT_SOFTLIST;
|
state = SELECT_SOFTLIST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,10 +95,10 @@ void ui_menu_image_info::image_info(device_image_interface *image)
|
|||||||
switch (image->supported())
|
switch (image->supported())
|
||||||
{
|
{
|
||||||
case SOFTWARE_SUPPORTED_NO:
|
case SOFTWARE_SUPPORTED_NO:
|
||||||
item_append("Not supported", "", MENU_FLAG_DISABLE, nullptr);
|
item_append(_("Not supported"), "", MENU_FLAG_DISABLE, nullptr);
|
||||||
break;
|
break;
|
||||||
case SOFTWARE_SUPPORTED_PARTIAL:
|
case SOFTWARE_SUPPORTED_PARTIAL:
|
||||||
item_append("Partially supported", "", MENU_FLAG_DISABLE, nullptr);
|
item_append(_("Partially supported"), "", MENU_FLAG_DISABLE, nullptr);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -106,6 +106,6 @@ void ui_menu_image_info::image_info(device_image_interface *image)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
item_append(image->brief_instance_name(), "[empty]", 0, nullptr);
|
item_append(image->brief_instance_name(), _("[empty]"), 0, nullptr);
|
||||||
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ ui_menu_pty_info::~ui_menu_pty_info()
|
|||||||
|
|
||||||
void ui_menu_pty_info::populate()
|
void ui_menu_pty_info::populate()
|
||||||
{
|
{
|
||||||
item_append("Pseudo terminals", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(_("Pseudo terminals"), nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
|
|
||||||
pty_interface_iterator iter(machine().root_device());
|
pty_interface_iterator iter(machine().root_device());
|
||||||
@ -32,7 +32,7 @@ void ui_menu_pty_info::populate()
|
|||||||
if (pty->is_open()) {
|
if (pty->is_open()) {
|
||||||
item_append(port_name , pty->slave_name() , MENU_FLAG_DISABLE , nullptr);
|
item_append(port_name , pty->slave_name() , MENU_FLAG_DISABLE , nullptr);
|
||||||
} else {
|
} else {
|
||||||
item_append(port_name , "[failed]" , MENU_FLAG_DISABLE , nullptr);
|
item_append(port_name , _("[failed]") , MENU_FLAG_DISABLE , nullptr);
|
||||||
}
|
}
|
||||||
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append("", nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
}
|
}
|
||||||
|
@ -49,14 +49,14 @@ void ui_menu_input_groups::populate()
|
|||||||
int player;
|
int player;
|
||||||
|
|
||||||
/* build up the menu */
|
/* build up the menu */
|
||||||
item_append("User Interface", nullptr, 0, (void *)(IPG_UI + 1));
|
item_append(_("User Interface"), nullptr, 0, (void *)(IPG_UI + 1));
|
||||||
for (player = 0; player < MAX_PLAYERS; player++)
|
for (player = 0; player < MAX_PLAYERS; player++)
|
||||||
{
|
{
|
||||||
char buffer[40];
|
char buffer[40];
|
||||||
sprintf(buffer, "Player %d Controls", player + 1);
|
sprintf(buffer, "Player %d Controls", player + 1);
|
||||||
item_append(buffer, nullptr, 0, (void *)(FPTR)(IPG_PLAYER1 + player + 1));
|
item_append(buffer, nullptr, 0, (void *)(FPTR)(IPG_PLAYER1 + player + 1));
|
||||||
}
|
}
|
||||||
item_append("Other Controls", nullptr, 0, (void *)(FPTR)(IPG_OTHER + 1));
|
item_append(_("Other Controls"), nullptr, 0, (void *)(FPTR)(IPG_OTHER + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_menu_input_groups::~ui_menu_input_groups()
|
ui_menu_input_groups::~ui_menu_input_groups()
|
||||||
@ -622,7 +622,7 @@ void ui_menu_settings::populate()
|
|||||||
custombottom = dipcount ? dipcount * (DIP_SWITCH_HEIGHT + DIP_SWITCH_SPACING) + DIP_SWITCH_SPACING : 0;
|
custombottom = dipcount ? dipcount * (DIP_SWITCH_HEIGHT + DIP_SWITCH_SPACING) + DIP_SWITCH_SPACING : 0;
|
||||||
|
|
||||||
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
|
||||||
item_append("Reset", nullptr, 0, (void *)1);
|
item_append(_("Reset"), nullptr, 0, (void *)1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_menu_settings::~ui_menu_settings()
|
ui_menu_settings::~ui_menu_settings()
|
||||||
|
@ -40,29 +40,29 @@ struct ui_arts_info
|
|||||||
|
|
||||||
static const ui_arts_info arts_info[] =
|
static const ui_arts_info arts_info[] =
|
||||||
{
|
{
|
||||||
{ "Snapshots", OPTION_SNAPSHOT_DIRECTORY, "snap" },
|
{ __("Snapshots"), OPTION_SNAPSHOT_DIRECTORY, "snap" },
|
||||||
{ "Cabinets", OPTION_CABINETS_PATH, "cabinets;cabdevs" },
|
{ __("Cabinets"), OPTION_CABINETS_PATH, "cabinets;cabdevs" },
|
||||||
{ "Control Panels", OPTION_CPANELS_PATH, "cpanel" },
|
{ __("Control Panels"), OPTION_CPANELS_PATH, "cpanel" },
|
||||||
{ "PCBs", OPTION_PCBS_PATH, "pcb" },
|
{ __("PCBs"), OPTION_PCBS_PATH, "pcb" },
|
||||||
{ "Flyers", OPTION_FLYERS_PATH, "flyers" },
|
{ __("Flyers"), OPTION_FLYERS_PATH, "flyers" },
|
||||||
{ "Titles", OPTION_TITLES_PATH, "titles" },
|
{ __("Titles"), OPTION_TITLES_PATH, "titles" },
|
||||||
{ "Ends", OPTION_ENDS_PATH, "ends" },
|
{ __("Ends"), OPTION_ENDS_PATH, "ends" },
|
||||||
{ "Artwork Preview", OPTION_ARTPREV_PATH, "artwork preview" },
|
{ __("Artwork Preview"), OPTION_ARTPREV_PATH, "artwork preview" },
|
||||||
{ "Bosses", OPTION_BOSSES_PATH, "bosses" },
|
{ __("Bosses"), OPTION_BOSSES_PATH, "bosses" },
|
||||||
{ "Logos", OPTION_LOGOS_PATH, "logo" },
|
{ __("Logos"), OPTION_LOGOS_PATH, "logo" },
|
||||||
{ "Versus", OPTION_VERSUS_PATH, "versus" },
|
{ __("Versus"), OPTION_VERSUS_PATH, "versus" },
|
||||||
{ "Game Over", OPTION_GAMEOVER_PATH, "gameover" },
|
{ __("Game Over"), OPTION_GAMEOVER_PATH, "gameover" },
|
||||||
{ "HowTo", OPTION_HOWTO_PATH, "howto" },
|
{ __("HowTo"), OPTION_HOWTO_PATH, "howto" },
|
||||||
{ "Scores", OPTION_SCORES_PATH, "scores" },
|
{ __("Scores"), OPTION_SCORES_PATH, "scores" },
|
||||||
{ "Select", OPTION_SELECT_PATH, "select" },
|
{ __("Select"), OPTION_SELECT_PATH, "select" },
|
||||||
{ "Marquees", OPTION_MARQUEES_PATH, "marquees" },
|
{ __("Marquees"), OPTION_MARQUEES_PATH, "marquees" },
|
||||||
{ nullptr }
|
{ nullptr }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *hover_msg[] = {
|
static const char *hover_msg[] = {
|
||||||
"Add or remove favorites",
|
__("Add or remove favorites"),
|
||||||
"Export displayed list to file",
|
__("Export displayed list to file"),
|
||||||
"Show DATs view",
|
__("Show DATs view"),
|
||||||
};
|
};
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@ -671,13 +671,13 @@ void ui_menu::draw(bool customonly, bool noimage, bool noinput)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// customize subitem text color
|
// customize subitem text color
|
||||||
if (!core_stricmp(subitem_text, "On"))
|
if (!core_stricmp(subitem_text, _("On")))
|
||||||
fgcolor2 = rgb_t(0xff,0x00,0xff,0x00);
|
fgcolor2 = rgb_t(0xff,0x00,0xff,0x00);
|
||||||
|
|
||||||
if (!core_stricmp(subitem_text, "Off"))
|
if (!core_stricmp(subitem_text, _("Off")))
|
||||||
fgcolor2 = rgb_t(0xff,0xff,0x00,0x00);
|
fgcolor2 = rgb_t(0xff,0xff,0x00,0x00);
|
||||||
|
|
||||||
if (!core_stricmp(subitem_text, "Auto"))
|
if (!core_stricmp(subitem_text, _("Auto")))
|
||||||
fgcolor2 = rgb_t(0xff,0xff,0xff,0x00);
|
fgcolor2 = rgb_t(0xff,0xff,0xff,0x00);
|
||||||
|
|
||||||
// draw the subitem right-justified
|
// draw the subitem right-justified
|
||||||
@ -1645,7 +1645,7 @@ void ui_menu::draw_select_game(bool noinput)
|
|||||||
void ui_menu::get_title_search(std::string &snaptext, std::string &searchstr)
|
void ui_menu::get_title_search(std::string &snaptext, std::string &searchstr)
|
||||||
{
|
{
|
||||||
// get arts title text
|
// get arts title text
|
||||||
snaptext.assign(arts_info[ui_globals::curimage_view].title);
|
snaptext.assign(_(arts_info[ui_globals::curimage_view].title));
|
||||||
|
|
||||||
// get search path
|
// get search path
|
||||||
if (ui_globals::curimage_view == SNAPSHOT_VIEW)
|
if (ui_globals::curimage_view == SNAPSHOT_VIEW)
|
||||||
@ -2072,8 +2072,8 @@ float ui_menu::draw_right_box_title(float x1, float y1, float x2, float y2)
|
|||||||
container->add_line(x1 + midl, y1, x1 + midl, y1 + line_height, UI_LINE_WIDTH, UI_BORDER_COLOR, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
|
container->add_line(x1 + midl, y1, x1 + midl, y1 + line_height, UI_LINE_WIDTH, UI_BORDER_COLOR, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
|
||||||
|
|
||||||
std::string buffer[RP_LAST + 1];
|
std::string buffer[RP_LAST + 1];
|
||||||
buffer[RP_IMAGES].assign("Images");
|
buffer[RP_IMAGES] = _("Images");
|
||||||
buffer[RP_INFOS].assign("Infos");
|
buffer[RP_INFOS] = _("Infos");
|
||||||
|
|
||||||
for (int cells = RP_IMAGES; cells <= RP_INFOS; cells++)
|
for (int cells = RP_IMAGES; cells <= RP_INFOS; cells++)
|
||||||
{
|
{
|
||||||
@ -2135,7 +2135,7 @@ std::string ui_menu::arts_render_common(float origx1, float origy1, float origx2
|
|||||||
|
|
||||||
for (int x = FIRST_VIEW; x < LAST_VIEW; x++)
|
for (int x = FIRST_VIEW; x < LAST_VIEW; x++)
|
||||||
{
|
{
|
||||||
mui.draw_text_full(container, arts_info[x].title, origx1, origy1, origx2 - origx1, JUSTIFY_CENTER,
|
mui.draw_text_full(container, _(arts_info[x].title), origx1, origy1, origx2 - origx1, JUSTIFY_CENTER,
|
||||||
WRAP_TRUNCATE, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &txt_lenght, nullptr);
|
WRAP_TRUNCATE, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &txt_lenght, nullptr);
|
||||||
txt_lenght += 0.01f;
|
txt_lenght += 0.01f;
|
||||||
title_size = MAX(txt_lenght, title_size);
|
title_size = MAX(txt_lenght, title_size);
|
||||||
@ -2214,7 +2214,7 @@ void ui_menu::draw_toolbar(float x1, float y1, float x2, float y2, bool software
|
|||||||
hover = HOVER_B_FAV + z;
|
hover = HOVER_B_FAV + z;
|
||||||
color = ARGB_WHITE;
|
color = ARGB_WHITE;
|
||||||
float ypos = y2 + machine().ui().get_line_height() + 2.0f * UI_BOX_TB_BORDER;
|
float ypos = y2 + machine().ui().get_line_height() + 2.0f * UI_BOX_TB_BORDER;
|
||||||
mui.draw_text_box(container, hover_msg[z], JUSTIFY_CENTER, 0.5f, ypos, UI_BACKGROUND_COLOR);
|
mui.draw_text_box(container, _(hover_msg[z]), JUSTIFY_CENTER, 0.5f, ypos, UI_BACKGROUND_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
container->add_quad(x1, y1, x2, y2, color, t_texture[z], PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
|
container->add_quad(x1, y1, x2, y2, color, t_texture[z], PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
|
||||||
|
@ -223,12 +223,12 @@ void ui_menu_game_options::populate()
|
|||||||
int afile = inif.current_file;
|
int afile = inif.current_file;
|
||||||
|
|
||||||
arrow_flags = get_arrow_flags(0, inif.ini_index.size() - 1, afile);
|
arrow_flags = get_arrow_flags(0, inif.ini_index.size() - 1, afile);
|
||||||
fbuff = " ^!File";
|
fbuff = _(" ^!File");
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), inif.actual_file().c_str(), arrow_flags, (void *)(FPTR)FILE_CATEGORY_FILTER);
|
item_append(fbuff.c_str(), inif.actual_file().c_str(), arrow_flags, (void *)(FPTR)FILE_CATEGORY_FILTER);
|
||||||
|
|
||||||
arrow_flags = get_arrow_flags(0, inif.ini_index[afile].category.size() - 1, inif.current_category);
|
arrow_flags = get_arrow_flags(0, inif.ini_index[afile].category.size() - 1, inif.current_category);
|
||||||
fbuff = " ^!Category";
|
fbuff = _(" ^!Category");
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), inif.actual_category().c_str(), arrow_flags, (void *)(FPTR)CATEGORY_FILTER);
|
item_append(fbuff.c_str(), inif.actual_category().c_str(), arrow_flags, (void *)(FPTR)CATEGORY_FILTER);
|
||||||
}
|
}
|
||||||
@ -236,7 +236,7 @@ void ui_menu_game_options::populate()
|
|||||||
else if (main_filters::actual == FILTER_MANUFACTURER && c_mnfct::ui.size() > 0)
|
else if (main_filters::actual == FILTER_MANUFACTURER && c_mnfct::ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, c_mnfct::ui.size() - 1, c_mnfct::actual);
|
arrow_flags = get_arrow_flags(0, c_mnfct::ui.size() - 1, c_mnfct::actual);
|
||||||
fbuff = "^!Manufacturer";
|
fbuff = _("^!Manufacturer");
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), c_mnfct::ui[c_mnfct::actual].c_str(), arrow_flags, (void *)(FPTR)MANUFACT_CAT_FILTER);
|
item_append(fbuff.c_str(), c_mnfct::ui[c_mnfct::actual].c_str(), arrow_flags, (void *)(FPTR)MANUFACT_CAT_FILTER);
|
||||||
}
|
}
|
||||||
@ -244,14 +244,14 @@ void ui_menu_game_options::populate()
|
|||||||
else if (main_filters::actual == FILTER_YEAR && c_year::ui.size() > 0)
|
else if (main_filters::actual == FILTER_YEAR && c_year::ui.size() > 0)
|
||||||
{
|
{
|
||||||
arrow_flags = get_arrow_flags(0, c_year::ui.size() - 1, c_year::actual);
|
arrow_flags = get_arrow_flags(0, c_year::ui.size() - 1, c_year::actual);
|
||||||
fbuff.assign("^!Year");
|
fbuff.assign(_("^!Year"));
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), c_year::ui[c_year::actual].c_str(), arrow_flags, (void *)(FPTR)YEAR_CAT_FILTER);
|
item_append(fbuff.c_str(), c_year::ui[c_year::actual].c_str(), arrow_flags, (void *)(FPTR)YEAR_CAT_FILTER);
|
||||||
}
|
}
|
||||||
// add custom subitem
|
// add custom subitem
|
||||||
else if (main_filters::actual == FILTER_CUSTOM)
|
else if (main_filters::actual == FILTER_CUSTOM)
|
||||||
{
|
{
|
||||||
fbuff = "^!Setup custom filter";
|
fbuff = _("^!Setup custom filter");
|
||||||
convert_command_glyph(fbuff);
|
convert_command_glyph(fbuff);
|
||||||
item_append(fbuff.c_str(), nullptr, 0, (void *)(FPTR)CUSTOM_FILTER);
|
item_append(fbuff.c_str(), nullptr, 0, (void *)(FPTR)CUSTOM_FILTER);
|
||||||
}
|
}
|
||||||
|
@ -377,9 +377,8 @@ void ui_menu_select_software::handle()
|
|||||||
|
|
||||||
// if we're in an error state, overlay an error message
|
// if we're in an error state, overlay an error message
|
||||||
if (ui_error)
|
if (ui_error)
|
||||||
machine().ui().draw_text_box(container,
|
machine().ui().draw_text_box(container, _("The selected software is missing one or more required files. "
|
||||||
"The selected software is missing one or more required files. "
|
"Please select a different software.\n\nPress any key (except ESC) to continue."),
|
||||||
"Please select a different software.\n\nPress any key (except ESC) to continue.",
|
|
||||||
JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR);
|
JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR);
|
||||||
|
|
||||||
// handle filters selection from key shortcuts
|
// handle filters selection from key shortcuts
|
||||||
@ -565,16 +564,16 @@ void ui_menu_select_software::build_software_list()
|
|||||||
if (instance_name == nullptr || type_name == nullptr)
|
if (instance_name == nullptr || type_name == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (swinfo->shortname()) tmpmatches.shortname = swinfo->shortname();
|
tmpmatches.shortname = strensure(swinfo->shortname());
|
||||||
if (swinfo->longname()) tmpmatches.longname = swinfo->longname();
|
tmpmatches.longname = strensure(swinfo->longname());
|
||||||
if (swinfo->parentname()) tmpmatches.parentname = swinfo->parentname();
|
tmpmatches.parentname = strensure(swinfo->parentname());
|
||||||
if (swinfo->year()) tmpmatches.year = swinfo->year();
|
tmpmatches.year = strensure(swinfo->year());
|
||||||
if (swinfo->publisher()) tmpmatches.publisher = swinfo->publisher();
|
tmpmatches.publisher = strensure(swinfo->publisher());
|
||||||
tmpmatches.supported = swinfo->supported();
|
tmpmatches.supported = swinfo->supported();
|
||||||
if (part->name()) tmpmatches.part = part->name();
|
tmpmatches.part = strensure(part->name());
|
||||||
tmpmatches.driver = m_driver;
|
tmpmatches.driver = m_driver;
|
||||||
if (swlist->list_name()) tmpmatches.listname = swlist->list_name();
|
tmpmatches.listname = strensure(swlist->list_name());
|
||||||
if (part->interface()) tmpmatches.interface = part->interface();
|
tmpmatches.interface = strensure(part->interface());
|
||||||
tmpmatches.startempty = 0;
|
tmpmatches.startempty = 0;
|
||||||
tmpmatches.parentlongname.clear();
|
tmpmatches.parentlongname.clear();
|
||||||
tmpmatches.usage.clear();
|
tmpmatches.usage.clear();
|
||||||
|
@ -62,18 +62,18 @@ void ui_menu_software_parts::populate()
|
|||||||
software_part_menu_entry *entry1 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry1));
|
software_part_menu_entry *entry1 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry1));
|
||||||
entry1->type = T_EMPTY;
|
entry1->type = T_EMPTY;
|
||||||
entry1->part = nullptr;
|
entry1->part = nullptr;
|
||||||
item_append("[empty slot]", nullptr, 0, entry1);
|
item_append(_("[empty slot]"), nullptr, 0, entry1);
|
||||||
|
|
||||||
software_part_menu_entry *entry2 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry2));
|
software_part_menu_entry *entry2 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry2));
|
||||||
entry2->type = T_FMGR;
|
entry2->type = T_FMGR;
|
||||||
entry2->part = nullptr;
|
entry2->part = nullptr;
|
||||||
item_append("[file manager]", nullptr, 0, entry2);
|
item_append(_("[file manager]"), nullptr, 0, entry2);
|
||||||
|
|
||||||
|
|
||||||
software_part_menu_entry *entry3 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry3));
|
software_part_menu_entry *entry3 = (software_part_menu_entry *) m_pool_alloc(sizeof(*entry3));
|
||||||
entry3->type = T_SWLIST;
|
entry3->type = T_SWLIST;
|
||||||
entry3->part = nullptr;
|
entry3->part = nullptr;
|
||||||
item_append("[software list]", nullptr, 0, entry3);
|
item_append(_("[software list]"), nullptr, 0, entry3);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const software_part *swpart = m_info->first_part(); swpart != nullptr; swpart = swpart->next())
|
for (const software_part *swpart = m_info->first_part(); swpart != nullptr; swpart = swpart->next())
|
||||||
@ -232,7 +232,7 @@ void ui_menu_software_list::populate()
|
|||||||
append_software_entry(swinfo);
|
append_software_entry(swinfo);
|
||||||
|
|
||||||
// add an entry to change ordering
|
// add an entry to change ordering
|
||||||
item_append("Switch Item Ordering", nullptr, 0, (void *)1);
|
item_append(_("Switch Item Ordering"), nullptr, 0, (void *)1);
|
||||||
|
|
||||||
// append all of the menu entries
|
// append all of the menu entries
|
||||||
for (entry_info *entry = m_entrylist; entry != nullptr; entry = entry->next)
|
for (entry_info *entry = m_entrylist; entry != nullptr; entry = entry->next)
|
||||||
@ -265,7 +265,7 @@ void ui_menu_software_list::handle()
|
|||||||
|
|
||||||
// reload the menu with the new order
|
// reload the menu with the new order
|
||||||
reset(UI_MENU_RESET_REMEMBER_REF);
|
reset(UI_MENU_RESET_REMEMBER_REF);
|
||||||
machine().popmessage("Switched Order: entries now ordered by %s", m_ordered_by_shortname ? "shortname" : "description");
|
machine().popmessage(_("Switched Order: entries now ordered by %s"), m_ordered_by_shortname ? _("shortname") : _("description"));
|
||||||
}
|
}
|
||||||
// handle selections
|
// handle selections
|
||||||
else if (event->iptkey == IPT_UI_SELECT)
|
else if (event->iptkey == IPT_UI_SELECT)
|
||||||
@ -433,7 +433,7 @@ void ui_menu_software::populate()
|
|||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
if (!have_compatible)
|
if (!have_compatible)
|
||||||
item_append("[compatible lists]", nullptr, MENU_FLAG_DISABLE, nullptr);
|
item_append(_("[compatible lists]"), nullptr, MENU_FLAG_DISABLE, nullptr);
|
||||||
item_append(swlistdev->description(), nullptr, 0, (void *)swlistdev);
|
item_append(swlistdev->description(), nullptr, 0, (void *)swlistdev);
|
||||||
}
|
}
|
||||||
have_compatible = true;
|
have_compatible = true;
|
||||||
|
@ -81,29 +81,29 @@ void ui_menu_tape_control::populate()
|
|||||||
state = current_device()->get_state();
|
state = current_device()->get_state();
|
||||||
item_append(
|
item_append(
|
||||||
(state & CASSETTE_MASK_UISTATE) == CASSETTE_STOPPED
|
(state & CASSETTE_MASK_UISTATE) == CASSETTE_STOPPED
|
||||||
? "stopped"
|
? _("stopped")
|
||||||
: ((state & CASSETTE_MASK_UISTATE) == CASSETTE_PLAY
|
: ((state & CASSETTE_MASK_UISTATE) == CASSETTE_PLAY
|
||||||
? ((state & CASSETTE_MASK_MOTOR) == CASSETTE_MOTOR_ENABLED ? "playing" : "(playing)")
|
? ((state & CASSETTE_MASK_MOTOR) == CASSETTE_MOTOR_ENABLED ? _("playing") : _("(playing)"))
|
||||||
: ((state & CASSETTE_MASK_MOTOR) == CASSETTE_MOTOR_ENABLED ? "recording" : "(recording)")
|
: ((state & CASSETTE_MASK_MOTOR) == CASSETTE_MOTOR_ENABLED ? _("recording") : _("(recording)"))
|
||||||
),
|
),
|
||||||
timepos.c_str(),
|
timepos.c_str(),
|
||||||
tapeflags,
|
tapeflags,
|
||||||
TAPECMD_SLIDER);
|
TAPECMD_SLIDER);
|
||||||
|
|
||||||
// pause or stop
|
// pause or stop
|
||||||
item_append("Pause/Stop", nullptr, 0, TAPECMD_STOP);
|
item_append(_("Pause/Stop"), nullptr, 0, TAPECMD_STOP);
|
||||||
|
|
||||||
// play
|
// play
|
||||||
item_append("Play", nullptr, 0, TAPECMD_PLAY);
|
item_append(_("Play"), nullptr, 0, TAPECMD_PLAY);
|
||||||
|
|
||||||
// record
|
// record
|
||||||
item_append("Record", nullptr, 0, TAPECMD_RECORD);
|
item_append(_("Record"), nullptr, 0, TAPECMD_RECORD);
|
||||||
|
|
||||||
// rewind
|
// rewind
|
||||||
item_append("Rewind", nullptr, 0, TAPECMD_REWIND);
|
item_append(_("Rewind"), nullptr, 0, TAPECMD_REWIND);
|
||||||
|
|
||||||
// fast forward
|
// fast forward
|
||||||
item_append("Fast Forward", nullptr, 0, TAPECMD_FAST_FORWARD);
|
item_append(_("Fast Forward"), nullptr, 0, TAPECMD_FAST_FORWARD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user