From 982a0172c552cdd75dcc9cee296317097a7b3997 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Sat, 9 Jan 2016 14:52:28 +0200 Subject: [PATCH] Retranslate pattern making system --HG-- branch : feature --- .../dialogs/configpages/configurationpage.cpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/app/valentina/dialogs/configpages/configurationpage.cpp b/src/app/valentina/dialogs/configpages/configurationpage.cpp index cc4e4d44d..38c4d844c 100644 --- a/src/app/valentina/dialogs/configpages/configurationpage.cpp +++ b/src/app/valentina/dialogs/configpages/configurationpage.cpp @@ -447,6 +447,33 @@ void ConfigurationPage::RetranslateUi() languageLabel->setText(tr("Label language:")); + pmSystemGroup->setTitle(tr("Pattern making system")); + systemLabel->setText(tr("Pattern making system:")); + + const int index = systemCombo->currentIndex(); + systemCombo->blockSignals(true); + systemCombo->clear(); + InitPMSystems(systemCombo); + systemCombo->setCurrentIndex(index); + systemCombo->blockSignals(false); + + systemAuthorLabel->setText(tr("Author:")); + systemBookLabel->setText(tr("Book:")); + +#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0) + QString text = qApp->TrVars()->PMSystemAuthor(systemCombo->itemData(systemCombo->currentIndex()).toString()); +#else + QString text = qApp->TrVars()->PMSystemAuthor(systemCombo->currentData().toString()); +#endif + systemAuthorValueLabel->setText(text); + systemAuthorValueLabel->setToolTip(text); +#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0) + text = qApp->TrVars()->PMSystemBook(systemCombo->itemData(systemCombo->currentIndex()).toString()); +#else + text = qApp->TrVars()->PMSystemBook(systemCombo->currentData().toString()); +#endif + systemBookValueLabel->setPlainText(text); + sendGroup->setTitle(tr("Send crash reports")); sendReportCheck->setText(tr("Send crash reports (recommended)")); description->setText(tr("After each crash Valentina collect information that may help us fix a "