Skip to content

Commit

Permalink
String management scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpage committed Sep 8, 2008
1 parent 33ae428 commit 4436fd3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
17 changes: 17 additions & 0 deletions stringextract
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

##########################################################################
# Name: stringextract
# Purpose: Extract strings for translation
# Author: Dave Page
# Created: 2007-02-13
# RCS-ID: $Id: stringextract,v 1.1 2008/09/08 13:39:42 dpage Exp $
# Copyright: (c) EnterpriseDB
# Licence: BSD Licence
##########################################################################

cp StackBuilder-release.pot StackBuilder.pot

xgettext -k_ -k__ -j -s -o StackBuilder.pot *.cpp
xgettext -k_ -k__ -j -s -o StackBuilder.pot include/*.h

29 changes: 29 additions & 0 deletions stringmerge
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh
set -x
##########################################################################
# Name: stringmerge
# Purpose: Merge translations
# Author: Dave Page
# Created: 2007-02-13
# RCS-ID: $Id: stringmerge,v 1.1 2008/09/08 13:39:42 dpage Exp $
# Copyright: (c) EnterpriseDB
# Licence: BSD Licence
##########################################################################

if test -f StackBuilder.pot; then

echo "Updating from CVS."
cvs update -dP

for GETTEXTDIR in i18n/??_?? ; do
echo "Entering $GETTEXTDIR."
cd $GETTEXTDIR
echo "Merging StackBuilder.pot into StackBuilder.po"
msgmerge --backup=none --update StackBuilder.po ../../StackBuilder.pot
cd ../..
done

cd i18n
echo "Committing changes to CVS."
# svn commit -m "Automatic merge using stringmerge script."
fi

0 comments on commit 4436fd3

Please sign in to comment.