/[d-i]/trunk/installer/doc/manual/scripts/update_pot
ViewVC logotype

Contents of /trunk/installer/doc/manual/scripts/update_pot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23465 - (show annotations) (download)
Mon Oct 25 16:56:18 2004 UTC (8 years, 7 months ago) by fjpop-guest
File size: 765 byte(s)
Updating scripts for translation using .po files
1 #!/bin/sh
2
3 # This script is used for translations using .po files.
4 # It updates .pot files after changes in the original English
5 # .xml files.
6 # The script 'merge_xml' should be run before this script!
7
8 if [ "$1" = "--help" ] ; then
9 echo "Usage: $0"
10 exit 0
11 fi
12
13 WORKDIR="./integrated"
14 SOURCEDIR="$WORKDIR/en"
15 PODIR="./po"
16
17 [ -d $SOURCE ] || exit 1
18
19 if [ -d "$PODIR" ] ; then
20 echo "Deleting old .pot files..."
21 for i in `find $PODIR/ -name "*.pot"` ; do
22 rm $i
23 done
24 fi
25
26 for XML in `find $SOURCEDIR -name "*.xml"` ; do
27 echo "Creating new .pot file for $XML"
28 SUBDIR=$(dirname $XML | sed "s:$SOURCEDIR::" | sed "s:^/::")
29 POT=$(basename $XML .xml).pot
30
31 mkdir -p $PODIR/$SUBDIR
32
33 xml2pot $XML >$PODIR/$SUBDIR/$POT
34 done
35
36 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5