Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Emmanuele Bassi
hi all;

in Moblin first, and now in MeeGo, the UX components have replaced the
po/LINGUAS file with a nice little m4 macro called AS_ALL_LINGUAS.

the macro scans the po/ directory for all translation files and sets the
ALL_LINGUAS variable with the list. files can be blacklisted by using a
LINGUAS.ignore file.

I wonder if it would be worth to consider for the GNOME project as well,
as it simplifies the maintainership burden and limits the amount of
files that have to be handled by the translation committers.

to use the macro: just drop the as-linguas.m4 file in your macro
directory (the one you specified in AC_CONFIG_MACRO_DIR) and then just
call AS_ALL_LINGUAS in your configure.ac, in the section where you
define GETTEXT_PACKAGE and call the i18n tools. and that's all there is
to it. :-)

the as-linguas.m4 macro was written by Neil Roberts and Ross Burton.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi


as-linguas.m4
Description: application/m4
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Bastien Nocera
On Fri, 2010-07-16 at 11:47 +0100, Emmanuele Bassi wrote:
 hi all;
 
 in Moblin first, and now in MeeGo, the UX components have replaced the
 po/LINGUAS file with a nice little m4 macro called AS_ALL_LINGUAS.
 
 the macro scans the po/ directory for all translation files and sets the
 ALL_LINGUAS variable with the list. files can be blacklisted by using a
 LINGUAS.ignore file.
 
 I wonder if it would be worth to consider for the GNOME project as well,
 as it simplifies the maintainership burden and limits the amount of
 files that have to be handled by the translation committers.
 
 to use the macro: just drop the as-linguas.m4 file in your macro
 directory (the one you specified in AC_CONFIG_MACRO_DIR) and then just
 call AS_ALL_LINGUAS in your configure.ac, in the section where you
 define GETTEXT_PACKAGE and call the i18n tools. and that's all there is
 to it. :-)
 
 the as-linguas.m4 macro was written by Neil Roberts and Ross Burton.

But how does one disable a broken translation file without deleting it?

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Emmanuele Bassi
On Fri, 2010-07-16 at 12:59 +0100, Bastien Nocera wrote:
  
  the as-linguas.m4 macro was written by Neil Roberts and Ross Burton.
 
 But how does one disable a broken translation file without deleting it?

as I wrote:

  the macro scans the po/ directory for all translation files and sets the
  ALL_LINGUAS variable with the list. files can be blacklisted by using a
  LINGUAS.ignore file.

by adding it to the LINGUAS.ignore file

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n