-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dpage
committed
Sep 8, 2008
1 parent
33ae428
commit 4436fd3
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |