2015-08-12 06:50:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Transka executable.
|
2016-04-06 10:17:28 +02:00
|
|
|
TRANSKA=./transka
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
# Get credentials.
|
|
|
|
read -p "Username: " USERNAME
|
|
|
|
read -p "Password: " PASSWORD
|
|
|
|
|
|
|
|
# Setup parameters.
|
2016-04-06 10:17:28 +02:00
|
|
|
RESOURCE=../../../localization/rssguard-en_GB.ts
|
2016-04-05 06:43:29 +02:00
|
|
|
CODES="cs_CZ da_DK de_DE en_US fr_FR he_IL id_ID it_IT ja_JP lt_LT nl_NL pt_BR sv_SE"
|
2016-04-06 10:17:28 +02:00
|
|
|
TRANSLATION='../../../localization/rssguard-$CODE.ts'
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
declare PARAMS
|
|
|
|
|
2016-04-06 10:17:28 +02:00
|
|
|
PARAMS+="-u "$USERNAME" -p "$PASSWORD" -ps "rssguard" -rs "rssguard" -ur "$RESOURCE" "
|
2015-08-12 06:50:58 +02:00
|
|
|
|
|
|
|
for CODE in $CODES; do
|
2016-04-06 10:17:28 +02:00
|
|
|
PARAMS+="-dt "$CODE" "$(eval echo $TRANSLATION)" "
|
2015-08-12 06:50:58 +02:00
|
|
|
done
|
|
|
|
|
2016-04-06 10:17:28 +02:00
|
|
|
cd ./transka
|
|
|
|
|
2015-08-12 06:50:58 +02:00
|
|
|
$TRANSKA $PARAMS
|