diff options
author | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-02-04 15:30:31 -0500 |
commit | 08583dc107974252312fb7c87532c9deb68e7f63 (patch) | |
tree | 0c42ec7422752cabd8352b49be976b4dc100c56c /language/update.sh | |
parent | c362a1e077d5ede9eadbe79483f2a755b5883e9a (diff) |
Moved the language strings which are only used once
out of the core and into the modules that use them.
Diffstat (limited to 'language/update.sh')
-rwxr-xr-x | language/update.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/language/update.sh b/language/update.sh new file mode 100755 index 000000000..cbd17f8f3 --- /dev/null +++ b/language/update.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +rm anope.pot +touch anope.pot + +cd .. +FILES=`find ./ -name *.cpp -o -name *.h | grep -v /modules/extra/` +for f in $FILES +do + xgettext -C -s -d Anope -j -o language/anope.pot --from-code=utf-8 --keyword=_ $f +done + +cd - + +for f in *.po +do + msgmerge -v -s -U $f `echo $f | cut -d'.' -f1`.pot +done + +rm -f *~ |