Browse Source

Add translator comments

Alexander Gorishnyak 1 month ago
parent
commit
f902b5b6b5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/base/actionprovider.cpp

+ 3 - 0
src/base/actionprovider.cpp

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