mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
Metadata: allow translations over Transifex
This commit is contained in:
5
fastlane/metadata/android/de/full_description.txt
Normal file
5
fastlane/metadata/android/de/full_description.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
DAVx⁵ (vormals DAVdroid) ist eine CalDAV/CardDAV-Verwaltungs- und Synchronisierungs-App für Android, die sich nahtlos mit Kalender- und Kontakte-Apps integriert.
|
||||
|
||||
Mit DAVx⁵ haben Sie Ihre Kontakte, Termine und Aufgaben auf Ihrem eigenen Server oder einem vertrauenswürdigen CalDAV/CardDAV-Dienst unter eigener Kontrolle!
|
||||
|
||||
Weitere Informationen und eine Liste der getesteten Server/Dienste finden sich auf der Website.
|
||||
1
fastlane/metadata/android/de/short_description.txt
Normal file
1
fastlane/metadata/android/de/short_description.txt
Normal file
@@ -0,0 +1 @@
|
||||
CalDAV/CardDAV-Synchronisierung und -Client
|
||||
@@ -1 +1 @@
|
||||
CalDAV/CardDAV Synchronization
|
||||
CalDAV/CardDAV Synchronization and Client
|
||||
|
||||
@@ -3,7 +3,25 @@
|
||||
declare -A android
|
||||
android=([ar_SA]=ar [ca]=ca [cs]=cs [da]=da [de]=de [el]=el [es]=es [fa]=fa [fr]=fr [gl]=gl [hu]=hu [it]=it [ja]=ja [nl]=nl [nb_NO]=nb-rNO [pl]=pl [pt]=pt [pt_BR]=pt-rBR [ru]=ru [sl_SI]=sl-rSI [sr]=sr [tr_TR]=tr-rTR [uk]=uk [zh_CN]=zh-rCN [zh_TW]=zh-rTW)
|
||||
|
||||
BASE_DIR=`realpath -L $0 | xargs dirname`/../
|
||||
BASE_DIR=`realpath -L $0 | xargs dirname`/..
|
||||
|
||||
|
||||
function fetch_txt {
|
||||
URL=$1
|
||||
LANG=$2
|
||||
FILE=$3
|
||||
|
||||
TRANSLATIONS=`mktemp`
|
||||
curl -sn $1 >$TRANSLATIONS
|
||||
diff --ignore-trailing-space -aq $TRANSLATIONS $BASE_DIR/fastlane/metadata/android/en-US/$FILE
|
||||
if [[ $? -ne 0 ]]; then
|
||||
# translations are not the same as en-us
|
||||
mkdir -p $BASE_DIR/fastlane/metadata/android/$LANG
|
||||
mv $TRANSLATIONS $BASE_DIR/fastlane/metadata/android/$LANG/$FILE
|
||||
fi
|
||||
rm -f $TRANSLATIONS
|
||||
}
|
||||
|
||||
|
||||
for lang in ${!android[@]}
|
||||
do
|
||||
@@ -11,10 +29,16 @@ do
|
||||
target_app=$BASE_DIR/app/src/main/res/values-${android[$lang]}
|
||||
target_cert4android=$BASE_DIR/cert4android/src/main/res/values-${android[$lang]}
|
||||
|
||||
echo -e '\tapp strings'
|
||||
mkdir -p $target_app
|
||||
curl -n "https://www.transifex.com/api/2/project/davx5/resource/app/translation/$lang?file" |
|
||||
curl -sn "https://www.transifex.com/api/2/project/davx5/resource/app/translation/$lang?file" |
|
||||
sed 's/\.\.\./…/g' > $target_app/strings.xml
|
||||
|
||||
echo -e '\tcert4android'
|
||||
#mkdir -p $target_cert4android
|
||||
#curl -n "https://www.transifex.com/api/2/project/davx5/resource/cert4android/translation/$lang?file" >$target_cert4android/strings.xml
|
||||
#curl -sn "https://www.transifex.com/api/2/project/davx5/resource/cert4android/translation/$lang?file" >$target_cert4android/strings.xml
|
||||
|
||||
echo -e '\tmetadata'
|
||||
fetch_txt "https://www.transifex.com/api/2/project/davx5/resource/metadata-full-description/translation/$lang?file" ${android[$lang]} full_description.txt
|
||||
fetch_txt "https://www.transifex.com/api/2/project/davx5/resource/metadata-short-description/translation/$lang?file" ${android[$lang]} short_description.txt
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user