Changeset View
Changeset View
Standalone View
Standalone View
branches/stable/l10n-kf5/scripts/update_translations
Context not available. | |||||
136 | extractqml=$kdesdkscriptsdir/extractqml | 136 | extractqml=$kdesdkscriptsdir/extractqml | ||
---|---|---|---|---|---|
137 | extractgrantlee=$kdesdkscriptsdir/grantlee_strings_extractor.py | 137 | extractgrantlee=$kdesdkscriptsdir/grantlee_strings_extractor.py | ||
138 | preparetips=$kconfigwidgetsdir/src/preparetips5 | 138 | preparetips=$kconfigwidgetsdir/src/preparetips5 | ||
139 | repackpot=$BASEDIR/$transmod/scripts/repack-pot.pl | 139 | repackpot=$SCRIPTY_DIR/repack-pot.pl | ||
140 | 140 | | |||
141 | kdelibs= | 141 | kdelibs= | ||
142 | 142 | | |||
Context not available. | |||||
179 | REPACKPOT="perl $repackpot" \ | 179 | REPACKPOT="perl $repackpot" \ | ||
180 | PACKAGE=$repo_name \ | 180 | PACKAGE=$repo_name \ | ||
181 | IGNORE=".$vcs" \ | 181 | IGNORE=".$vcs" \ | ||
182 | bash $BASEDIR/$transmod/scripts/extract-messages.sh) | 182 | bash $SCRIPTY_DIR/extract-messages.sh) | ||
183 | rm -f messages.log | 183 | rm -f messages.log | ||
184 | 184 | | |||
185 | ( XGETTEXT=`which xgettext` \ | 185 | ( XGETTEXT=`which xgettext` \ | ||
186 | SUBMODULE=$templatename \ | 186 | SUBMODULE=$templatename \ | ||
187 | FILLXMLFROMPO="python $BASEDIR/$transmod/scripts/fillxmlfrompo.py" \ | 187 | FILLXMLFROMPO="python $SCRIPTY_DIR/fillxmlfrompo.py" \ | ||
188 | L10NDIR=$BASEDIR/$transmod \ | 188 | L10NDIR=$BASEDIR/$transmod \ | ||
189 | bash $BASEDIR/$transmod/scripts/extract-xml.sh) | 189 | bash $SCRIPTY_DIR/extract-xml.sh) | ||
190 | 190 | | |||
191 | ( SUBMODULE=$templatename \ | 191 | ( SUBMODULE=$templatename \ | ||
192 | ASMETAINFOITS=$BASEDIR/$transmod/scripts/as-metainfo.its \ | 192 | ASMETAINFOITS=$SCRIPTY_DIR/as-metainfo.its \ | ||
193 | L10NDIR=$BASEDIR/$transmod \ | 193 | L10NDIR=$BASEDIR/$transmod \ | ||
194 | bash $BASEDIR/$transmod/scripts/extract_metainfo.sh) | 194 | bash $SCRIPTY_DIR/extract_metainfo.sh) | ||
195 | 195 | | |||
196 | ( XGETTEXT=`which xgettext` \ | 196 | ( XGETTEXT=`which xgettext` \ | ||
197 | MSGCAT=`which msgcat` \ | 197 | MSGCAT=`which msgcat` \ | ||
Context not available. | |||||
205 | BASEDIR=$BASEDIR \ | 205 | BASEDIR=$BASEDIR \ | ||
206 | transmod=$transmod \ | 206 | transmod=$transmod \ | ||
207 | templatename=$templatename \ | 207 | templatename=$templatename \ | ||
208 | bash $BASEDIR/$transmod/scripts/process-static-messages.sh) | 208 | bash $SCRIPTY_DIR/process-static-messages.sh) | ||
209 | 209 | | |||
210 | rm -f messages.log | 210 | rm -f messages.log | ||
211 | 211 | | |||
Context not available. | |||||
370 | rm -f templatenames.tmp | 370 | rm -f templatenames.tmp | ||
371 | 371 | | |||
372 | # Create the all_files_* files | 372 | # Create the all_files_* files | ||
373 | bash scripts/findfiles `pwd`/all_files | 373 | bash $SCRIPTY_DIR/findfiles `pwd`/all_files | ||
374 | 374 | | |||
375 | echo "creating *._desktop_.pot files" | 375 | echo "creating *._desktop_.pot files" | ||
376 | test -z "$TIMING1" || date | 376 | test -z "$TIMING1" || date | ||
377 | bash scripts/create_desktop_files.sh | 377 | bash $SCRIPTY_DIR/create_desktop_files.sh | ||
378 | 378 | | |||
379 | echo "commiting *._desktop_.pot files" | 379 | echo "commiting *._desktop_.pot files" | ||
380 | test -z "$TIMING1" || date | 380 | test -z "$TIMING1" || date | ||
Context not available. | |||||
398 | echo "creating *._json_.pot files" | 398 | echo "creating *._json_.pot files" | ||
399 | test -z "$TIMING1" || date | 399 | test -z "$TIMING1" || date | ||
400 | ( L10NDIR=$BASEDIR/$transmod \ | 400 | ( L10NDIR=$BASEDIR/$transmod \ | ||
401 | bash $BASEDIR/$transmod/scripts/handle_json_files.sh) | 401 | bash $SCRIPTY_DIR/handle_json_files.sh) | ||
402 | echo "commiting *._json_.pot files" | 402 | echo "commiting *._json_.pot files" | ||
403 | test -z "$TIMING1" || date | 403 | test -z "$TIMING1" || date | ||
404 | if cd templates/messages; then | 404 | if cd templates/messages; then | ||
Context not available. | |||||
433 | [ ! -d $KDOCTOOLS_DATA_DIR ] && mkdir -p $KDOCTOOLS_DATA_DIR | 433 | [ ! -d $KDOCTOOLS_DATA_DIR ] && mkdir -p $KDOCTOOLS_DATA_DIR | ||
434 | ln -s $kdoctoolsdir/src/customization $KDOCTOOLS_DATA_DIR | 434 | ln -s $kdoctoolsdir/src/customization $KDOCTOOLS_DATA_DIR | ||
435 | export XDG_DATA_DIRS=$TMP_XDG_DIR:$XDG_DATA_DIRS | 435 | export XDG_DATA_DIRS=$TMP_XDG_DIR:$XDG_DATA_DIRS | ||
436 | bash ./scripts/createdoctemplates.sh --commit --check --autosvnadd | 436 | bash $SCRIPTY_DIR/createdoctemplates.sh --commit --check --autosvnadd | ||
437 | export XDG_DATA_DIRS=$OLD_XDG_DATA_DIRS | 437 | export XDG_DATA_DIRS=$OLD_XDG_DATA_DIRS | ||
438 | rm -f $kdoctoolsdir/src/customization/dtd/kdedbx45.dtd \ | 438 | rm -f $kdoctoolsdir/src/customization/dtd/kdedbx45.dtd \ | ||
439 | $kdoctoolsdir/src/customization/kde-include-common.xsl \ | 439 | $kdoctoolsdir/src/customization/kde-include-common.xsl \ | ||
Context not available. | |||||
458 | echo | 458 | echo | ||
459 | echo "%% TRANSLATOR START $transmod" | 459 | echo "%% TRANSLATOR START $transmod" | ||
460 | echo | 460 | echo | ||
461 | bash scripts/merge_all.sh | 461 | bash $SCRIPTY_DIR/merge_all.sh | ||
462 | echo | 462 | echo | ||
463 | echo "%% TRANSLATOR END $transmod" | 463 | echo "%% TRANSLATOR END $transmod" | ||
464 | echo | 464 | echo | ||
Context not available. | |||||
525 | if cd $transmod; then | 525 | if cd $transmod; then | ||
526 | echo "applying desktop file translations" | 526 | echo "applying desktop file translations" | ||
527 | test -z "$TIMING1" || date | 527 | test -z "$TIMING1" || date | ||
528 | bash scripts/merge_desktop_files.sh | 528 | bash $SCRIPTY_DIR/merge_desktop_files.sh | ||
529 | cd $BASEDIR | 529 | cd $BASEDIR | ||
530 | fi | 530 | fi | ||
531 | echo "commiting desktop files" | 531 | echo "commiting desktop files" | ||
Context not available. | |||||
586 | echo "%% Updating x-test end" | 586 | echo "%% Updating x-test end" | ||
587 | 587 | | |||
588 | echo "%% Finding po without pot begin" | 588 | echo "%% Finding po without pot begin" | ||
589 | bash ./scripts/find_po_without_pot.sh --silent | 589 | bash $SCRIPTY_DIR/find_po_without_pot.sh --silent | ||
590 | echo "%% Finding po without pot end" | 590 | echo "%% Finding po without pot end" | ||
591 | 591 | | |||
592 | echo "%% Checking language docs are valid begin" | 592 | echo "%% Checking language docs are valid begin" | ||
593 | kdoctoolsdir=$kdoctoolsdir bash ./scripts/checkdocs.sh --optimized | 593 | kdoctoolsdir=$kdoctoolsdir bash $SCRIPTY_DIR/checkdocs.sh --optimized | ||
594 | echo "%% Checking language docs are valid end" | 594 | echo "%% Checking language docs are valid end" | ||
595 | 595 | | |||
596 | cd $BASEDIR | 596 | cd $BASEDIR | ||
Context not available. | |||||
600 | test -z "$TIMING1" || date | 600 | test -z "$TIMING1" || date | ||
601 | } | 601 | } | ||
602 | 602 | | |||
603 | OLD_PWD=$PWD | ||||
604 | cd $(dirname $0) | ||||
605 | SCRIPTY_DIR=$PWD | ||||
606 | cd $OLD_PWD | ||||
607 | | ||||
603 | # releases: paths of modules - kdelibs has to be first | 608 | # releases: paths of modules - kdelibs has to be first | ||
604 | # transmod: path of the corresponding l10n module | 609 | # transmod: path of the corresponding l10n module | ||
605 | 610 | | |||
606 | # test only | 611 | # test only | ||
607 | dir=`dirname $0` | 612 | . $SCRIPTY_DIR/get_paths | ||
608 | . $dir/get_paths | | |||
609 | transmod=`get_path l10n` | 613 | transmod=`get_path l10n` | ||
610 | releases=`list_modules $dir` | 614 | releases=`list_modules $SCRIPTY_DIR` | ||
611 | kconfigwidgetsdir=$BASEDIR/`get_path frameworks_kconfigwidgets` | 615 | kconfigwidgetsdir=$BASEDIR/`get_path frameworks_kconfigwidgets` | ||
612 | kdoctoolsdir=$BASEDIR/`get_path frameworks_kdoctools` | 616 | kdoctoolsdir=$BASEDIR/`get_path frameworks_kdoctools` | ||
613 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | 617 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | ||
Context not available. |