diff options
author | 2021-10-09 12:16:17 +1100 | |
---|---|---|
committer | 2021-10-09 12:16:17 +1100 | |
commit | 38082ccbee749d650ccea886ae376a5d1dec337c (patch) | |
tree | 9ba9a900ba826bda58832834278025ced17f42f5 /src/frontend/mame/ui/info.cpp | |
parent | 34b3bf701098082feb9077db49987507962c1578 (diff) |
Overdue internal UI enhancements (#8674)
* frontend: Added support for message context to localisations.
* frontend: Added string_view versions of the message lookup functions.
* frontend: Added a few more folder options to the internal UI.
* emu/softlist.cpp: Use more appropriate containers.
* Switched to Python 3 by default - this will become a requirement.
* Updated msgfmt.py for message context support.
* frontend: Show all software item info in the internal UI.
* frontend: Search alternate titles in software selection menu.
* 3rdparty/utf8proc: Updated to v2.6.1 (has several fixes).
* frontend: Added software filters for common info fields.
* frontend: Allow UI manager to hold onto persistent session data.
* frontend: Cache software lists for eight machines.
* frontend: Added support for loading localised system names.
* frontend: Add UI for selecting localised system names.
Diffstat (limited to 'src/frontend/mame/ui/info.cpp')
-rw-r--r-- | src/frontend/mame/ui/info.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/frontend/mame/ui/info.cpp b/src/frontend/mame/ui/info.cpp index 1c9e649dce7..e3f557ed54e 100644 --- a/src/frontend/mame/ui/info.cpp +++ b/src/frontend/mame/ui/info.cpp @@ -28,27 +28,27 @@ constexpr machine_flags::type MACHINE_WARNINGS = machine_flags::NO_COCKTAIL | m constexpr machine_flags::type MACHINE_BTANB = machine_flags::NO_SOUND_HW | machine_flags::IS_INCOMPLETE; constexpr std::pair<device_t::feature_type, char const *> FEATURE_NAMES[] = { - { device_t::feature::PROTECTION, __("protection") }, - { device_t::feature::TIMING, __("timing") }, - { device_t::feature::GRAPHICS, __("graphics") }, - { device_t::feature::PALETTE, __("color palette") }, - { device_t::feature::SOUND, __("sound") }, - { device_t::feature::CAPTURE, __("capture hardware") }, - { device_t::feature::CAMERA, __("camera") }, - { device_t::feature::MICROPHONE, __("microphone") }, - { device_t::feature::CONTROLS, __("controls") }, - { device_t::feature::KEYBOARD, __("keyboard") }, - { device_t::feature::MOUSE, __("mouse") }, - { device_t::feature::MEDIA, __("media") }, - { device_t::feature::DISK, __("disk") }, - { device_t::feature::PRINTER, __("printer") }, - { device_t::feature::TAPE, __("magnetic tape") }, - { device_t::feature::PUNCH, __("punch tape") }, - { device_t::feature::DRUM, __("magnetic drum") }, - { device_t::feature::ROM, __("solid state storage") }, - { device_t::feature::COMMS, __("communications") }, - { device_t::feature::LAN, __("LAN") }, - { device_t::feature::WAN, __("WAN") } }; + { device_t::feature::PROTECTION, N_p("emulation-feature", "protection") }, + { device_t::feature::TIMING, N_p("emulation-feature", "timing") }, + { device_t::feature::GRAPHICS, N_p("emulation-feature", "graphics") }, + { device_t::feature::PALETTE, N_p("emulation-feature", "color palette") }, + { device_t::feature::SOUND, N_p("emulation-feature", "sound") }, + { device_t::feature::CAPTURE, N_p("emulation-feature", "capture hardware") }, + { device_t::feature::CAMERA, N_p("emulation-feature", "camera") }, + { device_t::feature::MICROPHONE, N_p("emulation-feature", "microphone") }, + { device_t::feature::CONTROLS, N_p("emulation-feature", "controls") }, + { device_t::feature::KEYBOARD, N_p("emulation-feature", "keyboard") }, + { device_t::feature::MOUSE, N_p("emulation-feature", "mouse") }, + { device_t::feature::MEDIA, N_p("emulation-feature", "media") }, + { device_t::feature::DISK, N_p("emulation-feature", "disk") }, + { device_t::feature::PRINTER, N_p("emulation-feature", "printer") }, + { device_t::feature::TAPE, N_p("emulation-feature", "magnetic tape") }, + { device_t::feature::PUNCH, N_p("emulation-feature", "punch tape") }, + { device_t::feature::DRUM, N_p("emulation-feature", "magnetic drum") }, + { device_t::feature::ROM, N_p("emulation-feature", "solid state storage") }, + { device_t::feature::COMMS, N_p("emulation-feature", "communications") }, + { device_t::feature::LAN, N_p("emulation-feature", "LAN") }, + { device_t::feature::WAN, N_p("emulation-feature", "WAN") } }; } // anonymous namespace @@ -253,7 +253,7 @@ std::string machine_info::warnings_string() const { if (unemulated_features() & feature.first) { - util::stream_format(buf, first ? _("%s") : _(", %s"), _(feature.second)); + util::stream_format(buf, first ? _("%s") : _(", %s"), _("emulation-feature", feature.second)); first = false; } } @@ -269,7 +269,7 @@ std::string machine_info::warnings_string() const { if (imperfect_features() & feature.first) { - util::stream_format(buf, first ? _("%s") : _(", %s"), _(feature.second)); + util::stream_format(buf, first ? _("%s") : _(", %s"), _("emulation-feature", feature.second)); first = false; } } |