add dynamic language change support

add "en" ts
This commit is contained in:
2020-05-25 16:59:19 +03:00
parent 69b0ee9d1a
commit c1fa375145
50 changed files with 1965 additions and 206 deletions

View File

@@ -48,6 +48,7 @@ void CharDialog::setCharFont(const QFont & f) {
void CharDialog::changeEvent(QEvent * e) {
QDialog::changeEvent(e);
if (e->type() == QEvent::LanguageChange) {
ui->retranslateUi(this);
QStringList cat;
@@ -65,7 +66,6 @@ void CharDialog::changeEvent(QEvent * e) {
ui->comboCategory->setCurrentIndex(pi);
return;
}
QDialog::changeEvent(e);
}