Changeset View
Changeset View
Standalone View
Standalone View
branches/stable/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. | |||||
407 | sed s#@DOCBOOKXSL_DIR@#$DOCBOOKXSL_LOCATION#g $kdelibsdir/kdoctools/customization/kde-include-man.xsl.cmake > $kdelibsdir/kdoctools/customization/kde-include-man.xsl | 407 | sed s#@DOCBOOKXSL_DIR@#$DOCBOOKXSL_LOCATION#g $kdelibsdir/kdoctools/customization/kde-include-man.xsl.cmake > $kdelibsdir/kdoctools/customization/kde-include-man.xsl | ||
408 | docbookl10nhelper $DOCBOOKXSL_LOCATION $kdelibsdir/kdoctools/customization/xsl/ $kdelibsdir/kdoctools/customization/xsl/ | 408 | docbookl10nhelper $DOCBOOKXSL_LOCATION $kdelibsdir/kdoctools/customization/xsl/ $kdelibsdir/kdoctools/customization/xsl/ | ||
409 | 409 | | |||
410 | bash ./scripts/createdoctemplates.sh --commit --check --autosvnadd | 410 | bash $SCRIPTY_DIR/createdoctemplates.sh --commit --check --autosvnadd | ||
411 | rm -f $kdelibsdir/kdoctools/customization/dtd/kdex.dtd \ | 411 | rm -f $kdelibsdir/kdoctools/customization/dtd/kdex.dtd \ | ||
412 | $kdelibsdir/kdoctools/customization/kde-include-common.xsl \ | 412 | $kdelibsdir/kdoctools/customization/kde-include-common.xsl \ | ||
413 | $kdelibsdir/kdoctools/customization/kde-include-man.xsl \ | 413 | $kdelibsdir/kdoctools/customization/kde-include-man.xsl \ | ||
Context not available. | |||||
431 | echo | 431 | echo | ||
432 | echo "%% TRANSLATOR START $transmod" | 432 | echo "%% TRANSLATOR START $transmod" | ||
433 | echo | 433 | echo | ||
434 | bash scripts/merge_all.sh | 434 | bash $SCRIPTY_DIR/merge_all.sh | ||
435 | echo | 435 | echo | ||
436 | echo "%% TRANSLATOR END $transmod" | 436 | echo "%% TRANSLATOR END $transmod" | ||
437 | echo | 437 | echo | ||
Context not available. | |||||
498 | if cd $transmod; then | 498 | if cd $transmod; then | ||
499 | test -z "$VERBOSE1" || echo "applying desktop file translations" | 499 | test -z "$VERBOSE1" || echo "applying desktop file translations" | ||
500 | test -z "$TIMING1" || date | 500 | test -z "$TIMING1" || date | ||
501 | bash scripts/merge_desktop_files.sh | 501 | bash $SCRIPTY_DIR/merge_desktop_files.sh | ||
502 | cd $BASEDIR | 502 | cd $BASEDIR | ||
503 | fi | 503 | fi | ||
504 | test -z "$VERBOSE1" || echo "commiting desktop files" | 504 | test -z "$VERBOSE1" || echo "commiting desktop files" | ||
Context not available. | |||||
559 | echo "%% Updating x-test end" | 559 | echo "%% Updating x-test end" | ||
560 | 560 | | |||
561 | echo "%% Finding po without pot begin" | 561 | echo "%% Finding po without pot begin" | ||
562 | bash ./scripts/find_po_without_pot.sh --silent | 562 | bash $SCRIPTY_DIR/find_po_without_pot.sh --silent | ||
563 | echo "%% Finding po without pot end" | 563 | echo "%% Finding po without pot end" | ||
564 | 564 | | |||
565 | echo "%% Checking language docs are valid begin" | 565 | echo "%% Checking language docs are valid begin" | ||
566 | kdelibsdir=$kdelibsdir bash ./scripts/checkdocs.sh --optimized | 566 | kdelibsdir=$kdelibsdir bash $SCRIPTY_DIR/checkdocs.sh --optimized | ||
567 | echo "%% Checking language docs are valid end" | 567 | echo "%% Checking language docs are valid end" | ||
568 | 568 | | |||
569 | cd $BASEDIR | 569 | cd $BASEDIR | ||
Context not available. | |||||
573 | test -z "$TIMING1" || date | 573 | test -z "$TIMING1" || date | ||
574 | } | 574 | } | ||
575 | 575 | | |||
576 | OLD_PWD=$PWD | ||||
577 | cd $(dirname $0) | ||||
578 | SCRIPTY_DIR=$PWD | ||||
579 | cd $OLD_PWD | ||||
580 | | ||||
576 | # releases: paths of modules - kdelibs has to be first | 581 | # releases: paths of modules - kdelibs has to be first | ||
577 | # transmod: path of the corresponding l10n module | 582 | # transmod: path of the corresponding l10n module | ||
578 | 583 | | |||
579 | # test only | 584 | # test only | ||
580 | dir=`dirname $0` | 585 | . $SCRIPTY_DIR/get_paths | ||
581 | . $dir/get_paths | | |||
582 | transmod=`get_path l10n` | 586 | transmod=`get_path l10n` | ||
583 | releases=`list_modules $dir` | 587 | releases=`list_modules $SCRIPTY_DIR` | ||
584 | kdelibsdir=$BASEDIR/`get_path kdelibs` | 588 | kdelibsdir=$BASEDIR/`get_path kdelibs` | ||
585 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | 589 | kdesdkscriptsdir=$BASEDIR/`get_path kdesdk_kde-dev-scripts` | ||
586 | update_translations | 590 | update_translations | ||
Context not available. |