Skip to content

Commit

Permalink
Add i18n comments for the acronym IR
Browse files Browse the repository at this point in the history
In case you're wondering about the big reformatting in
HotkeyManager: It wasn't me, it was clang-format.
The only change I made was adding comments.
  • Loading branch information
JosJuice committed Apr 8, 2017
1 parent f41557b commit 2e0491d
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 108 deletions.
1 change: 1 addition & 0 deletions Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Wiimote::Wiimote(const unsigned int index)
m_buttons->controls.emplace_back(new ControllerEmu::Input(named_button));

// ir
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
groups.emplace_back(m_ir = new ControllerEmu::Cursor(_trans("IR")));

// swing
Expand Down
151 changes: 43 additions & 108 deletions Source/Core/Core/HotkeyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,134 +19,69 @@
#include "InputCommon/GCPadStatus.h"

const std::string hotkey_labels[] = {
_trans("Open"),
_trans("Change Disc"),
_trans("Refresh List"),
_trans("Toggle Pause"),
_trans("Stop"),
_trans("Reset"),
_trans("Toggle Fullscreen"),
_trans("Take Screenshot"),
_trans("Open"), _trans("Change Disc"), _trans("Refresh List"), _trans("Toggle Pause"),
_trans("Stop"), _trans("Reset"), _trans("Toggle Fullscreen"), _trans("Take Screenshot"),
_trans("Exit"),

_trans("Volume Down"),
_trans("Volume Up"),
_trans("Volume Toggle Mute"),
_trans("Volume Down"), _trans("Volume Up"), _trans("Volume Toggle Mute"),

_trans("Decrease Emulation Speed"),
_trans("Increase Emulation Speed"),
_trans("Decrease Emulation Speed"), _trans("Increase Emulation Speed"),
_trans("Disable Emulation Speed Limit"),

_trans("Frame Advance"),
_trans("Frame Advance Decrease Speed"),
_trans("Frame Advance Increase Speed"),
_trans("Frame Advance Reset Speed"),
_trans("Frame Advance"), _trans("Frame Advance Decrease Speed"),
_trans("Frame Advance Increase Speed"), _trans("Frame Advance Reset Speed"),

_trans("Start Recording"),
_trans("Play Recording"),
_trans("Export Recording"),
_trans("Start Recording"), _trans("Play Recording"), _trans("Export Recording"),
_trans("Read-only mode"),

_trans("Step Into"),
_trans("Step Over"),
_trans("Step Out"),
_trans("Skip"),
_trans("Step Into"), _trans("Step Over"), _trans("Step Out"), _trans("Skip"),

_trans("Show PC"),
_trans("Set PC"),
_trans("Show PC"), _trans("Set PC"),

_trans("Toggle Breakpoint"),
_trans("Add a Breakpoint"),
_trans("Add a Memory Breakpoint"),
_trans("Toggle Breakpoint"), _trans("Add a Breakpoint"), _trans("Add a Memory Breakpoint"),

_trans("Press Sync Button"),
_trans("Connect Wii Remote 1"),
_trans("Connect Wii Remote 2"),
_trans("Connect Wii Remote 3"),
_trans("Connect Wii Remote 4"),
_trans("Connect Balance Board"),
_trans("Press Sync Button"), _trans("Connect Wii Remote 1"), _trans("Connect Wii Remote 2"),
_trans("Connect Wii Remote 3"), _trans("Connect Wii Remote 4"), _trans("Connect Balance Board"),

_trans("Toggle Crop"),
_trans("Toggle Aspect Ratio"),
_trans("Toggle EFB Copies"),
_trans("Toggle Fog"),
_trans("Toggle Texture Dumping"),
_trans("Toggle Custom Textures"),
_trans("Toggle Crop"), _trans("Toggle Aspect Ratio"), _trans("Toggle EFB Copies"),
_trans("Toggle Fog"), _trans("Toggle Texture Dumping"), _trans("Toggle Custom Textures"),

// i18n: IR stands for internal resolution
_trans("Increase IR"),
// i18n: IR stands for internal resolution
_trans("Decrease IR"),

_trans("Freelook Decrease Speed"),
_trans("Freelook Increase Speed"),
_trans("Freelook Reset Speed"),
_trans("Freelook Move Up"),
_trans("Freelook Move Down"),
_trans("Freelook Move Left"),
_trans("Freelook Move Right"),
_trans("Freelook Zoom In"),
_trans("Freelook Zoom Out"),
_trans("Freelook Reset"),

_trans("Toggle 3D Side-by-side"),
_trans("Toggle 3D Top-bottom"),
_trans("Toggle 3D Anaglyph"),
_trans("Toggle 3D Vision"),
_trans("Decrease Depth"),
_trans("Increase Depth"),
_trans("Decrease Convergence"),
_trans("Increase Convergence"),

_trans("Load State Slot 1"),
_trans("Load State Slot 2"),
_trans("Load State Slot 3"),
_trans("Load State Slot 4"),
_trans("Load State Slot 5"),
_trans("Load State Slot 6"),
_trans("Load State Slot 7"),
_trans("Load State Slot 8"),
_trans("Load State Slot 9"),
_trans("Load State Slot 10"),
_trans("Load from selected slot"),

_trans("Save State Slot 1"),
_trans("Save State Slot 2"),
_trans("Save State Slot 3"),
_trans("Save State Slot 4"),
_trans("Save State Slot 5"),
_trans("Save State Slot 6"),
_trans("Save State Slot 7"),
_trans("Save State Slot 8"),
_trans("Save State Slot 9"),
_trans("Save State Slot 10"),
_trans("Save to selected slot"),

_trans("Select State Slot 1"),
_trans("Select State Slot 2"),
_trans("Select State Slot 3"),
_trans("Select State Slot 4"),
_trans("Select State Slot 5"),
_trans("Select State Slot 6"),
_trans("Select State Slot 7"),
_trans("Select State Slot 8"),
_trans("Select State Slot 9"),
_trans("Freelook Decrease Speed"), _trans("Freelook Increase Speed"),
_trans("Freelook Reset Speed"), _trans("Freelook Move Up"), _trans("Freelook Move Down"),
_trans("Freelook Move Left"), _trans("Freelook Move Right"), _trans("Freelook Zoom In"),
_trans("Freelook Zoom Out"), _trans("Freelook Reset"),

_trans("Toggle 3D Side-by-side"), _trans("Toggle 3D Top-bottom"), _trans("Toggle 3D Anaglyph"),
_trans("Toggle 3D Vision"), _trans("Decrease Depth"), _trans("Increase Depth"),
_trans("Decrease Convergence"), _trans("Increase Convergence"),

_trans("Load State Slot 1"), _trans("Load State Slot 2"), _trans("Load State Slot 3"),
_trans("Load State Slot 4"), _trans("Load State Slot 5"), _trans("Load State Slot 6"),
_trans("Load State Slot 7"), _trans("Load State Slot 8"), _trans("Load State Slot 9"),
_trans("Load State Slot 10"), _trans("Load from selected slot"),

_trans("Save State Slot 1"), _trans("Save State Slot 2"), _trans("Save State Slot 3"),
_trans("Save State Slot 4"), _trans("Save State Slot 5"), _trans("Save State Slot 6"),
_trans("Save State Slot 7"), _trans("Save State Slot 8"), _trans("Save State Slot 9"),
_trans("Save State Slot 10"), _trans("Save to selected slot"),

_trans("Select State Slot 1"), _trans("Select State Slot 2"), _trans("Select State Slot 3"),
_trans("Select State Slot 4"), _trans("Select State Slot 5"), _trans("Select State Slot 6"),
_trans("Select State Slot 7"), _trans("Select State Slot 8"), _trans("Select State Slot 9"),
_trans("Select State Slot 10"),

_trans("Load State Last 1"),
_trans("Load State Last 2"),
_trans("Load State Last 3"),
_trans("Load State Last 4"),
_trans("Load State Last 5"),
_trans("Load State Last 6"),
_trans("Load State Last 7"),
_trans("Load State Last 8"),
_trans("Load State Last 9"),
_trans("Load State Last 1"), _trans("Load State Last 2"), _trans("Load State Last 3"),
_trans("Load State Last 4"), _trans("Load State Last 5"), _trans("Load State Last 6"),
_trans("Load State Last 7"), _trans("Load State Last 8"), _trans("Load State Last 9"),
_trans("Load State Last 10"),

_trans("Save Oldest State"),
_trans("Undo Load State"),
_trans("Undo Save State"),
_trans("Save State"),
_trans("Load State"),
_trans("Save Oldest State"), _trans("Undo Load State"), _trans("Undo Save State"),
_trans("Save State"), _trans("Load State"),
};
static_assert(NUM_HOTKEYS == sizeof(hotkey_labels) / sizeof(hotkey_labels[0]),
"Wrong count of hotkey_labels");
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/Config/WiiConfigPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void WiiConfigPane::InitializeGUI()
wxGBPosition(0, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
bt_settings_grid_sizer->Add(m_bt_sensor_bar_pos, wxGBPosition(0, 1), wxDefaultSpan,
wxALIGN_CENTER_VERTICAL);
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
bt_settings_grid_sizer->Add(new wxStaticText(this, wxID_ANY, _("IR Sensitivity:")),
wxGBPosition(1, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
bt_settings_grid_sizer->Add(bt_sensor_bar_pos_sizer, wxGBPosition(1, 1), wxDefaultSpan,
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/Input/WiimoteInputConfigDiag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ WiimoteInputConfigDialog::WiimoteInputConfigDialog(wxWindow* const parent, Input

tab_motion_controls_ir->SetSizerAndFit(motion_controls_ir_sizer);

// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
notebook->AddPage(tab_motion_controls_ir, _("Motion Controls and IR"));

notebook->SetSelection(0);
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/TASInputDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void TASInputDlg::CreateWiiLayout(int num)
m_controls[6] = &m_z_cont;

m_main_stick = CreateStick(ID_MAIN_STICK, 1024, 768, 512, 384, true, false);
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
m_main_stick_szr = CreateStickLayout(&m_main_stick, _("IR"));

m_x_cont = CreateControl(wxSL_VERTICAL, -1, 100, false, 1023, 512);
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinWX/VideoConfigDiag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ static wxString true_color_desc =
"quality by reducing color banding.\nIt has no impact on performance and causes "
"few graphical issues.\n\n\nIf unsure, leave this checked.");
static wxString vertex_rounding_desc =
// i18n: IR stands for internal resolution
wxTRANSLATE("Round 2D vertices to whole pixels. Fixes some "
"games at higher internal resolutions. This setting is disabled and turned off "
"at 1x IR.\n\nIf unsure, leave this unchecked.");
Expand Down

0 comments on commit 2e0491d

Please sign in to comment.