diff options
| author | JosJuice <josjuice@gmail.com> | 2022-11-26 22:58:46 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2022-12-24 08:32:49 +0100 |
| commit | 3611045a6c0f999a369f630f284d17848bf1d798 (patch) | |
| tree | 3e61dfd9f899045f89e2600c62e8c5081c8e03b8 /Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp | |
| parent | 0475c939a7faf48f158f805abd5c073f2344ccfe (diff) | |
DolphinQt: Add more i18n comments
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp index 29f879a482..f3472beeee 100644 --- a/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp @@ -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, 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")); auto* condition_layout = new QHBoxLayout; condition_box->setLayout(condition_layout); @@ -171,6 +173,8 @@ void BreakpointDialog::CreateWidgets() QHBoxLayout* conditional_layout = new QHBoxLayout; 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(m_conditional); @@ -269,6 +273,8 @@ void BreakpointDialog::accept() 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")); return; } @@ -356,5 +362,7 @@ void BreakpointDialog::ShowConditionHelp() "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 " "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); } |
