From 281c89e32d3ae02bd26581d7cd533550303ae41d Mon Sep 17 00:00:00 2001 From: Rebecca Broens Date: Mon, 6 Jan 2025 10:29:54 +0100 Subject: [PATCH] v10.1.3 Tranlsation fix --- CHANGELOG.md | 3 +++ lib/commands/import/translations_import.rb | 6 +++--- lib/flttr/version.rb | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36a6468..97fbff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## v1.10.3 +- Added new translations for Budiyu support + ## v1.10.1 - Now uses sub command to check if build is for iOS diff --git a/lib/commands/import/translations_import.rb b/lib/commands/import/translations_import.rb index e592ec0..75ad605 100644 --- a/lib/commands/import/translations_import.rb +++ b/lib/commands/import/translations_import.rb @@ -75,7 +75,7 @@ def getTranslations def parse(translations) puts colored :blue, "\n#{CHAR_FLAG} Parsing translations" - allowedLocales = [ "da", "da_DK", "de", "el", "en-AU", "en-CA", "en-GB", "en-US", "es", "es-MX", "fi", "fr-CA", "fr", "id", "it", "ja", "ko", "ms", "nl", "no", "pt-BR", "pt", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant", "appleTV", "iMessage", "default" ] + allowedLocales = [ "nl-BE", "de-CH", "fr-BE", "da", "da_DK", "de", "de-AT", "de_AT", "el", "en-AU", "en-CA", "en-GB", "en-US", "es", "es-MX", "fi", "fr-CA", "fr", "id", "it", "ja", "ko", "ms", "nl", "no", "pt-BR", "pt", "ru", "sv", "th", "tr", "vi", "zh-Hans", "zh-Hant", "appleTV", "iMessage", "default" ] allowedLocales.each { |loc| if loc.length == 2 allowedLocales << "#{loc}-#{loc.upcase}" @@ -135,8 +135,8 @@ def parse(translations) # Last check if we are able to handle the locale if !allowedLocales.include?(localeWithDash) && !allowedLocales.include?(locale) - unless handled_unsupported_locals.include?(locale) - handled_unsupported_locals << locale + unless handledUnsupportedLocals.include?(locale) + handledUnsupportedLocals << locale warn colored :red, "#{CHAR_WARNING} Warning: Unsupported appstore locale: '#{localeWithDash}'" end next diff --git a/lib/flttr/version.rb b/lib/flttr/version.rb index a97bfdf..84c900e 100644 --- a/lib/flttr/version.rb +++ b/lib/flttr/version.rb @@ -1,3 +1,3 @@ module Flttr - VERSION = '1.10.1' + VERSION = '1.10.3' end