Skip to content

Commit

Permalink
Merge pull request #613 from nextcloud/bugfix/noid/adjust-translated-…
Browse files Browse the repository at this point in the history
…branches

fix(translations): Use main/master branch app description for transl…
  • Loading branch information
blizzz authored Nov 17, 2023
2 parents 442e99f + dc59974 commit 0fdac0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 3 additions & 5 deletions translations-app/handleAppTranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ fi

# TODO use build/l10nParseAppInfo.php to fetch app names for l10n

versions='stable26 stable27 stable28 master main'
versions='main master stable28 stable27 stable26'
if [ -f '/app/.tx/backport' ]; then
versions="$(cat /app/.tx/backport) master main"
versions="main master $(cat /app/.tx/backport)"
fi

# build POT files for all versions
Expand Down Expand Up @@ -111,9 +111,7 @@ else
done
fi

# reverse version list to apply backports
backportVersions=$(echo $versions | awk '{for(i=NF;i>=1;i--) printf "%s ", $i;print ""}')
for version in $backportVersions
for version in $versions
do
# skip if the branch doesn't exist
if git branch -r | egrep "^\W*origin/$version$" ; then
Expand Down
5 changes: 2 additions & 3 deletions translations/handleTranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd -

# TODO use build/l10nParseAppInfo.php to fetch app names for l10n

versions='stable26 stable27 stable28 master'
versions='master stable28 stable27 stable26'

# build POT files for all versions
mkdir stable-templates
Expand Down Expand Up @@ -69,8 +69,7 @@ tx pull -a -f -r nextcloud.lib --minimum-perc=0
# pull 20% of "settings" translations for the region name
tx pull -a -f -r nextcloud.settings-1 --minimum-perc=20

backportVersions=$(echo $versions | awk '{for(i=NF;i>=1;i--) printf "%s ", $i;print ""}')
for version in $backportVersions
for version in $versions
do
# skip if the branch doesn't exist
if git branch -r | egrep "^\W*origin/$version$" ; then
Expand Down

0 comments on commit 0fdac0a

Please sign in to comment.