Skip to content

Commit

Permalink
translation files updated with script (old one)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12332 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
macho committed Dec 3, 2009
1 parent 51265a5 commit 8d3d28a
Show file tree
Hide file tree
Showing 33 changed files with 8,532 additions and 131,943 deletions.
2,465 changes: 666 additions & 1,799 deletions i18n/qgis_ar.ts

Large diffs are not rendered by default.

1,934 changes: 579 additions & 1,355 deletions i18n/qgis_cs_CZ.ts

Large diffs are not rendered by default.

746 changes: 381 additions & 365 deletions i18n/qgis_de.ts

Large diffs are not rendered by default.

2,133 changes: 493 additions & 1,640 deletions i18n/qgis_el_GR.ts

Large diffs are not rendered by default.

668 changes: 304 additions & 364 deletions i18n/qgis_es.ts

Large diffs are not rendered by default.

5,747 changes: 335 additions & 5,412 deletions i18n/qgis_fr.ts

Large diffs are not rendered by default.

6,662 changes: 193 additions & 6,469 deletions i18n/qgis_he.ts

Large diffs are not rendered by default.

5,805 changes: 302 additions & 5,503 deletions i18n/qgis_hu.ts

Large diffs are not rendered by default.

6,635 changes: 181 additions & 6,454 deletions i18n/qgis_id.ts

Large diffs are not rendered by default.

5,753 changes: 338 additions & 5,415 deletions i18n/qgis_it.ts

Large diffs are not rendered by default.

6,621 changes: 181 additions & 6,440 deletions i18n/qgis_ja.ts

Large diffs are not rendered by default.

6,330 changes: 70 additions & 6,260 deletions i18n/qgis_ka_GE.ts

Large diffs are not rendered by default.

6,625 changes: 187 additions & 6,438 deletions i18n/qgis_lo.ts

Large diffs are not rendered by default.

6,669 changes: 198 additions & 6,471 deletions i18n/qgis_lt.ts

Large diffs are not rendered by default.

5,831 changes: 290 additions & 5,541 deletions i18n/qgis_lv.ts

Large diffs are not rendered by default.

6,632 changes: 191 additions & 6,441 deletions i18n/qgis_mn.ts

Large diffs are not rendered by default.

923 changes: 560 additions & 363 deletions i18n/qgis_nl.ts

Large diffs are not rendered by default.

626 changes: 331 additions & 295 deletions i18n/qgis_pl_PL.ts

Large diffs are not rendered by default.

6,270 changes: 255 additions & 6,015 deletions i18n/qgis_pt_BR.ts

Large diffs are not rendered by default.

6,670 changes: 204 additions & 6,466 deletions i18n/qgis_ro.ts

Large diffs are not rendered by default.

5,784 changes: 311 additions & 5,473 deletions i18n/qgis_ru.ts

Large diffs are not rendered by default.

6,633 changes: 220 additions & 6,413 deletions i18n/qgis_sk.ts

Large diffs are not rendered by default.

6,630 changes: 190 additions & 6,440 deletions i18n/qgis_sq_AL.ts

Large diffs are not rendered by default.

6,037 changes: 186 additions & 5,851 deletions i18n/qgis_sv.ts

Large diffs are not rendered by default.

5,795 changes: 305 additions & 5,490 deletions i18n/qgis_th.ts

Large diffs are not rendered by default.

6,604 changes: 218 additions & 6,386 deletions i18n/qgis_tr.ts

Large diffs are not rendered by default.

6,277 changes: 88 additions & 6,189 deletions i18n/qgis_uk.ts

Large diffs are not rendered by default.

792 changes: 242 additions & 550 deletions i18n/qgis_vi.ts

Large diffs are not rendered by default.

1,523 changes: 182 additions & 1,341 deletions i18n/qgis_xh.ts

Large diffs are not rendered by default.

1,526 changes: 198 additions & 1,328 deletions i18n/qgis_zh_CN.ts

Large diffs are not rendered by default.

1,056 changes: 126 additions & 930 deletions i18n/qgis_zh_TW.ts

Large diffs are not rendered by default.

47 changes: 6 additions & 41 deletions scripts/update_ts_files.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Update the translation files with strings used in QGIS
# 1. create a clean Qt .pro file for the project
# 2. run lupdate using the .pro file from step 1
Expand All @@ -7,53 +7,18 @@
# name is reserved for the Windows qmake project file
# update_ts_files.sh,v 1.3 2004/07/14 18:16:24 gsherman Exp

set -e

PATH=$QTDIR/bin:$PATH

#first tar the qt_xx.ts files in i18n folder such that lupdate does not
#merge the qgis strings to them
echo Creating qt_ts.tar
tar --remove-files -cvf i18n/qt_ts.tar i18n/qt_*.ts
exclude=
opts=
for i in "$@"; do
if [ -f "i18n/qgis_$i.ts" ]; then
exclude="$exclude --exclude i18n/qgis_$i.ts"
else
opts=" $i"
fi
done
if [ -n "$exclude" ]; then
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
fi
echo Updating python translations
cd python
pylupdate4 utils.py -ts python-i18n.ts
perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
rm python-i18n.ts
cd ..
for i in python/plugins/*/CMakeLists.txt; do
cd ${i%/*}
pylupdate4 $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts
perl ../../../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
rm python-i18n.ts
cd ../../..
done
tar -cvf i18n/qt_ts.tar i18n/qt_*.ts
rm i18n/qt_*.ts
echo Creating qmake project file
qmake -project -o qgis_ts.pro -nopwd src python i18n
qmake -project -o qgis_ts.pro
echo Updating translation files
lupdate$opts -verbose qgis_ts.pro
echo Removing temporary python translation files
perl -i.bak -ne 'print unless /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
rm python/python-i18n.cpp python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
lupdate -verbose qgis_ts.pro
echo Removing qmake project file
rm qgis_ts.pro
echo Unpacking qt_ts.tar
tar -xvf i18n/qt_ts.tar
rm i18n/qt_ts.tar
if [ -f i18n/qgis_ts.tar ]; then
echo Unpacking i18n/qgis_ts.tar
tar -xvf i18n/qgis_ts.tar
rm i18n/qgis_ts.tar
fi
tar -xvf i18n/qt_ts.tar
26 changes: 21 additions & 5 deletions src/ui/qgspgsourceselectbase.ui
Expand Up @@ -165,7 +165,7 @@
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Open</set>
</property>
</widget>
</item>
Expand Down Expand Up @@ -195,12 +195,28 @@
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>353</x>
<y>446</y>
<x>265</x>
<y>449</y>
</hint>
<hint type="destinationlabel">
<x>404</x>
<y>421</y>
<x>399</x>
<y>310</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>QgsPgSourceSelectBase</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>368</x>
<y>450</y>
</hint>
<hint type="destinationlabel">
<x>401</x>
<y>377</y>
</hint>
</hints>
</connection>
Expand Down

0 comments on commit 8d3d28a

Please sign in to comment.