nymea-app-energy-overlay/updatetranslations.sh

19 lines
404 B
Bash
Executable File

#!/bin/bash
SOURCE_PATHS=common/ui/
for BRANDING in brandings/*; do
if [ -d $BRANDING ]; then
if [ ! -d $BRANDING/ui ]; then
echo "Warning: Could not find ui directory in $BRANDING"
continue
fi
# echo "Adding source path $BRANDING/ui"
SOURCE_PATHS="$SOURCE_PATHS $BRANDING/ui"
fi
done
lupdate $SOURCE_PATHS -ts translations/*.ts -no-obsolete