From eaf5b290bdc768cc51f8c28156921fdadefb2f07 Mon Sep 17 00:00:00 2001 From: Andreas Heigl Date: Tue, 2 Feb 2021 07:17:49 +0100 Subject: [PATCH 1/2] Fix issue with pt_BR not being updated Due to the lower-case name of the repo-folder and the mixed-case language name the brazilian translation was not updated. This commit fixes this --- update-docs-sources | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-docs-sources b/update-docs-sources index 8dc8d8b..8ac37a6 100755 --- a/update-docs-sources +++ b/update-docs-sources @@ -13,7 +13,8 @@ done langs=`/usr/bin/php -r 'include "/local/src/phpweb/include/languages.inc"; echo implode( " ", array_keys( $ACTIVE_ONLINE_LANGUAGES ) );'`; langs="base $langs" for i in $langs; do - cd /local/src/phpdoc-git/$i + lang=`echo "$i" | tr '[:upper:]' '[:lower:]'` + cd /local/src/phpdoc-git/$lang git fetch origin && git reset --hard origin/master done From 05d6c824c34afc88a42824f489026d261a9bc879 Mon Sep 17 00:00:00 2001 From: Andreas Heigl Date: Tue, 2 Feb 2021 11:06:43 +0100 Subject: [PATCH 2/2] Make sure languagefolders are lowercase This should fix issues with the brazilian translation. Worst case is that the brazilian translation is checked out again and that we now have a `pt_br` and a `pt_BR` folder on the rsync machine. --- build-docs-rsync | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-docs-rsync b/build-docs-rsync index 0d42b1c..d4bae28 100755 --- a/build-docs-rsync +++ b/build-docs-rsync @@ -32,8 +32,9 @@ cd $BASE_DIR for i in $langs; do # Update the translation files - assertUpToDateRepo $i $i - /bin/bash /local/systems/build-docs-lang-rsync $i >>/tmp/log-$i 2>&1; + folder=`echo "$i" | tr '[:upper:]' '[:lower:]'` + assertUpToDateRepo $folder $i + /bin/bash /local/systems/build-docs-lang-rsync $folder >>/tmp/log-$i 2>&1; done # Build manual lookup db