intltool.m4 does not define ENABLE_NLS

Bug #1217976 reported by Seán de Búrca
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
intltool
New
Undecided
Unassigned

Bug Description

Because IT_PROG_INTLTOOL conflicts with AM_GNU_GETTEXT, applications depending on having ENABLE_NLS defined but which need to use IT_PROG_INTLTOOL must define it themselves. From the documentation for AM_GNU_GETTEXT: "The AM_GNU_GETTEXT macro determines whether GNU gettext is available and should be used. If so, it sets the USE_NLS variable to ‘yes’; it defines ENABLE_NLS to 1 in the autoconf generated configuration file (usually called config.h)". IT_PROG_INTLTOOL should copy this AM_GNU_GETTEXT behavior.

Revision history for this message
J. Brown (jb999-deactivatedaccount-deactivatedaccount) wrote :

I second this.

So far, using AM_GLIB_GNU_GETTEXT was a inexpensive alternative (although doing more than necessary). But since AM_GLIB_GNU_GETTEXT has become deprecated, it would be desirable if intltool could perform these few necessary tasks.

Revision history for this message
Ingo Brückl (ib2) wrote :

There are good reasons to prefer intltoolize to gettextize and to not use AM_GNU_GETTEXT. Unfortunately, IT_PROG_INTLTOOL is lacking just one simple check which is the reason why IT_PROG_INTLTOOL is commonly used together with AM_GLIB_GNU_GETTEXT (which provides this missing check).

With AM_GLIB_GNU_GETTEXT having become deprecated recently chances are that it will be dropped sooner or later, resulting in (overkill) AM_GNU_GETTEXT being the only alternative.

Please consider adding IT_ENABLE_NLS to intltool.m4. In doing so, you can simply replace AM_GLIB_GNU_GETTEXT (or AM_GNU_GETTEXT) by new IT_ENABLE_NLS in order to define necessary ENABLE_NLS.

Revision history for this message
J. Brown (jb999-deactivatedaccount-deactivatedaccount) wrote :

Could Ingo's patch please be considered? Works great!

Revision history for this message
Michael Catanzaro (mike-catanzaro) wrote :

For what it's worth: GNOME considers intltool to be deprecated as well. See https://wiki.gnome.org/MigratingFromIntltoolToGettext for our recommendation on how to handle translations nowadays.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.