diff --git a/Pdf4QtLibCore/sources/pdfapplicationtranslator.cpp b/Pdf4QtLibCore/sources/pdfapplicationtranslator.cpp index 89707f3..d957243 100644 --- a/Pdf4QtLibCore/sources/pdfapplicationtranslator.cpp +++ b/Pdf4QtLibCore/sources/pdfapplicationtranslator.cpp @@ -75,6 +75,7 @@ void PDFApplicationTranslator::installTranslator() case E_LANGUAGE_GERMAN: case E_LANGUAGE_KOREAN: case E_LANGUAGE_SPANISH: + case E_LANGUAGE_CHINESE: { QString languageFileName = getLanguageFileName(); @@ -182,7 +183,8 @@ QString PDFApplicationTranslator::getLanguageFileName() const return QLatin1String("PDF4QT_es.qm"); case E_LANGUAGE_SPANISH: return QLatin1String("PDF4QT_ko.qm"); - break; + case E_LANGUAGE_CHINESE: + return QLatin1String("PDF4QT_zh_CN.qm"); default: Q_ASSERT(false); diff --git a/Pdf4QtLibCore/sources/pdfapplicationtranslator.h b/Pdf4QtLibCore/sources/pdfapplicationtranslator.h index 682dfc7..3604e5c 100644 --- a/Pdf4QtLibCore/sources/pdfapplicationtranslator.h +++ b/Pdf4QtLibCore/sources/pdfapplicationtranslator.h @@ -47,7 +47,8 @@ public: E_LANGUAGE_CZECH, E_LANGUAGE_GERMAN, E_LANGUAGE_KOREAN, - E_LANGUAGE_SPANISH + E_LANGUAGE_SPANISH, + E_LANGUAGE_CHINESE, }; Q_ENUM(ELanguage) diff --git a/Pdf4QtLibGui/pdfviewersettingsdialog.cpp b/Pdf4QtLibGui/pdfviewersettingsdialog.cpp index 8721a3a..ef1361d 100644 --- a/Pdf4QtLibGui/pdfviewersettingsdialog.cpp +++ b/Pdf4QtLibGui/pdfviewersettingsdialog.cpp @@ -150,6 +150,7 @@ PDFViewerSettingsDialog::PDFViewerSettingsDialog(const PDFViewerSettings::Settin ui->languageCombo->addItem(tr("Korean"), static_cast(pdf::PDFApplicationTranslator::E_LANGUAGE_KOREAN)); ui->languageCombo->addItem(tr("Spanish"), static_cast(pdf::PDFApplicationTranslator::E_LANGUAGE_SPANISH)); ui->languageCombo->addItem(tr("Czech"), static_cast(pdf::PDFApplicationTranslator::E_LANGUAGE_CZECH)); + ui->languageCombo->addItem(tr("Chinese"), static_cast(pdf::PDFApplicationTranslator::E_LANGUAGE_CHINESE)); auto fillColorProfileList = [](QComboBox* comboBox, const pdf::PDFColorProfileIdentifiers& identifiers) {