From 784c69fb3bd460a2ee6291cbce4cb721ecff8d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20=20Sch=C3=BCller?= Date: Sun, 2 Jan 2022 00:20:03 +0100 Subject: [PATCH] fix: fixed broken languages --- ci-scripts/validate-play-store-lang.sh | 25 ++++++++++++++----- .../android/pt-BR/short_description.txt | 1 + fastlane/metadata/android/pt-BR/title.txt | 1 + 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 fastlane/metadata/android/pt-BR/short_description.txt create mode 100644 fastlane/metadata/android/pt-BR/title.txt diff --git a/ci-scripts/validate-play-store-lang.sh b/ci-scripts/validate-play-store-lang.sh index 38b4e0b..ef84db8 100755 --- a/ci-scripts/validate-play-store-lang.sh +++ b/ci-scripts/validate-play-store-lang.sh @@ -1,12 +1,25 @@ #!/usr/bin/env bash +# Reset +Color_Off='\033[0m' # Text Reset + +# Regular Colors +Black='\033[0;30m' # Black +Red='\033[0;31m' # Red +Green='\033[0;32m' # Green +Yellow='\033[0;33m' # Yellow +Blue='\033[0;34m' # Blue +Purple='\033[0;35m' # Purple +Cyan='\033[0;36m' # Cyan +White='\033[0;37m' # White + exitcode=0 supportedlangs=(af ar am hy-AM az-AZ eu-ES be bn-BD bg my-MM ca zh-HK zh-CN zh-TW hr cs-CZ da-DK nl-NL en-AU en-CA en-IN en-SG en-GB en-US et fil fi-FI fr-FR fr-CA gl-ES ka-GE de-DE el-GR iw-IL hi-IN hu-HU is-IS id it-IT ja-JP kn-IN km-KH ko-KR ky-KG lo-LA lv lt mk-MK ms ml-IN mr-IN mn-MN ne-NP no-NO fa pl-PL pt-BR pt-PT ro rm ru-RU sr si-LK sk sl es-419 es-ES es-US sq sw sv-SE ta-IN te-IN th tr-TR uk vi zu) readarray -t dirs < <(find fastlane/metadata/android -mindepth 1 -maxdepth 1 -type d -printf '%P\n') -echo "Checking for Valid fastlane files..." +echo -e "${Green}Checking for Valid fastlane files...${Color_Off}" for target in "${supportedlangs[@]}"; do for i in "${!dirs[@]}"; do @@ -18,10 +31,10 @@ done if [[ ${#dirs[@]} -gt 0 ]]; then exitcode=1 - echo "Invalid Lang Play Store Listing found: ${#dirs[@]}" - echo "Invalid Lang codes:${dirs[@]}" + echo -e "${Red}Invalid Lang Play Store Listing found: ${#dirs[@]}${Color_Off}" + echo -e "${Red}Invalid Lang codes:${dirs[@]}${Color_Off}" else - echo "All found lang codes are valid" + echo -e "${Green}All found lang codes are valid${Color_Off}" fi # check we have required files @@ -32,14 +45,14 @@ for d in fastlane/metadata/android/* ; do [ -L "${d%/}" ] && continue for rfile in "${requiredfiles[@]}"; do if test ! -f "$d/$rfile"; then - echo "$d/$rfile missing." + echo -e "${Red}$d/$rfile missing.${Color_Off}" exitcode=1 fi done # check title is under 30 characters if test -f "$d/title.txt"; then if [[ $(wc -m < "$d/title.txt") -gt 30 ]]; then - echo "$d/title.txt title too long." + echo -e "${Red}$d/title.txt title too long.${Color_Off}" exitcode=1 fi fi diff --git a/fastlane/metadata/android/pt-BR/short_description.txt b/fastlane/metadata/android/pt-BR/short_description.txt new file mode 100644 index 0000000..66613a7 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/short_description.txt @@ -0,0 +1 @@ +Thorium é um reprodutor de PeerTube não oficial diff --git a/fastlane/metadata/android/pt-BR/title.txt b/fastlane/metadata/android/pt-BR/title.txt new file mode 100644 index 0000000..49518ba --- /dev/null +++ b/fastlane/metadata/android/pt-BR/title.txt @@ -0,0 +1 @@ +Thorium a PeerTube client \ No newline at end of file