mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-08 06:11:31 +01:00
23 lines
504 B
Bash
23 lines
504 B
Bash
#!/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
|
|
CODES="cs_CZ da_DK de_DE en_US fr_FR it_IT nl_NL sv_SE"
|
|
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 |