This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35731] New: libfortran should use gettext to for localized error messages
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2008 09:16:36 -0000
- Subject: [Bug fortran/35731] New: libfortran should use gettext to for localized error messages
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Currently, only libcpp and the compilers ("gcc") use gettext for localized
error messages.
libgfortran should do the same.
Note: Besides the actual change, the libgfortran.pot file needs also to
uploaded at http://translationproject.org. I don't know where this is
documented, but the release manager does these .pot uploads regularly.
We essentially need:
a) In libgfortran.h:
#ifdef ENABLE_NLS
#include <libintl.h>
#else
/* Stubs. */
# undef dgettext
# define dgettext(package, msgid) (msgid)
#endif
b) In fmain.c (or somewhere else):
#ifdef ENABLE_NLS
(void) bindtextdomain (PACKAGE, LOCALEDIR);
#endif
#ifndef _
# define _(msgid) dgettext (PACKAGE, msgid)
#endif
#ifndef N_
# define N_(msgid) msgid
#endif
c) In configure.ac
ZW_GNU_GETTEXT_SISTER_DIR
d) We need to add somehow the "po" directory, but I have not figured out how.
--
Summary: libfortran should use gettext to for localized error
messages
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35731