Changeset View
Changeset View
Standalone View
Standalone View
trunk/l10n-kde4/scripts/update_translations
Context not available. | |||||
10 | umask 022 | 10 | umask 022 | ||
---|---|---|---|---|---|
11 | 11 | | |||
12 | extract_desktop() { | 12 | extract_desktop() { | ||
13 | perl ./scripts/createdesktopcontext.pl --file-list=./$1 --base-dir=$2 > desktop.$$.tmp | 13 | perl $SCRIPTY_DIR/createdesktopcontext.pl --file-list=./$1 --base-dir=$2 > desktop.$$.tmp | ||
14 | dest=$3 | 14 | dest=$3 | ||
15 | msguniq --to-code=UTF-8 -o desktop.$$ desktop.$$.tmp 2>/dev/null | 15 | msguniq --to-code=UTF-8 -o desktop.$$ desktop.$$.tmp 2>/dev/null | ||
16 | if test -f desktop.$$; then | 16 | if test -f desktop.$$; then | ||
Context not available. | |||||
158 | extractqml=$kdesdkscriptsdir/extractqml | 158 | extractqml=$kdesdkscriptsdir/extractqml | ||
159 | extractgrantlee=$kdesdkscriptsdir/grantlee_strings_extractor.py | 159 | extractgrantlee=$kdesdkscriptsdir/grantlee_strings_extractor.py | ||
160 | preparetips=$kdelibsdir/kdeui/preparetips | 160 | preparetips=$kdelibsdir/kdeui/preparetips | ||
161 | repackpot=$BASEDIR/$transmod/scripts/repack-pot.pl | 161 | repackpot=$SCRIPTY_DIR/repack-pot.pl | ||
162 | 162 | | |||
163 | kdelibs= | 163 | kdelibs= | ||
164 | 164 | | |||
Context not available. | |||||
200 | REPACKPOT="perl $repackpot" \ | 200 | REPACKPOT="perl $repackpot" \ | ||
201 | PACKAGE=$mod \ | 201 | PACKAGE=$mod \ | ||
202 | IGNORE=".$vcs" \ | 202 | IGNORE=".$vcs" \ | ||
203 | bash $BASEDIR/$transmod/scripts/extract-messages.sh) | 203 | bash $SCRIPTY_DIR/extract-messages.sh) | ||
204 | rm -f messages.log | 204 | rm -f messages.log | ||
205 | 205 | | |||
206 | ( XGETTEXT=`which xgettext` \ | 206 | ( XGETTEXT=`which xgettext` \ | ||
207 | SUBMODULE=$templatename \ | 207 | SUBMODULE=$templatename \ | ||
208 | FILLXMLFROMPO="python $BASEDIR/$transmod/scripts/fillxmlfrompo.py" \ | 208 | FILLXMLFROMPO="python $SCRIPTY_DIR/fillxmlfrompo.py" \ | ||
209 | L10NDIR=$BASEDIR/$transmod \ | 209 | L10NDIR=$BASEDIR/$transmod \ | ||
210 | bash $BASEDIR/$transmod/scripts/extract-xml.sh) | 210 | bash $SCRIPTY_DIR/extract-xml.sh) | ||
211 | 211 | | |||
212 | ( SUBMODULE=$templatename \ | 212 | ( SUBMODULE=$templatename \ | ||
213 | ASMETAINFOITS=$BASEDIR/$transmod/scripts/as-metainfo.its \ | 213 | ASMETAINFOITS=$SCRIPTY_DIR/as-metainfo.its \ | ||
214 | L10NDIR=$BASEDIR/$transmod \ | 214 | L10NDIR=$BASEDIR/$transmod \ | ||
215 | bash $BASEDIR/$transmod/scripts/extract_metainfo.sh) | 215 | bash $SCRIPTY_DIR/extract_metainfo.sh) | ||
216 | 216 | | |||
217 | ( XGETTEXT=`which xgettext` \ | 217 | ( XGETTEXT=`which xgettext` \ | ||
218 | MSGCAT=`which msgcat` \ | 218 | MSGCAT=`which msgcat` \ | ||
Context not available. | |||||
226 | BASEDIR=$BASEDIR \ | 226 | BASEDIR=$BASEDIR \ | ||
227 | transmod=$transmod \ | 227 | transmod=$transmod \ | ||
228 | templatename=$templatename \ | 228 | templatename=$templatename \ | ||
229 | bash $BASEDIR/$transmod/scripts/process-static-messages.sh) | 229 | bash $SCRIPTY_DIR/process-static-messages.sh) | ||
230 | 230 | | |||
231 | rm -f messages.log | 231 | rm -f messages.log | ||
232 | 232 | | |||
Context not available. | |||||
347 | 347 | | |||
348 | test -z "$VERBOSE1" || echo "creating *._desktop_.pot files" | 348 | test -z "$VERBOSE1" || echo "creating *._desktop_.pot files" | ||
349 | test -z "$TIMING1" || date | 349 | test -z "$TIMING1" || date | ||
350 | bash scripts/findfiles `pwd`/all_files | 350 | bash $SCRIPTY_DIR/findfiles `pwd`/all_files | ||
351 | 351 | | |||
352 | for mod in $releases l10n; do | 352 | for mod in $releases l10n; do | ||
353 | case "$mod" in | 353 | case "$mod" in | ||
Context not available. | |||||
400 | sed s#@DOCBOOKXSL_DIR@#$DOCBOOKXSL_LOCATION#g $kdelibsdir/kdoctools/customization/kde-include-man.xsl.cmake > $kdelibsdir/kdoctools/customization/kde-include-man.xsl | 400 | sed s#@DOCBOOKXSL_DIR@#$DOCBOOKXSL_LOCATION#g $kdelibsdir/kdoctools/customization/kde-include-man.xsl.cmake > $kdelibsdir/kdoctools/customization/kde-include-man.xsl | ||
401 | docbookl10nhelper $DOCBOOKXSL_LOCATION $kdelibsdir/kdoctools/customization/xsl/ $kdelibsdir/kdoctools/customization/xsl/ | 401 | docbookl10nhelper $DOCBOOKXSL_LOCATION $kdelibsdir/kdoctools/customization/xsl/ $kdelibsdir/kdoctools/customization/xsl/ | ||
402 | 402 | | |||
403 | kdelibsdir=$kdelibsdir bash ./scripts/createdoctemplates.sh --commit --check --autosvnadd | 403 | kdelibsdir=$kdelibsdir bash $SCRIPTY_DIR/createdoctemplates.sh --commit --check --autosvnadd | ||
404 | rm -f $kdelibsdir/kdoctools/customization/dtd/kdex.dtd \ | 404 | rm -f $kdelibsdir/kdoctools/customization/dtd/kdex.dtd \ | ||
405 | $kdelibsdir/kdoctools/customization/kde-include-common.xsl \ | 405 | $kdelibsdir/kdoctools/customization/kde-include-common.xsl \ | ||
406 | $kdelibsdir/kdoctools/customization/kde-include-man.xsl \ | 406 | $kdelibsdir/kdoctools/customization/kde-include-man.xsl \ | ||
Context not available. | |||||
424 | echo | 424 | echo | ||
425 | echo "%% TRANSLATOR START $transmod" | 425 | echo "%% TRANSLATOR START $transmod" | ||
426 | echo | 426 | echo | ||
427 | bash scripts/merge_all.sh | 427 | bash $SCRIPTY_DIR/merge_all.sh | ||
428 | echo | 428 | echo | ||
429 | echo "%% TRANSLATOR END $transmod" | 429 | echo "%% TRANSLATOR END $transmod" | ||
430 | echo | 430 | echo | ||
Context not available. | |||||
491 | if cd $transmod; then | 491 | if cd $transmod; then | ||
492 | test -z "$VERBOSE1" || echo "applying desktop file translations" | 492 | test -z "$VERBOSE1" || echo "applying desktop file translations" | ||
493 | test -z "$TIMING1" || date | 493 | test -z "$TIMING1" || date | ||
494 | bash scripts/merge_desktop_files.sh | 494 | bash $SCRIPTY_DIR/merge_desktop_files.sh | ||
495 | cd $BASEDIR | 495 | cd $BASEDIR | ||
496 | fi | 496 | fi | ||
497 | test -z "$VERBOSE1" || echo "commiting desktop files" | 497 | test -z "$VERBOSE1" || echo "commiting desktop files" | ||
Context not available. | |||||
552 | echo "%% Updating x-test end" | 552 | echo "%% Updating x-test end" | ||
553 | 553 | | |||
554 | echo "%% Finding po without pot begin" | 554 | echo "%% Finding po without pot begin" | ||
555 | bash ./scripts/find_po_without_pot.sh --silent | 555 | bash $SCRIPTY_DIR/find_po_without_pot.sh --silent | ||
556 | echo "%% Finding po without pot end" | 556 | echo "%% Finding po without pot end" | ||
557 | 557 | | |||
558 | echo "%% Checking language docs are valid begin" | 558 | echo "%% Checking language docs are valid begin" | ||
559 | kdelibsdir=$kdelibsdir bash ./scripts/checkdocs.sh --optimized | 559 | kdelibsdir=$kdelibsdir bash $SCRIPTY_DIR/checkdocs.sh --optimized | ||
560 | echo "%% Checking language docs are valid end" | 560 | echo "%% Checking language docs are valid end" | ||
561 | 561 | | |||
562 | cd $BASEDIR | 562 | cd $BASEDIR | ||
Context not available. | |||||
566 | test -z "$TIMING1" || date | 566 | test -z "$TIMING1" || date | ||
567 | } | 567 | } | ||
568 | 568 | | |||
569 | OLD_PWD=$PWD | ||||
570 | cd $(dirname $0) | ||||
571 | SCRIPTY_DIR=$PWD | ||||
572 | cd $OLD_PWD | ||||
573 | | ||||
569 | # releases: paths of modules - kdelibs has to be first | 574 | # releases: paths of modules - kdelibs has to be first | ||
570 | # transmod: path of the corresponding l10n module | 575 | # transmod: path of the corresponding l10n module | ||
571 | 576 | | |||
572 | # test only | 577 | # test only | ||
573 | dir=`dirname $0` | 578 | . $SCRIPTY_DIR/get_paths | ||
574 | . $dir/get_paths | | |||
575 | transmod=`get_path l10n` | 579 | transmod=`get_path l10n` | ||
576 | releases=`list_modules $dir` | 580 | releases=`list_modules $SCRIPTY_DIR` | ||
577 | kdelibsdir=$BASEDIR/git-stable/kdelibs/ | 581 | kdelibsdir=$BASEDIR/git-stable/kdelibs/ | ||
578 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | 582 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | ||
579 | update_translations | 583 | update_translations | ||
Context not available. |