rssguard/resources/scripts/update-localizations.sh
Martin Rotter 09f3181330 Lang sync.
2016-06-22 21:42:42 +02:00

25 lines
521 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 fr he id it ja lt nl pt sv"
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