Salome HOME
RE-organization of directories, according to CEA request
[tools/sat.git] / src / i18n / build_strings.sh
1 #!/bin/bash
2
3 # This script gets the strings to internationalise from the source code
4
5 I18HOME=`dirname $0`
6 SRC_DIR=$I18HOME/../..
7
8 # get strings for french translation
9 echo Build strings for French
10
11 poFile=$I18HOME/fr/LC_MESSAGES/salomeTools.po
12 refFile=$I18HOME/fr/LC_MESSAGES/ref.pot
13
14 xgettext $SRC_DIR/*.py $SRC_DIR/common/*.py \
15     --no-wrap --no-location --language=Python --omit-header \
16     --output=$refFile
17 msgmerge -q --update $poFile $refFile
18 msgattrib --no-obsolete -o $poFile $poFile
19 rm $refFile
20