Merge pull request #11371 from JosJuice/i18n-notes
DolphinQt: Add more i18n comments
This commit is contained in:
commit
871fb12754
|
@ -156,6 +156,7 @@ void AdvancedWidget::CreateWidgets()
|
||||||
m_backend_multithreading =
|
m_backend_multithreading =
|
||||||
new GraphicsBool(tr("Backend Multithreading"), Config::GFX_BACKEND_MULTITHREADING);
|
new GraphicsBool(tr("Backend Multithreading"), Config::GFX_BACKEND_MULTITHREADING);
|
||||||
m_prefer_vs_for_point_line_expansion = new GraphicsBool(
|
m_prefer_vs_for_point_line_expansion = new GraphicsBool(
|
||||||
|
// i18n: VS is short for vertex shaders.
|
||||||
tr("Prefer VS for Point/Line Expansion"), Config::GFX_PREFER_VS_FOR_LINE_POINT_EXPANSION);
|
tr("Prefer VS for Point/Line Expansion"), Config::GFX_PREFER_VS_FOR_LINE_POINT_EXPANSION);
|
||||||
|
|
||||||
misc_layout->addWidget(m_enable_cropping, 0, 0);
|
misc_layout->addWidget(m_enable_cropping, 0, 0);
|
||||||
|
|
|
@ -154,6 +154,8 @@ void BreakpointDialog::CreateWidgets()
|
||||||
memory_data_layout->addWidget(m_memory_address_to_label, 1, 2);
|
memory_data_layout->addWidget(m_memory_address_to_label, 1, 2);
|
||||||
memory_data_layout->addWidget(m_memory_address_to, 1, 3);
|
memory_data_layout->addWidget(m_memory_address_to, 1, 3);
|
||||||
|
|
||||||
|
// i18n: If a condition is set for a breakpoint, the condition becoming true is a prerequisite for
|
||||||
|
// triggering the breakpoint.
|
||||||
QGroupBox* condition_box = new QGroupBox(tr("Condition"));
|
QGroupBox* condition_box = new QGroupBox(tr("Condition"));
|
||||||
auto* condition_layout = new QHBoxLayout;
|
auto* condition_layout = new QHBoxLayout;
|
||||||
condition_box->setLayout(condition_layout);
|
condition_box->setLayout(condition_layout);
|
||||||
|
@ -171,6 +173,8 @@ void BreakpointDialog::CreateWidgets()
|
||||||
|
|
||||||
QHBoxLayout* conditional_layout = new QHBoxLayout;
|
QHBoxLayout* conditional_layout = new QHBoxLayout;
|
||||||
m_conditional = new QLineEdit();
|
m_conditional = new QLineEdit();
|
||||||
|
// i18n: If a condition is set for a breakpoint, the condition becoming true is a prerequisite for
|
||||||
|
// triggering the breakpoint.
|
||||||
conditional_layout->addWidget(new QLabel(tr("Condition:")));
|
conditional_layout->addWidget(new QLabel(tr("Condition:")));
|
||||||
conditional_layout->addWidget(m_conditional);
|
conditional_layout->addWidget(m_conditional);
|
||||||
|
|
||||||
|
@ -269,6 +273,8 @@ void BreakpointDialog::accept()
|
||||||
|
|
||||||
if (!condition.isEmpty() && !Expression::TryParse(condition.toUtf8().constData()))
|
if (!condition.isEmpty() && !Expression::TryParse(condition.toUtf8().constData()))
|
||||||
{
|
{
|
||||||
|
// i18n: If a condition is set for a breakpoint, the condition becoming true is a prerequisite
|
||||||
|
// for triggering the breakpoint.
|
||||||
invalid_input(tr("Condition"));
|
invalid_input(tr("Condition"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -356,5 +362,7 @@ void BreakpointDialog::ShowConditionHelp()
|
||||||
"Note: All values are internally converted to Doubles for calculations. It's possible for "
|
"Note: All values are internally converted to Doubles for calculations. It's possible for "
|
||||||
"them to go out of range or to become NaN. A warning will be given if NaN is returned, and "
|
"them to go out of range or to become NaN. A warning will be given if NaN is returned, and "
|
||||||
"the var that became NaN will be logged.");
|
"the var that became NaN will be logged.");
|
||||||
|
// i18n: The title for a dialog that shows help for how to use conditions. If a condition is set
|
||||||
|
// for a breakpoint, the condition becoming true is a prerequisite for triggering the breakpoint.
|
||||||
ModalMessageBox::information(this, tr("Conditional help"), message);
|
ModalMessageBox::information(this, tr("Conditional help"), message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -579,10 +579,13 @@ void CodeViewWidget::OnContextMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
auto* run_until_menu = menu->addMenu(tr("Run until (ignoring breakpoints)"));
|
auto* run_until_menu = menu->addMenu(tr("Run until (ignoring breakpoints)"));
|
||||||
|
// i18n: One of the options shown below "Run until (ignoring breakpoints)"
|
||||||
run_until_menu->addAction(tr("%1's value is hit").arg(target), this,
|
run_until_menu->addAction(tr("%1's value is hit").arg(target), this,
|
||||||
[this] { AutoStep(CodeTrace::AutoStop::Always); });
|
[this] { AutoStep(CodeTrace::AutoStop::Always); });
|
||||||
|
// i18n: One of the options shown below "Run until (ignoring breakpoints)"
|
||||||
run_until_menu->addAction(tr("%1's value is used").arg(target), this,
|
run_until_menu->addAction(tr("%1's value is used").arg(target), this,
|
||||||
[this] { AutoStep(CodeTrace::AutoStop::Used); });
|
[this] { AutoStep(CodeTrace::AutoStop::Used); });
|
||||||
|
// i18n: One of the options shown below "Run until (ignoring breakpoints)"
|
||||||
run_until_menu->addAction(tr("%1's value is changed").arg(target),
|
run_until_menu->addAction(tr("%1's value is changed").arg(target),
|
||||||
[this] { AutoStep(CodeTrace::AutoStop::Changed); });
|
[this] { AutoStep(CodeTrace::AutoStop::Changed); });
|
||||||
|
|
||||||
|
|
|
@ -162,13 +162,14 @@ void MemoryWidget::CreateWidgets()
|
||||||
auto* address_space_layout = new QVBoxLayout;
|
auto* address_space_layout = new QVBoxLayout;
|
||||||
address_space_group->setLayout(address_space_layout);
|
address_space_group->setLayout(address_space_layout);
|
||||||
|
|
||||||
// i18n: "Effective" addresses are the addresses used directly by the CPU and may be subject to
|
// i18n: One of the options shown below "Address Space". "Effective" addresses are the addresses
|
||||||
// translation via the MMU to physical addresses.
|
// used directly by the CPU and may be subject to translation via the MMU to physical addresses.
|
||||||
m_address_space_effective = new QRadioButton(tr("Effective"));
|
m_address_space_effective = new QRadioButton(tr("Effective"));
|
||||||
// i18n: The "Auxiliary" address space is the address space of ARAM (Auxiliary RAM).
|
// i18n: One of the options shown below "Address Space". "Auxiliary" is the address space of ARAM
|
||||||
|
// (Auxiliary RAM).
|
||||||
m_address_space_auxiliary = new QRadioButton(tr("Auxiliary"));
|
m_address_space_auxiliary = new QRadioButton(tr("Auxiliary"));
|
||||||
// i18n: The "Physical" address space is the address space that reflects how devices (e.g. RAM) is
|
// i18n: One of the options shown below "Address Space". "Physical" is the address space that
|
||||||
// physically wired up.
|
// reflects how devices (e.g. RAM) is physically wired up.
|
||||||
m_address_space_physical = new QRadioButton(tr("Physical"));
|
m_address_space_physical = new QRadioButton(tr("Physical"));
|
||||||
|
|
||||||
address_space_layout->addWidget(m_address_space_effective);
|
address_space_layout->addWidget(m_address_space_effective);
|
||||||
|
|
Loading…
Reference in New Issue