[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error, verror: insufficient i18n
From: |
Bruno Haible |
Subject: |
error, verror: insufficient i18n |
Date: |
Thu, 19 Jul 2007 22:19:26 +0200 |
User-agent: |
KMail/1.5.4 |
The error message in lib/error.c and lib/verror.c is not internationalized,
because the _() macro expands to no gettext call, even when ENABLE_NLS is
defined.
Objections to this fix?
2007-07-19 Bruno Haible <address@hidden>
* lib/error.c (_) [ENABLE_NLS]: Define to gettext.
* lib/verror.c (_) [ENABLE_NLS]: Likewise.
--- lib/error.c 13 Sep 2006 22:38:14 -0000 1.47
+++ lib/error.c 19 Jul 2007 20:15:35 -0000
@@ -1,5 +1,5 @@
/* Error handler for noninteractive utilities
- Copyright (C) 1990-1998, 2000-2005, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
@@ -31,6 +31,7 @@
#if !_LIBC && ENABLE_NLS
# include "gettext.h"
+# define _(msgid) gettext (msgid)
#endif
#ifdef _LIBC
--- lib/verror.c 26 Sep 2006 20:14:43 -0000 1.3
+++ lib/verror.c 19 Jul 2007 20:15:35 -0000
@@ -1,5 +1,5 @@
/* va_list error handler for noninteractive utilities
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,6 +28,7 @@
#if ENABLE_NLS
# include "gettext.h"
+# define _(msgid) gettext (msgid)
#endif
#ifndef _
- error, verror: insufficient i18n,
Bruno Haible <=