Re-add i18n comments that were lost in the DolphinWX removal

This commit is contained in:
JosJuice 2018-09-08 15:58:15 +02:00
parent e0cb56edb9
commit fb6b31bba8
10 changed files with 38 additions and 3 deletions

View File

@ -50,12 +50,20 @@ constexpr std::array<const char*, 131> s_hotkey_labels{{
_trans("Export Recording"),
_trans("Read-Only Mode"),
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
_trans("Step Into"),
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
_trans("Step Over"),
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
_trans("Step Out"),
_trans("Skip"),
// i18n: Here, PC is an acronym for program counter, not personal computer.
_trans("Show PC"),
// i18n: Here, PC is an acronym for program counter, not personal computer.
_trans("Set PC"),
_trans("Toggle Breakpoint"),
@ -277,7 +285,9 @@ constexpr std::array<HotkeyGroupInfo, NUM_HOTKEY_GROUPS> s_groups_info = {
{_trans("Graphics Toggles"), HK_TOGGLE_CROP, HK_TOGGLE_TEXTURES},
{_trans("Internal Resolution"), HK_INCREASE_IR, HK_DECREASE_IR},
{_trans("Freelook"), HK_FREELOOK_DECREASE_SPEED, HK_FREELOOK_RESET},
// i18n: Stereoscopic 3D
{_trans("3D"), HK_TOGGLE_STEREO_SBS, HK_TOGGLE_STEREO_3DVISION},
// i18n: Stereoscopic 3D
{_trans("3D Depth"), HK_DECREASE_DEPTH, HK_INCREASE_CONVERGENCE},
{_trans("Load State"), HK_LOAD_STATE_SLOT_1, HK_LOAD_STATE_SLOT_SELECTED},
{_trans("Save State"), HK_SAVE_STATE_SLOT_1, HK_SAVE_STATE_SLOT_SELECTED},

View File

@ -334,6 +334,7 @@ QWidget* CheatsManager::CreateCheatSearch()
auto* group_layout = new QHBoxLayout;
group_box->setLayout(group_layout);
// i18n: The base 10 numeral system. Not related to non-integer numbers
m_match_decimal = new QRadioButton(tr("Decimal"));
m_match_hexadecimal = new QRadioButton(tr("Hexadecimal"));
m_match_octal = new QRadioButton(tr("Octal"));

View File

@ -19,8 +19,10 @@ void Hotkey3D::CreateMainLayout()
m_main_layout = new QHBoxLayout();
m_main_layout->addWidget(
// i18n: Stereoscopic 3D
CreateGroupBox(tr("3D"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_3D_TOGGLE)));
m_main_layout->addWidget(
// i18n: Stereoscopic 3D
CreateGroupBox(tr("3D Depth"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_3D_DEPTH)));
setLayout(m_main_layout);

View File

@ -304,6 +304,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
widget = new WiimoteEmuGeneral(this, extension);
setWindowTitle(tr("Wii Remote %1").arg(GetPort() + 1));
AddWidget(tr("General and Options"), widget);
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
AddWidget(tr("Motion Controls and IR"), new WiimoteEmuMotionControl(this));
AddWidget(tr("Extension"), extension);
break;
@ -312,6 +313,8 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
{
widget = new HotkeyGeneral(this);
AddWidget(tr("General"), widget);
// i18n: TAS is short for tool-assisted speedrun. Read http://tasvideos.org/ for details.
// Frame advance is an example of a typical TAS tool.
AddWidget(tr("TAS Tools"), new HotkeyTAS(this));
AddWidget(tr("Debugging"), new HotkeyDebugging(this));
@ -319,6 +322,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
AddWidget(tr("Wii and Wii Remote"), new HotkeyWii(this));
AddWidget(tr("Controller Profile"), new HotkeyControllerProfile(this));
AddWidget(tr("Graphics"), new HotkeyGraphics(this));
// i18n: Stereoscopic 3D
AddWidget(tr("3D"), new Hotkey3D(this));
AddWidget(tr("Save and Load State"), new HotkeyStates(this));
AddWidget(tr("Other State Management"), new HotkeyStatesOther(this));

View File

@ -118,6 +118,8 @@ void RegisterWidget::ShowContextMenu()
auto type = static_cast<RegisterType>(item->data(DATA_TYPE).toInt());
auto display = item->GetDisplay();
// i18n: This kind of "watch" is used for watching emulated memory.
// It's not related to timekeeping devices.
menu->addAction(tr("Add to &watch"), this,
[this, item] { emit RequestMemoryBreakpoint(item->GetValue()); });
menu->addAction(tr("View &memory"));

View File

@ -125,9 +125,12 @@ void WatchWidget::Update()
m_table->setRowCount(size + 1);
m_table->setHorizontalHeaderLabels({tr("Label"), tr("Address"), tr("Hexadecimal"), tr("Decimal"),
// i18n: Data type used in computing
tr("String")});
m_table->setHorizontalHeaderLabels(
{tr("Label"), tr("Address"), tr("Hexadecimal"),
// i18n: The base 10 numeral system. Not related to non-integer numbers
tr("Decimal"),
// i18n: Data type used in computing
tr("String")});
for (int i = 0; i < size; i++)
{

View File

@ -415,6 +415,8 @@ void MenuBar::AddViewMenu()
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged, m_show_registers,
&QAction::setChecked);
// i18n: This kind of "watch" is used for watching emulated memory.
// It's not related to timekeeping devices.
m_show_watch = view_menu->addAction(tr("&Watch"));
m_show_watch->setCheckable(true);
m_show_watch->setChecked(Settings::Instance().IsWatchVisible());

View File

@ -127,6 +127,7 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist()
QMessageBox vid_warning_box;
vid_warning_box.setIcon(QMessageBox::Warning);
vid_warning_box.setWindowTitle(tr("USB Whitelist Error"));
// i18n: Here, VID means Vendor ID (for a USB device).
vid_warning_box.setText(tr("The entered VID is invalid."));
vid_warning_box.setStandardButtons(QMessageBox::Ok);
vid_warning_box.exec();
@ -138,6 +139,7 @@ void USBDeviceAddToWhitelistDialog::AddUSBDeviceToWhitelist()
QMessageBox pid_warning_box;
pid_warning_box.setIcon(QMessageBox::Warning);
pid_warning_box.setWindowTitle(tr("USB Whitelist Error"));
// i18n: Here, PID means Product ID (for a USB device).
pid_warning_box.setText(tr("The entered PID is invalid."));
pid_warning_box.setStandardButtons(QMessageBox::Ok);
pid_warning_box.exec();

View File

@ -168,6 +168,7 @@ void WiiPane::CreateWiiRemoteSettings()
m_wiimote_ir_sensor_position->addItem(tr("Bottom"));
// IR Sensitivity Slider
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
m_wiimote_ir_sensitivity_label = new QLabel(tr("IR Sensitivity:"));
m_wiimote_ir_sensitivity = new QSlider(Qt::Horizontal);
m_wiimote_ir_sensitivity->setMinimum(4);

View File

@ -90,11 +90,19 @@ void ToolBar::OnDebugModeToggled(bool enabled)
void ToolBar::MakeActions()
{
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
m_step_action = addAction(tr("Step"), this, &ToolBar::StepPressed);
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
m_step_over_action = addAction(tr("Step Over"), this, &ToolBar::StepOverPressed);
// i18n: Here, "Step" is a verb. This feature is used for
// going through code step by step.
m_step_out_action = addAction(tr("Step Out"), this, &ToolBar::StepOutPressed);
m_skip_action = addAction(tr("Skip"), this, &ToolBar::SkipPressed);
// i18n: Here, PC is an acronym for program counter, not personal computer.
m_show_pc_action = addAction(tr("Show PC"), this, &ToolBar::ShowPCPressed);
// i18n: Here, PC is an acronym for program counter, not personal computer.
m_set_pc_action = addAction(tr("Set PC"), this, &ToolBar::SetPCPressed);
m_open_action = addAction(tr("Open"), this, &ToolBar::OpenPressed);