From fc7696672029ade79e38f8e2487cf14f3364e290 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 26 May 2020 00:01:43 +0100 Subject: [PATCH] Use language only to identify Spanish translation files This allows the Spanish UI translation to work, for now, for all Spanish speaking locales. If necessary we can make it es-ES if other translators feel it is not a good base for their Spanish variant. OTOH if they just need to l10n a few strings then, say for Argentina, then they can do that in an wsjtx_es_AR.ts and untranslated strings there will fall back to the ones in wsjtx_es.ts automatically. This happens because of teh way the application loads multiple translation files in an order suitable for that to happen. --- CMakeLists.txt | 4 ++-- translations/{wsjtx_es_ES.ts => wsjtx_es.ts} | 0 translations/{wsjtx_pt_PT.ts => wsjtx_pt.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename translations/{wsjtx_es_ES.ts => wsjtx_es.ts} (100%) rename translations/{wsjtx_pt_PT.ts => wsjtx_pt.ts} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 307de7fd1..467b6d3df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1097,8 +1097,8 @@ add_custom_target (etags COMMAND ${ETAGS} -o ${CMAKE_SOURCE_DIR}/TAGS -R ${sourc # Qt i18n set (LANGUAGES en_GB # English UK - pt_PT # Poutuguese - es_ES # Spanish + pt # Poutuguese + es # Spanish ca # Catalan ) foreach (lang_ ${LANGUAGES}) diff --git a/translations/wsjtx_es_ES.ts b/translations/wsjtx_es.ts similarity index 100% rename from translations/wsjtx_es_ES.ts rename to translations/wsjtx_es.ts diff --git a/translations/wsjtx_pt_PT.ts b/translations/wsjtx_pt.ts similarity index 100% rename from translations/wsjtx_pt_PT.ts rename to translations/wsjtx_pt.ts