3 # This script gets the strings from code to internationalize from the source code
8 # get strings for french translation
9 echo "Build strings for French, create and merging salomeTools.po"
11 poFile=$I18HOME/fr/LC_MESSAGES/salomeTools.po
12 refFile=$I18HOME/fr/LC_MESSAGES/ref.pot
14 cp ${poFile} ${poFile}_old
16 xgettext $SRC_DIR/src/i18n/*.py \
18 $SRC_DIR/commands/*.py \
26 msgmerge --quiet --update --previous $poFile $refFile
28 #retirer les messages obsolètes « #~ »
29 #msgattrib --no-obsolete -o $poFile $poFile
31 #ne pas retirer les messages obsolètes « #~ »
32 msgattrib --previous --output-file ${poFile} ${poFile}
36 echo "Do translate stuff please..."
37 meld ${poFile} ${poFile}_old
39 echo "Do not forget 'translate.py' or 'translate.sh' to create salomeTools.mo"