Parent Directory | Revision Log
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" |
Name | Value |
---|---|
svn:eol-style | native |
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.30 |