/[soft]/mageia-galaxy-data/trunk/po/Messages.sh
ViewVC logotype

Contents of /mageia-galaxy-data/trunk/po/Messages.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 402 - (show annotations) (download) (as text)
Thu Feb 3 18:17:39 2011 UTC (13 years, 2 months ago) by dmorgan
File MIME type: application/x-sh
File size: 501 byte(s)
Import cleaned mageia-galaxy-data
1 #!/bin/sh
2
3 BASEDIR=".."
4 XMLFILE="index.html.in"
5 PODIR=`pwd`
6
7 cd ${BASEDIR}
8
9 echo "Extracting messages"
10
11 intltool-extract --type=gettext/xml ${XMLFILE}
12 xgettext -a ${XMLFILE}.h -o ${PODIR}/index.pot
13
14 echo "Done extracting messages"
15
16 cd ${PODIR}
17
18 echo "Merging translations"
19
20 catalogs=`find . -name '*.po'`
21
22 for cat in $catalogs; do
23 echo $cat
24 msgmerge -o $cat.new $cat index.pot
25 mv $cat.new $cat
26 done
27
28 echo "Done merging translations"
29
30 cd ${BASEDIR}
31
32 echo "Cleaning up"
33
34 rm ${XMLFILE}.h
35
36 echo "Done"

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30