mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Fix auto-translations on Settings Pages
This commit is contained in:
parent
79bd9c7e60
commit
e83861b903
2 changed files with 386 additions and 4 deletions
|
|
@ -40,12 +40,16 @@ void SequenceEdit::setShortcutName(const QString &_shortcutName)
|
||||||
defaultButton->setEnabled(false);
|
defaultButton->setEnabled(false);
|
||||||
lineEdit->setEnabled(false);
|
lineEdit->setEnabled(false);
|
||||||
lineEdit->setText("");
|
lineEdit->setText("");
|
||||||
|
// Correct as in-line translation
|
||||||
|
lineEdit->setPlaceholderText(tr("Choose an action from the table"));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
clearButton->setEnabled(true);
|
clearButton->setEnabled(true);
|
||||||
defaultButton->setEnabled(true);
|
defaultButton->setEnabled(true);
|
||||||
lineEdit->setEnabled(true);
|
lineEdit->setEnabled(true);
|
||||||
lineEdit->setText(SettingsCache::instance().shortcuts().getShortcutString(shortcutName));
|
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"));
|
clearButton->setText(tr("Clear"));
|
||||||
defaultButton->setText(tr("Restore default"));
|
defaultButton->setText(tr("Restore default"));
|
||||||
setShortcutName(shortcutName);
|
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
Loading…
Add table
Add a link
Reference in a new issue