Skip to content

Commit f902b5b

Browse files
committed
Add translator comments
1 parent 25d9522 commit f902b5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/base/actionprovider.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ QAction *ActionProvider::getFindNext(QWidget *parent) const
173173
action->setShortcut(QKeySequence::FindNext);
174174
action->setShortcutContext(Qt::WidgetWithChildrenShortcut);
175175

176+
//: The "&" is a shortcut key prefix, not an "and" conjunction. Details: https://github.com/kefir500/apk-editor-studio/wiki/Translation-Guide#shortcuts
176177
auto translate = [=]() { action->setText(tr("Find &Next")); };
177178
connect(this, &ActionProvider::languageChanged, action, translate);
178179
translate();
@@ -186,6 +187,7 @@ QAction *ActionProvider::getFindPrevious(QWidget *parent) const
186187
action->setShortcut(QKeySequence::FindPrevious);
187188
action->setShortcutContext(Qt::WidgetWithChildrenShortcut);
188189

190+
//: The "&" is a shortcut key prefix, not an "and" conjunction. Details: https://github.com/kefir500/apk-editor-studio/wiki/Translation-Guide#shortcuts
189191
auto translate = [=]() { action->setText(tr("Find Pre&vious")); };
190192
connect(this, &ActionProvider::languageChanged, action, translate);
191193
translate();
@@ -199,6 +201,7 @@ QAction *ActionProvider::getReplace(QWidget *parent) const
199201
action->setShortcut(QKeySequence::Replace);
200202
action->setShortcutContext(Qt::WidgetWithChildrenShortcut);
201203

204+
//: The "&" is a shortcut key prefix, not an "and" conjunction. Details: https://github.com/kefir500/apk-editor-studio/wiki/Translation-Guide#shortcuts
202205
auto translate = [=]() { action->setText(tr("Find and &Replace")); };
203206
connect(this, &ActionProvider::languageChanged, action, translate);
204207
translate();

0 commit comments

Comments
 (0)