Skip to content


remove location from temporary python translation files from ts files
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jul 1, 2009
1 parent 6b915bf commit 1d5ca8d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/
Expand Up @@ -7,6 +7,8 @@
# name is reserved for the Windows qmake project file
#,v 1.3 2004/07/14 18:16:24 gsherman Exp

set -e


#first tar the qt_xx.ts files in i18n folder such that lupdate does not
Expand All @@ -17,17 +19,18 @@ rm i18n/qt_*.ts
echo Updating python plugin translations
for i in python/plugins/*/.; do
cd $i
pylupdate4 $(find . -name "*.py") -ts i18n.ts
perl ../../../scripts/ i18n.ts i18n.cpp
rm i18n.ts
pylupdate4 $(find . -name "*.py") -ts python-i18n.ts
perl ../../../scripts/ python-i18n.ts python-i18n.cpp
rm python-i18n.ts
cd ../../..
echo Creating qmake project file
qmake -project -o -nopwd src python i18n
echo Updating translation files
lupdate -verbose
echo Removing temporary python plugin translation files
rm python/plugins/*/i18n.cpp
perl -i.bak -pe '$_="" if /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
rm python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
echo Removing qmake project file
echo Unpacking qt_ts.tar
Expand Down

0 comments on commit 1d5ca8d

Please sign in to comment.