mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
30 lines
1.5 KiB
Bash
Executable File
30 lines
1.5 KiB
Bash
Executable File
|
|
# after pulling with txpull, this script pushes all local files back to transifex
|
|
# this is esp. useful as you can modifiy the english source strings in between - without breaking all translations afterwards.
|
|
|
|
rm -r translations
|
|
tx pull -a -s # -s fetches the source file, we do not copy it, but we need it for pushing back
|
|
|
|
TXPREFIX="translations/delta-chat-android.stringsxml/ " # yes, there are spaces. don't know why
|
|
SRCPREFIX="../MessengerProj/src/main/res/values"
|
|
|
|
cp "${TXPREFIX}ca.xml" "${SRCPREFIX}-ca/strings.xml"
|
|
cp "${TXPREFIX}de.xml" "${SRCPREFIX}-de/strings.xml"
|
|
# "${TXPREFIX}en.xml" "${SRCPREFIX}/strings.xml" # we do not copy the source as the source cannot be modified at Trasifex
|
|
cp "${TXPREFIX}es.xml" "${SRCPREFIX}-es/strings.xml"
|
|
cp "${TXPREFIX}fr.xml" "${SRCPREFIX}-fr/strings.xml"
|
|
cp "${TXPREFIX}hu.xml" "${SRCPREFIX}-hu/strings.xml"
|
|
cp "${TXPREFIX}it.xml" "${SRCPREFIX}-it/strings.xml"
|
|
cp "${TXPREFIX}ko.xml" "${SRCPREFIX}-ko/strings.xml"
|
|
cp "${TXPREFIX}nb_NO.xml" "${SRCPREFIX}-nb/strings.xml"
|
|
cp "${TXPREFIX}nl.xml" "${SRCPREFIX}-nl/strings.xml"
|
|
cp "${TXPREFIX}pl.xml" "${SRCPREFIX}-pl/strings.xml"
|
|
cp "${TXPREFIX}pt.xml" "${SRCPREFIX}-pt/strings.xml"
|
|
cp "${TXPREFIX}ru.xml" "${SRCPREFIX}-ru/strings.xml"
|
|
cp "${TXPREFIX}sr.xml" "${SRCPREFIX}-sr/strings.xml"
|
|
cp "${TXPREFIX}ta.xml" "${SRCPREFIX}-ta/strings.xml"
|
|
cp "${TXPREFIX}te.xml" "${SRCPREFIX}-te/strings.xml"
|
|
cp "${TXPREFIX}tr.xml" "${SRCPREFIX}-tr/strings.xml"
|
|
cp "${TXPREFIX}uk.xml" "${SRCPREFIX}-uk/strings.xml"
|
|
|