rssguard/resources/scripts/update-localizations.sh
2021-05-31 10:47:12 +02:00

26 lines
561 B
Bash
Executable File

#!/bin/bash
# Transka executable.
TRANSKA=./transka
# Get credentials.
read -p "Username: " USERNAME
read -p "Password: " PASSWORD
# Setup parameters.
RESOURCE=../../../localization/rssguard_en.ts
CODES="cs da de en_GB es fi fr gl he id it ja lt nl pl pt_BR pt_PT ru sv uk zh_CN zh_TW"
TRANSLATION='../../../localization/rssguard_$CODE.ts'
declare PARAMS
PARAMS+="-u "$USERNAME" -p "$PASSWORD" -ps "rssguard" -rs "rssguard" -ur "$RESOURCE" "
for CODE in $CODES; do
PARAMS+="-dt "$CODE" "$(eval echo $TRANSLATION)" "
done
cd ./transka
$TRANSKA $PARAMS