2015-01-02 15:07:48 +00:00
|
|
|
cd ../../
|
2016-04-05 07:45:53 +00:00
|
|
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
2016-04-09 11:18:43 +00:00
|
|
|
tx pull -f -l $line --minimum-perc=100
|
2016-04-05 07:45:53 +00:00
|
|
|
done < tdesktop/Telegram/Resources/LangList
|
2015-01-02 15:07:48 +00:00
|
|
|
cd translations/telegram-desktop.langstrings/
|
|
|
|
for file in *.strings; do
|
2016-04-09 13:56:40 +00:00
|
|
|
iconv -f "UTF-16LE" -t "UTF-8" "$file" > "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp"
|
|
|
|
awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); sub(/
/,""); print }' "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" > "../../tdesktop/Telegram/Resources/langs/lang_$file"
|
|
|
|
rm "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp"
|
2015-01-02 15:07:48 +00:00
|
|
|
done
|
|
|
|
cd ../../tdesktop/Telegram/
|
2016-04-09 13:56:40 +00:00
|
|
|
touch Resources/telegram.qrc
|