2
#------------------------------------------------------------------------------
3
# Update/generate lenmus.pot file and update lenmus_xx.po files for
5
# This script MUST BE RUN from scripts/i18n/ folder, in source tree
7
# usage: ./po-lenmus version
8
#------------------------------------------------------------------------------
10
#------------------------------------------------------------------------------
16
echo "Updating file lenmus_$LANG.po"
17
cd /datos/USR/lm/projects/lenmus/trunk/locale/$LANG
18
sed --in-place lenmus_$LANG.po -e 's/"Project-Id-Version:.*/"Project-Id-Version: LenMus $VERS\\n"/'
19
msgmerge --update -v lenmus_$LANG.po ../lenmus.pot
23
#------------------------------------------------------------------------------
24
# main line starts here
27
E_NOARGS=65 # no arguments
30
# check that pack version is present
33
echo "Usage: `basename $0` pack-version"
37
# Create/Update the POT file
38
echo "Updating file lenmus.pot"
39
cd /datos/USR/lm/projects/lenmus/trunk/locale
40
xgettext -s --from-code=UTF-8 --keyword=_ lenmus.pot \
41
$(find ../src -name "*.cpp") \
42
$(find ../xrc -name "*.cpp") \
43
../installer/msw/locale/installer-strings.cpp
45
# For each language, update old PO file