From b04bb309307e56f8783589037c7ff04a6fecd475 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 25 Nov 2022 14:18:06 -0600 Subject: [PATCH] Rename zh_Hant to zh_TW to match Qt's expected name --- app/app.pro | 2 +- app/languages/{qml_zh_Hant.qm => qml_zh_TW.qm} | Bin app/languages/{qml_zh_Hant.ts => qml_zh_TW.ts} | 2 +- app/resources.qrc | 4 ++-- app/settings/streamingpreferences.cpp | 4 ++-- app/settings/streamingpreferences.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename app/languages/{qml_zh_Hant.qm => qml_zh_TW.qm} (100%) rename app/languages/{qml_zh_Hant.ts => qml_zh_TW.ts} (99%) diff --git a/app/app.pro b/app/app.pro index 80098064..4da801b5 100644 --- a/app/app.pro +++ b/app/app.pro @@ -374,7 +374,7 @@ TRANSLATIONS += \ languages/qml_sv.ts \ languages/qml_tr.ts \ languages/qml_uk.ts \ - languages/qml_zh_Hant.ts \ + languages/qml_zh_TW.ts \ languages/qml_el.ts \ languages/qml_hi.ts \ languages/qml_it.ts \ diff --git a/app/languages/qml_zh_Hant.qm b/app/languages/qml_zh_TW.qm similarity index 100% rename from app/languages/qml_zh_Hant.qm rename to app/languages/qml_zh_TW.qm diff --git a/app/languages/qml_zh_Hant.ts b/app/languages/qml_zh_TW.ts similarity index 99% rename from app/languages/qml_zh_Hant.ts rename to app/languages/qml_zh_TW.ts index 8fd7e2e2..5b3a3750 100644 --- a/app/languages/qml_zh_Hant.ts +++ b/app/languages/qml_zh_TW.ts @@ -1,6 +1,6 @@ - + AppView diff --git a/app/resources.qrc b/app/resources.qrc index 716a29ef..18912aba 100644 --- a/app/resources.qrc +++ b/app/resources.qrc @@ -47,8 +47,8 @@ languages/qml_tr.qm languages/qml_uk.ts languages/qml_uk.qm - languages/qml_zh_Hant.ts - languages/qml_zh_Hant.qm + languages/qml_zh_TW.ts + languages/qml_zh_TW.qm languages/qml_el.ts languages/qml_el.qm languages/qml_hi.ts diff --git a/app/settings/streamingpreferences.cpp b/app/settings/streamingpreferences.cpp index 3c2c706e..1dddbd79 100644 --- a/app/settings/streamingpreferences.cpp +++ b/app/settings/streamingpreferences.cpp @@ -227,8 +227,8 @@ QString StreamingPreferences::getSuffixFromLanguage(StreamingPreferences::Langua return "tr"; case LANG_UK: return "uk"; - case LANG_ZH_HANT: - return "zh_Hant"; + case LANG_ZH_TW: + return "zh_TW"; case LANG_PT: return "pt"; case LANG_PT_BR: diff --git a/app/settings/streamingpreferences.h b/app/settings/streamingpreferences.h index f74081e6..7768406c 100644 --- a/app/settings/streamingpreferences.h +++ b/app/settings/streamingpreferences.h @@ -82,7 +82,7 @@ public: LANG_SV, LANG_TR, LANG_UK, - LANG_ZH_HANT, + LANG_ZH_TW, LANG_PT, LANG_PT_BR, LANG_EL,