[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Unbreaking xgettext support (was: svn commit: r9408 - in trunk: . build/generator build/win32 subversion/libsvn_subr)

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-04-18 09:43:25 CEST

> -/* Until Win32 gets gettext functionality, leave these disabled. */
> +/* Setup gettext macros */
> #define N_(x) (x)
> +#ifdef ENABLE_NLS
> +#define PACKAGE_NAME "subversion"

I'd like to move the PACKAGE_NAME up above the ENABLE_NLS, because I have a
patch here to unbreak xgettext support which requires PACKAGE_NAME to be
always-defined.

> +#include <locale.h>
> +#include <libintl.h>
> +#define _(x) dgettext(PACKAGE_NAME, x)
> +#else
> #define _(x) (x)

Here I'd like to add defines for gettext and dgettext; also to no-op macro's
like you did for _.

> +#endif

Any objections anybody?

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 18 09:43:40 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.