diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-08-19 09:24:20 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2005-08-19 09:24:20 +0000 |
commit | ef3565de9526bf9b23097b820a21d9893c87861a (patch) | |
tree | 81add0fe7d10d31265a5e397735d6b2ee9ce3dc7 /.release.sh | |
parent | 03916caccf27c16dfa3f70788f7c796f885c953d (diff) | |
download | neon-ef3565de9526bf9b23097b820a21d9893c87861a.tar.gz |
Implement support for internationalization of error message:
* src/Makefile.in (NEON_BASEOBJS): Build ne_i18n.o.
* src/ne_i18n.c: Include config.h, ne_i18n.h. (ne_i18n_init): Renamed
from neon_i18n_init.
* src/ne_i18n.h: Remove library-private definition of '_' and 'N_'
macros.
* src/ne_internal.h: New header; add definitions of _ and N_.
* src/*.c: Update all sources to include ne_internal.h instead of
ne_i18n.h.
* po/: New directory. Add message catalog template and translated
message catalogs extracted from sitecopy.
* macros/neon-test.m4: Check for setlocale and locale.h.
* test/common/tests.c: Include locale.h, ne_i18n.h. (main): Call
setlocale and ne_i18n_init.
* test/run.sh: By default disable i18n to allow checks for English
error messages to succeed.
* .release.sh: Compile the gmo files here.
* macros/neon.m4 (NEON_I18N): Add macro.
* configure.in: Use NEON_I18N. Define ALL_LINGUAS.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@680 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to '.release.sh')
-rwxr-xr-x | .release.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.release.sh b/.release.sh index 549b76f..7e79f23 100755 --- a/.release.sh +++ b/.release.sh @@ -13,7 +13,8 @@ out=$f sed -e "s/@VERSION@/$version/g" \ -e "s/@MAJOR@/$major/g" \ -e "s/@MINOR@/$minor/g" \ - -e "s/@RELEASE@/$release/g" < $in > $out + -e "s/@RELEASE@/$release/g" \ + -e "s,@top_srcdir@,`pwd`,g" < $in > $out done echo $1 > .version @@ -22,8 +23,13 @@ echo $1 > .version date +"%e %B %Y" | tr -d '\n' > doc/date.xml echo -n $1 > doc/version.xml +ALL_LINGUAS=`echo po/*.po | sed 's,po/,,g;s,\.po,,g'` + # Try to create a valid Makefile tmp=`mktemp /tmp/neon-XXXXXX` -sed -e "s/@SET_MAKE@//g" -e "s|@SHELL@|/bin/sh|g" < Makefile.in > $tmp -make -f $tmp docs +sed -e 's,@SET_MAKE@,,;s,@SHELL@,/bin/sh,' \ + -e "s,@top_srcdir@,`pwd`," \ + -e "s,@ALL_LINGUAS@,${ALL_LINGUAS}," \ + < Makefile.in > $tmp +make -f $tmp docs compile-gmo rm -f $tmp |