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