You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
425 B
12 lines
425 B
1 year ago
|
#!/bin/bash
|
||
|
langList=('en_US' 'es_ES' 'zh_CN')
|
||
|
for i in ${langList[@]}; do
|
||
|
targetFile="src/translations/lubuntu-installer-prompt_$i.ts"
|
||
|
if [ ! -e $targetFile ]; then
|
||
|
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > $targetFile
|
||
|
echo "<!DOCTYPE TS>" >> $targetFile
|
||
|
echo "<TS version=\"2.1\" language=\"$i\"></TS>" >> $targetFile
|
||
|
fi
|
||
|
done
|
||
|
lupdate src/*.cpp src/*.h src/*.ui -ts src/translations/*
|