From e1f7edd298da299bd0c101e4659e0bce5788f0cd Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Mon, 22 Apr 2019 14:51:47 -0700 Subject: [PATCH] chore(i18n): add pt_BR translation --- CMakeLists.txt | 1 + src/widget/form/settings/generalform.cpp | 3 +++ translations/README.md | 1 + translations/i18n.pri | 1 + translations/translations.qrc | 1 + 5 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25126c46b..3d3b27487 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,6 +170,7 @@ qt5_add_translation(${PROJECT_NAME}_QM_FILES translations/pl.ts translations/pr.ts translations/pt.ts + translations/pt_BR.ts translations/ro.ts translations/ru.ts translations/sk.ts diff --git a/src/widget/form/settings/generalform.cpp b/src/widget/form/settings/generalform.cpp index 842e961d9..aac269b81 100644 --- a/src/widget/form/settings/generalform.cpp +++ b/src/widget/form/settings/generalform.cpp @@ -64,6 +64,7 @@ static QStringList locales = { "pr", "pl", "pt", + "pt_BR", "ro", "ru", "sk", @@ -118,6 +119,8 @@ GeneralForm::GeneralForm(SettingsWidget* myParent) langName = QLatin1String("Lojban"); else if (locales[i].startsWith(QLatin1String("pr"))) langName = QLatin1String("Pirate"); + else if (locales[i] == (QLatin1String("pt"))) // QTBUG-47891 + langName = QStringLiteral("português"); else langName = QLocale(locales[i]).nativeLanguageName(); diff --git a/translations/README.md b/translations/README.md index af1dff165..a2d54af2f 100644 --- a/translations/README.md +++ b/translations/README.md @@ -34,6 +34,7 @@ Language | Status [Pirate](https://hosted.weblate.org/engage/tox/pr/) | [![Translation status](https://hosted.weblate.org/widgets/tox/pr/svg-badge.svg)](https://hosted.weblate.org/engage/tox/pr/?utm_source=widget) [Polski](https://hosted.weblate.org/engage/tox/pl/) | [![Translation status](https://hosted.weblate.org/widgets/tox/pl/svg-badge.svg)](https://hosted.weblate.org/engage/tox/pl/?utm_source=widget) [Português](https://hosted.weblate.org/engage/tox/pt/) | [![Translation status](https://hosted.weblate.org/widgets/tox/pt/svg-badge.svg)](https://hosted.weblate.org/engage/tox/pt/?utm_source=widget) +[Português brasileiro](https://hosted.weblate.org/engage/tox/pt_BR/) | [![Translation status](https://hosted.weblate.org/widgets/tox/pt_BR/svg-badge.svg)](https://hosted.weblate.org/engage/tox/pt_BR/?utm_source=widget) [Română](https://hosted.weblate.org/engage/tox/ro/) | [![Translation status](https://hosted.weblate.org/widgets/tox/ro/svg-badge.svg)](https://hosted.weblate.org/engage/tox/ro/?utm_source=widget) [Русский](https://hosted.weblate.org/engage/tox/ru/) | [![Translation status](https://hosted.weblate.org/widgets/tox/ru/svg-badge.svg)](https://hosted.weblate.org/engage/tox/ru/?utm_source=widget) [Slovenčina](https://hosted.weblate.org/engage/tox/sk/) | [![Translation status](https://hosted.weblate.org/widgets/tox/sk/svg-badge.svg)](https://hosted.weblate.org/engage/tox/sk/?utm_source=widget) diff --git a/translations/i18n.pri b/translations/i18n.pri index 27493dfd2..df09bb399 100644 --- a/translations/i18n.pri +++ b/translations/i18n.pri @@ -28,6 +28,7 @@ TRANSLATIONS = \ translations/pl.ts \ translations/pr.ts \ translations/pt.ts \ + translations/pt_BR.ts \ translations/ro.ts \ translations/ru.ts \ translations/sk.ts \ diff --git a/translations/translations.qrc b/translations/translations.qrc index e6dbafde2..11530ed6f 100644 --- a/translations/translations.qrc +++ b/translations/translations.qrc @@ -27,6 +27,7 @@ pl.qm pr.qm pt.qm + pt_BR.qm ro.qm ru.qm sk.qm