translation improvement

This commit is contained in:
xueyan hu
2021-12-28 18:23:02 +08:00
parent f43fd26411
commit 656f46c17e
32 changed files with 1620 additions and 914 deletions

View File

@@ -27,7 +27,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
QListWidget* widget = new QListWidget(this);
widget->setFixedWidth(250);
QStringList menus;
menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
//menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
menus << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("About");
widget->addItems(menus);
widget->setSpacing(3);
for (int i = 0; i < menus.count(); ++i) {
@@ -61,9 +62,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
Info->setText("info");
stackedWidget->addWidget(Info);
UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
stackedWidget->addWidget(operationLogForm);
//UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
//stackedWidget->addWidget(operationLogForm);
QLabel* about = new QLabel(this);
about->setText(tr("About"));
@@ -74,9 +74,8 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
});
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
QStringList menus2;
menus2 << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("Log") << tr("About");
menus2 << tr("General") << tr("Account") << tr("System") << tr("Information") << tr("About");
widget->clear();
widget->addItems(menus2);
for (int i = 0; i < menus.count(); ++i) {
widget->item(i)->setTextAlignment(Qt::AlignCenter);