From 2507fd35da2de2da1e875e7a885da9ce08a91e31 Mon Sep 17 00:00:00 2001 From: Nick Korotysh Date: Tue, 10 Sep 2024 20:41:32 +0200 Subject: [PATCH] reconfigured translation services --- CMakeLists.txt | 2 +- ...tal_clock_ru_RU.ts => digital_clock_ru.ts} | 0 crowdin.yml | 53 ++++--------------- ...plugin_core_ru_RU.ts => plugin_core_ru.ts} | 0 .../{any_zoom_ru_RU.ts => any_zoom_ru.ts} | 0 .../i18n/{chime_ru_RU.ts => chime_ru.ts} | 0 ...n_timer_ru_RU.ts => countdown_timer_ru.ts} | 0 .../date/i18n/{date_ru_RU.ts => date_ru.ts} | 0 .../{quick_note_ru_RU.ts => quick_note_ru.ts} | 0 ...osition_ru_RU.ts => random_position_ru.ts} | 0 .../i18n/{sample_ru_RU.ts => sample_ru.ts} | 0 ...um_clock_ru_RU.ts => spectrum_clock_ru.ts} | 0 .../{stopwatch_ru_RU.ts => stopwatch_ru.ts} | 0 ...ucency_ru_RU.ts => var_translucency_ru.ts} | 0 14 files changed, 11 insertions(+), 44 deletions(-) rename app/i18n/{digital_clock_ru_RU.ts => digital_clock_ru.ts} (100%) rename plugin_core/i18n/{plugin_core_ru_RU.ts => plugin_core_ru.ts} (100%) rename plugins/any_zoom/i18n/{any_zoom_ru_RU.ts => any_zoom_ru.ts} (100%) rename plugins/chime/i18n/{chime_ru_RU.ts => chime_ru.ts} (100%) rename plugins/countdown_timer/i18n/{countdown_timer_ru_RU.ts => countdown_timer_ru.ts} (100%) rename plugins/date/i18n/{date_ru_RU.ts => date_ru.ts} (100%) rename plugins/quick_note/i18n/{quick_note_ru_RU.ts => quick_note_ru.ts} (100%) rename plugins/random_position/i18n/{random_position_ru_RU.ts => random_position_ru.ts} (100%) rename plugins/sample/i18n/{sample_ru_RU.ts => sample_ru.ts} (100%) rename plugins/spectrum_clock/i18n/{spectrum_clock_ru_RU.ts => spectrum_clock_ru.ts} (100%) rename plugins/stopwatch/i18n/{stopwatch_ru_RU.ts => stopwatch_ru.ts} (100%) rename plugins/var_translucency/i18n/{var_translucency_ru_RU.ts => var_translucency_ru.ts} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ec0285..111d8db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Network Svg OPTIONAL_COMPONENTS Multimedia) find_package(Qt6 6.7 REQUIRED COMPONENTS LinguistTools) -qt_standard_project_setup(I18N_TRANSLATED_LANGUAGES en ru_RU zh_CN) +qt_standard_project_setup(I18N_TRANSLATED_LANGUAGES en ru zh_CN) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) include(clock_utils) diff --git a/app/i18n/digital_clock_ru_RU.ts b/app/i18n/digital_clock_ru.ts similarity index 100% rename from app/i18n/digital_clock_ru_RU.ts rename to app/i18n/digital_clock_ru.ts diff --git a/crowdin.yml b/crowdin.yml index 8d62122..c8c0083 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,4 +1,4 @@ -"project_id": "712223" +"project_id": "715677" "api_token_env": "CROWDIN_PERSONAL_TOKEN" "base_path": "." "base_url": "https://api.crowdin.com" @@ -7,47 +7,14 @@ files: [ { - "source": "app/i18n/digital_clock_en.ts", - "translation": "app/i18n/digital_clock_%locale_with_underscore%.ts", - }, - { - "source": "plugin_core/i18n/plugin_core_en.ts", - "translation": "plugin_core/i18n/plugin_core_%locale_with_underscore%.ts", - }, - { - "source": "plugins/any_zoom/i18n/any_zoom_en.ts", - "translation": "plugins/any_zoom/i18n/any_zoom_%locale_with_underscore%.ts", - }, - { - "source": "plugins/chime/i18n/chime_en.ts", - "translation": "plugins/chime/i18n/chime_%locale_with_underscore%.ts", - }, - { - "source": "plugins/countdown_timer/i18n/countdown_timer_en.ts", - "translation": "plugins/countdown_timer/i18n/countdown_timer_%locale_with_underscore%.ts", - }, - { - "source": "plugins/date/i18n/date_en.ts", - "translation": "plugins/date/i18n/date_%locale_with_underscore%.ts", - }, - { - "source": "plugins/quick_note/i18n/quick_note_en.ts", - "translation": "plugins/quick_note/i18n/quick_note_%locale_with_underscore%.ts", - }, - { - "source": "plugins/random_position/i18n/random_position_en.ts", - "translation": "plugins/random_position/i18n/random_position_%locale_with_underscore%.ts", - }, - { - "source": "plugins/spectrum_clock/i18n/spectrum_clock_en.ts", - "translation": "plugins/spectrum_clock/i18n/spectrum_clock_%locale_with_underscore%.ts", - }, - { - "source": "plugins/stopwatch/i18n/stopwatch_en.ts", - "translation": "plugins/stopwatch/i18n/stopwatch_%locale_with_underscore%.ts", - }, - { - "source": "plugins/var_translucency/i18n/var_translucency_en.ts", - "translation": "plugins/var_translucency/i18n/var_translucency_%locale_with_underscore%.ts", + "source": "**/*_en.ts", + "translation": "%original_path%/%file_name%_%two_letters_code%.ts", + "translation_replace": { + "_en": "", + }, + "ignore": [ + "build/**", + "plugins/sample/**", + ], }, ] diff --git a/plugin_core/i18n/plugin_core_ru_RU.ts b/plugin_core/i18n/plugin_core_ru.ts similarity index 100% rename from plugin_core/i18n/plugin_core_ru_RU.ts rename to plugin_core/i18n/plugin_core_ru.ts diff --git a/plugins/any_zoom/i18n/any_zoom_ru_RU.ts b/plugins/any_zoom/i18n/any_zoom_ru.ts similarity index 100% rename from plugins/any_zoom/i18n/any_zoom_ru_RU.ts rename to plugins/any_zoom/i18n/any_zoom_ru.ts diff --git a/plugins/chime/i18n/chime_ru_RU.ts b/plugins/chime/i18n/chime_ru.ts similarity index 100% rename from plugins/chime/i18n/chime_ru_RU.ts rename to plugins/chime/i18n/chime_ru.ts diff --git a/plugins/countdown_timer/i18n/countdown_timer_ru_RU.ts b/plugins/countdown_timer/i18n/countdown_timer_ru.ts similarity index 100% rename from plugins/countdown_timer/i18n/countdown_timer_ru_RU.ts rename to plugins/countdown_timer/i18n/countdown_timer_ru.ts diff --git a/plugins/date/i18n/date_ru_RU.ts b/plugins/date/i18n/date_ru.ts similarity index 100% rename from plugins/date/i18n/date_ru_RU.ts rename to plugins/date/i18n/date_ru.ts diff --git a/plugins/quick_note/i18n/quick_note_ru_RU.ts b/plugins/quick_note/i18n/quick_note_ru.ts similarity index 100% rename from plugins/quick_note/i18n/quick_note_ru_RU.ts rename to plugins/quick_note/i18n/quick_note_ru.ts diff --git a/plugins/random_position/i18n/random_position_ru_RU.ts b/plugins/random_position/i18n/random_position_ru.ts similarity index 100% rename from plugins/random_position/i18n/random_position_ru_RU.ts rename to plugins/random_position/i18n/random_position_ru.ts diff --git a/plugins/sample/i18n/sample_ru_RU.ts b/plugins/sample/i18n/sample_ru.ts similarity index 100% rename from plugins/sample/i18n/sample_ru_RU.ts rename to plugins/sample/i18n/sample_ru.ts diff --git a/plugins/spectrum_clock/i18n/spectrum_clock_ru_RU.ts b/plugins/spectrum_clock/i18n/spectrum_clock_ru.ts similarity index 100% rename from plugins/spectrum_clock/i18n/spectrum_clock_ru_RU.ts rename to plugins/spectrum_clock/i18n/spectrum_clock_ru.ts diff --git a/plugins/stopwatch/i18n/stopwatch_ru_RU.ts b/plugins/stopwatch/i18n/stopwatch_ru.ts similarity index 100% rename from plugins/stopwatch/i18n/stopwatch_ru_RU.ts rename to plugins/stopwatch/i18n/stopwatch_ru.ts diff --git a/plugins/var_translucency/i18n/var_translucency_ru_RU.ts b/plugins/var_translucency/i18n/var_translucency_ru.ts similarity index 100% rename from plugins/var_translucency/i18n/var_translucency_ru_RU.ts rename to plugins/var_translucency/i18n/var_translucency_ru.ts