Add gettext build support to begin i18n work. (Place your po's in po/ and go.)
* Makefile.in: Add localedir, MSGFMT, PACKAGE_NAME, PACKAGE_VERSION substs from configure; define INSTALL_LOCALE as INSTALL_DATA; add SUFFIXES information so we can make mo's from po's. * build.conf: Add i18n target called 'locale'. * configure.in: Remove old placeholder for GNU gettext and move down to a more sensible location; allow --disable-nls to override use of gettext; add in i18n support iff msgfmt is in PATH and bindtextdomain is available; export SVN_LOCALE_DIR properly escaped so svn_cmdline_init can use; add gettext macro snippet to bottom of svn_private_config.h as necessary; if NLS is enabled, add in locale/install-locale targets to our default. * build/ac-macros/svn-macros.m4: Import APR_EXPAND_VAR from apr_common.m4. * build/generator/gen_base.py: Define TargetI18N class to represent po files. (_sorted_files): Add in any NONLIB non-Target classes when we do not have a filename. This also fixes an outstanding bug in gen_make.py. * build/generator/gen_make.py: Add appropriate defines for TargetI18N class; Remove kludge with blank filename (see gen_base.py as to why); if we are doing the 'locale' target, construct a suitable install line for each mo. * subversion/libsvn_subr/opt.c (svn_opt_print_help): Add _() to the default help when there are no arguments. (This is an easy test case to start with.) * subversion/libsvn_subr/cmdline.c: (svn_cmdline_init): Change setlocale from LC_CTYPE to LC_ALL so our message locales are respected; print a slightly more helpful error message when setlocale fails; call bindtextdomain and textdomain to initialize gettext when ENABLE_NLS is defined. * svn_private_config.hw: Fix a tpyo in a comment; add no-op #define's so that Win32 should still be able to build. * po/es.po (added): Initial Spanish translation from Nicolas Lichtmaier with a help string added for the 'default' error message.
Tested on Solaris (native gettext) and Darwin (GNU gettext). (Passes 'make check' on Solaris.)
Preliminary review by: Ben and Greg. Thanks to: Nicolas Lichtmaier