diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-14 10:59:29 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-01-14 10:59:29 +0000 |
commit | a9232ac70a293d3c311647dbcdb139e8c649152d (patch) | |
tree | 5caa6f723076dbf2b375eb34fcf199a8a138810d /includes/php-gettext | |
parent | 3265b349197a07152dd0650444c205a267697228 (diff) | |
download | semanticscuttle-a9232ac70a293d3c311647dbcdb139e8c649152d.tar.gz semanticscuttle-a9232ac70a293d3c311647dbcdb139e8c649152d.tar.bz2 |
Translation: improve French translation + add shell script to extract strings
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@13 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/php-gettext')
-rw-r--r-- | includes/php-gettext/bin/gettexts.bat | 2 | ||||
-rwxr-xr-x | includes/php-gettext/bin/gettexts.sh | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/includes/php-gettext/bin/gettexts.bat b/includes/php-gettext/bin/gettexts.bat index 212ffce..3ee4252 100644 --- a/includes/php-gettext/bin/gettexts.bat +++ b/includes/php-gettext/bin/gettexts.bat @@ -17,4 +17,4 @@ if exist "..\..\..\locales\%1.po.bak" del ..\..\..\locales\%1.po.bak msgfmt --statistics "..\..\..\locales\%1.po" :end -echo Finished
\ No newline at end of file +echo Finished diff --git a/includes/php-gettext/bin/gettexts.sh b/includes/php-gettext/bin/gettexts.sh new file mode 100755 index 0000000..267f670 --- /dev/null +++ b/includes/php-gettext/bin/gettexts.sh @@ -0,0 +1,12 @@ +#!/bin/sh +xgettext -kT_ngettext:1,2 -kT_ -L PHP -o ../../../locales/messages.po ../../../*.php ../../../services/*.php ../../../templates/*.php + +if [ -f "../../../locales/$1/LC_MESSAGES/messages.po" ] +then +msgmerge -o ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/$1/LC_MESSAGES/messages.po ../../../locales/messages.po + +msgfmt --statistics "../../../locales/$1/LC_MESSAGES/messages.po" -o "../../../locales/$1/LC_MESSAGES/messages.mo" +else +echo "gettexts.sh LANGUAGE_CODE" +echo "example: 'gettexts fr_FR' to get text for French" +fi |