2015-08-12 06:50:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Transka executable.
|
|
|
|
TRANSKA=./transka/transka
|
|
|
|
|
|
|
|
# Get credentials.
|
|
|
|
read -p "Username: " USERNAME
|
|
|
|
read -p "Password: " PASSWORD
|
|
|
|
|
|
|
|
# Setup parameters.
|
|
|
|
RESOURCE=../../localization/rssguard-en_GB.ts
|
2016-01-22 12:27:39 +01:00
|
|
|
CODES="cs_CZ da_DK de_DE en_US fr_FR it_IT nl_NL pt_BR sv_SE"
|
2015-08-12 06:50:58 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
$TRANSKA $PARAMS
|