kylin-tablet-desktop-general/kylin-tablet-desktop-backend/translate_generation.sh

15 lines
337 B
Bash
Raw Normal View History

2022-06-17 17:12:22 +08:00
#!/bin/bash
ts_list=(`ls translations/*.ts`)
source /etc/os-release
version=(`echo $ID`)
for ts in "${ts_list[@]}"
do
printf "\nprocess ${ts}\n"
if [ "$version" == "fedora" ] || [ "$version" == "opensuse-leap" ] || [ "$version" == "opensuse-tumbleweed" ];then
lrelease-qt5 "${ts}"
else
lrelease "${ts}"
fi
done