diff options
author | Joe Orton <notroj@users.noreply.github.com> | 2005-08-19 09:24:20 +0000 |
---|---|---|
committer | Joe Orton <notroj@users.noreply.github.com> | 2005-08-19 09:24:20 +0000 |
commit | e739c8b79c15aa1e5f57d9b9500c4edcd85a0a4e (patch) | |
tree | 81add0fe7d10d31265a5e397735d6b2ee9ce3dc7 /.release.sh | |
parent | 928a36b1eac7853e863b9d94a07af30cef5189ac (diff) | |
download | neon-git-e739c8b79c15aa1e5f57d9b9500c4edcd85a0a4e.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.
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 |