Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions translations-app/handleAppTranslations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ do
for file in $(ls)
do
FILE_SAVE_VERSION=$(echo $version | sed -E 's/\//-/')
echo "############ $file"
mv $file ../../stable-templates/$FILE_SAVE_VERSION.$RESOURCE_ID.pot
echo "############ START stable-templates/$FILE_SAVE_VERSION.$RESOURCE_ID.pot"
cat ../../stable-templates/$FILE_SAVE_VERSION.$RESOURCE_ID.pot
echo "############ END stable-templates/$FILE_SAVE_VERSION.$RESOURCE_ID.pot"
done
cd ../..
done
Expand All @@ -75,12 +79,18 @@ for file in $(ls stable-templates/master.*)
do
name=$(echo $file | cut -b 25- )
msgcat --use-first stable-templates/*.$name > $SOURCE_FILE
echo "############ START $SOURCE_FILE"
cat $SOURCE_FILE
echo "############ END $SOURCE_FILE"
done
# alternative merge of main branch
for file in $(ls stable-templates/main.*)
do
name=$(echo $file | cut -b 23- )
msgcat --use-first stable-templates/*.$name > $SOURCE_FILE
echo "############ START $SOURCE_FILE"
cat $SOURCE_FILE
echo "############ END $SOURCE_FILE"
done

# remove intermediate POT files
Expand Down Expand Up @@ -112,6 +122,10 @@ else
done
fi

echo "############ START translationfiles/$file/$APP_ID.po"
cat translationfiles/$file/$APP_ID.po
echo "############ END translationfiles/$file/$APP_ID.po"

for version in $versions
do
# skip if the branch doesn't exist
Expand All @@ -129,6 +143,10 @@ do
# build JS/JSON based on translations
/translationtool.phar convert-po-files

echo "############ START l10n/de_DE.json"
cat l10n/de_DE.json
echo "############ END l10n/de_DE.json"

if [ -d tests ]; then
# remove tests/
rm -rf tests
Expand Down
Loading