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.
|
2017-02-08 10:27:37 +01:00
|
|
|
RESOURCE=../../../localization/rssguard_en.ts
|
2021-01-12 07:45:26 +01:00
|
|
|
CODES="cs da de es fi fr gl he id it ja lt nl pl pt_BR pt_PT ru sv uk zh_CN zh_TW"
|
2017-02-08 09:38:23 +01: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
|
|
|
|
|
2021-01-12 07:45:26 +01:00
|
|
|
$TRANSKA $PARAMS
|