diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-08-11 07:30:46 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-08-11 07:30:46 +0000 |
| commit | 22cf3c55368be9361b43eb002e7a2fb7f2868ac2 (patch) | |
| tree | 6fb4ee81c620e9325e9c458415969889137eafa9 /utils/update_ts.sh | |
| parent | 66ae3455440fd17dd651e2c42f178779c73be006 (diff) | |
| download | qmmp-22cf3c55368be9361b43eb002e7a2fb7f2868ac2.tar.gz qmmp-22cf3c55368be9361b43eb002e7a2fb7f2868ac2.tar.bz2 qmmp-22cf3c55368be9361b43eb002e7a2fb7f2868ac2.zip | |
updated text resources
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5362 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'utils/update_ts.sh')
| -rwxr-xr-x | utils/update_ts.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/utils/update_ts.sh b/utils/update_ts.sh index cfe7eb080..fcc70eb6d 100755 --- a/utils/update_ts.sh +++ b/utils/update_ts.sh @@ -78,3 +78,32 @@ do echo " </qresource>" >> $qrc_file echo "</RCC>" >> $qrc_file done + +echo "Updating text resources..." + +qrc_file="../src/qmmpui/txt/txt.qrc" +echo "<!DOCTYPE RCC>" > $qrc_file +echo "<RCC version=\"1.0\">" >> $qrc_file +echo " <qresource>" >> $qrc_file +echo " <file>../../../COPYING</file>" >> $qrc_file +echo "" >> $qrc_file + +echo " <file>description.txt</file>" >> $qrc_file +echo " <file>authors.txt</file>" >> $qrc_file +echo " <file>thanks.txt</file>" >> $qrc_file +echo " <file>translators.txt</file>" >> $qrc_file +echo "" >> $qrc_file + +for txt_file in `find ../src/qmmpui/txt -type f -name "authors_*"` +do + locale=`echo $txt_file | cut -d '_' -f 2,3 | cut -d '.' -f 1` + echo "Adding ${locale}" + echo " <file>description_${locale}.txt</file>" >> $qrc_file + echo " <file>authors_${locale}.txt</file>" >> $qrc_file + echo " <file>thanks_${locale}.txt</file>" >> $qrc_file + echo " <file>translators_${locale}.txt</file>" >> $qrc_file + echo "" >> $qrc_file +done + +echo " </qresource>" >> $qrc_file +echo "</RCC>" >> $qrc_file |
