Fix auto-translations on Settings Pages

This commit is contained in:
ZeldaZach 2024-12-22 17:20:54 -05:00
parent 79bd9c7e60
commit e83861b903
No known key found for this signature in database
2 changed files with 386 additions and 4 deletions

View file

@ -40,12 +40,16 @@ void SequenceEdit::setShortcutName(const QString &_shortcutName)
defaultButton->setEnabled(false);
lineEdit->setEnabled(false);
lineEdit->setText("");
// Correct as in-line translation
lineEdit->setPlaceholderText(tr("Choose an action from the table"));
} else {
clearButton->setEnabled(true);
defaultButton->setEnabled(true);
lineEdit->setEnabled(true);
lineEdit->setText(SettingsCache::instance().shortcuts().getShortcutString(shortcutName));
// Correct as in-line translation
lineEdit->setPlaceholderText(tr("Hit the key/combination of keys you want to set for this action"));
}
}
@ -214,7 +218,4 @@ void SequenceEdit::retranslateUi()
clearButton->setText(tr("Clear"));
defaultButton->setText(tr("Restore default"));
setShortcutName(shortcutName);
lineEdit->setPlaceholderText(tr("Choose an action from the table"));
lineEdit->setPlaceholderText(tr("Hit the key/combination of keys you want to set for this action"));
}

File diff suppressed because one or more lines are too long