Commit 8b12cb7a authored by Ricki Hirner's avatar Ricki Hirner

Fetch translations from Transifex

parent 07c5cdc7
<?xml version='1.0' encoding='UTF-8'?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!--common strings-->
<string name="address_books_authority_title">دفترچه‌های آدرس</string>
<string name="help">راهنما</string>
<string name="manage_accounts">مدیریت حساب‌ها</string>
<string name="please_wait">کمی صبر کنید …</string>
<string name="send">ارسال</string>
<string name="notification_channel_debugging">عیب‌یابی</string>
<string name="notification_channel_general">سایر پیام‌های مهم</string>
<string name="notification_channel_sync">همگام‌سازی</string>
<string name="notification_channel_sync_errors">خطاهای همگام‌سازی</string>
<string name="notification_channel_sync_io_errors">خطاهای شبکه</string>
<!--startup dialogs-->
<!--AboutActivity-->
<!--global settings-->
<!--AccountsActivity-->
<!--DavService-->
<!--AppSettingsActivity-->
<!--AccountActivity-->
<!--AddAccountActivity-->
<!--AccountSettingsActivity-->
<!--collection management-->
<string name="create_addressbook">ساخت دفترچه آدرس </string>
<string name="create_addressbook_display_name_hint">دفترچه آدرس من</string>
<string name="create_calendar_display_name_hint">تقویم من</string>
<string name="create_collection_create">ساخته شدن</string>
<string name="delete_collection_confirm_title">آیا مطمءن هستین؟</string>
<!--ExceptionInfoFragment-->
<!--sync adapters and DebugInfoActivity-->
<!--cert4android-->
</resources>
<?xml version='1.0' encoding='UTF-8'?>
<resources xmlns:tools="http://schemas.android.com/tools">
<!--common strings-->
<string name="address_books_authority_title">Seznami s stiki</string>
<string name="help">Pomoč</string>
<string name="manage_accounts">Urejanje prijav</string>
<string name="please_wait">Počakajte …</string>
<string name="send">Pošlji</string>
<!--startup dialogs-->
<string name="startup_dont_show_again">Ne pokaži več</string>
<string name="startup_donate">Odprtokodne informacije</string>
<string name="startup_donate_now">Pojdi na stran donacij</string>
<string name="startup_donate_later">Morda kasneje</string>
<string name="startup_google_play_accounts_removed">Napaka DRM trgovine Google Play</string>
<!--AboutActivity-->
<!--global settings-->
<!--AccountsActivity-->
<!--DavService-->
<!--AppSettingsActivity-->
<!--AccountActivity-->
<!--AddAccountActivity-->
<!--AccountSettingsActivity-->
<!--collection management-->
<!--ExceptionInfoFragment-->
<!--sync adapters and DebugInfoActivity-->
<!--cert4android-->
</resources>
#!/bin/bash
declare -A android
android=([ar_SA]=ar [ca]=ca [cs]=cs [da]=da [de]=de [es]=es [fr]=fr [hu]=hu [it]=it [ja]=ja [nl]=nl [nb_NO]=nb-rNO [pl]=pl [pt]=pt [pt_BR]=pt-rBR [ru]=ru [sr]=sr [tr_TR]=tr-rTR [uk]=uk [zh_CN]=zh-rCN [zh_TW]=zh-rTW)
android=([ar_SA]=ar [ca]=ca [cs]=cs [da]=da [de]=de [es]=es [fa]=fa [fr]=fr [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)
for lang in ${!android[@]}
do
......@@ -9,9 +9,9 @@ do
target_cert4android=../cert4android/src/main/res/values-${android[$lang]}
mkdir -p $target_app
curl -n "https://www.transifex.com/api/2/project/davdroid/resource/app/translation/$lang?file" |
curl -n "https://www.transifex.com/api/2/project/davx5/resource/app/translation/$lang?file" |
sed 's/\.\.\./…/g' > $target_app/strings.xml
#mkdir -p $target_cert4android
#curl -n "https://www.transifex.com/api/2/project/davdroid/resource/cert4android/translation/$lang?file" >$target_cert4android/strings.xml
#curl -n "https://www.transifex.com/api/2/project/davx5/resource/cert4android/translation/$lang?file" >$target_cert4android/strings.xml
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment