Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-30 14:14:40 +0300
committerJoas Schilling <coding@schilljs.com>2022-09-30 14:15:48 +0300
commita6869ef4a3b546b3fe95f99674f87aef372dab49 (patch)
tree9d3b6c1575bcb22fca9114f1c51188f5da804ebf
parent6d3fbda00511d640fee915d803897e6a2411c172 (diff)
Migrate the transifex config in all reposbugfix/409/fix-socialsharing-translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rwxr-xr-xtranslations-app/handleAppTranslations.sh8
-rw-r--r--translations/Dockerfile-Apps2
-rwxr-xr-xtranslations/handleAppsTranslations.sh7
-rwxr-xr-xtranslations/handleTranslations.sh8
4 files changed, 24 insertions, 1 deletions
diff --git a/translations-app/handleAppTranslations.sh b/translations-app/handleAppTranslations.sh
index 61b16a4..6b9d96b 100755
--- a/translations-app/handleAppTranslations.sh
+++ b/translations-app/handleAppTranslations.sh
@@ -11,6 +11,14 @@ gpg --list-keys
# fetch git repo
git clone git@github.com:$1/$2 /app
+# Migrate the transifex config to the new client version
+cd /app
+tx migrate
+git add .tx/config
+git commit -am "[tx-robot] Update transifex configuration" -s || true
+git push
+cd -
+
if [ ! -f '/app/.tx/config' ]; then
echo "Missing transifex configuration file .tx/config"
exit 1
diff --git a/translations/Dockerfile-Apps b/translations/Dockerfile-Apps
index 880a71d..e23f91a 100644
--- a/translations/Dockerfile-Apps
+++ b/translations/Dockerfile-Apps
@@ -1,4 +1,4 @@
-FROM ghcr.io/nextcloud/continuous-integration-translations-new:latest
+FROM ghcr.io/nextcloud/continuous-integration-translations:latest
MAINTAINER Morris Jobke <hey@morrisjobke.de>
diff --git a/translations/handleAppsTranslations.sh b/translations/handleAppsTranslations.sh
index 1d968a1..e651627 100755
--- a/translations/handleAppsTranslations.sh
+++ b/translations/handleAppsTranslations.sh
@@ -21,6 +21,13 @@ do
cd "$app"
+ # Migrate the transifex config to the new client version
+ tx migrate
+ git add .tx/config
+ git commit -am "[tx-robot] Update transifex configuration" -s || true
+ git push
+
+
# build POT files
/translationtool.phar create-pot-files
diff --git a/translations/handleTranslations.sh b/translations/handleTranslations.sh
index 19bd9ad..24c7540 100755
--- a/translations/handleTranslations.sh
+++ b/translations/handleTranslations.sh
@@ -11,6 +11,14 @@ gpg --list-keys
# fetch git repo
git clone git@github.com:nextcloud/server /app
+# Migrate the transifex config to the new client version
+cd /app
+tx migrate
+git add .tx/config
+git commit -am "[tx-robot] Update transifex configuration" -s || true
+git push
+cd -
+
# TODO use build/l10nParseAppInfo.php to fetch app names for l10n
versions='stable22 stable23 stable24 master'