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?

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


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

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


Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Jonh Wendell
Em Sex, 2010-07-16 às 11:47 +0100, Emmanuele Bassi escreveu:

> 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.

+1 from me.

> 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. :-)

Is it possible to add it to gnome-common?

Cheers,
-- 
Jonh Wendell
http://www.bani.com.br

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

Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Christian Persch
Hi;

-1 from me; I don't see any advantage here.

With the current scheme, we have po/LINGUAS which is disted
automagically. With your scheme, we need po/LINGUAS.ignore (which you
have to dist manually). 

Also, if you add a new po/xx.po file, configure isn't re-run
automatically so the new entry isn't added to ALL_LINGUAS. This works
with the current po/LINGUAS file (since inltool's Makefile.in.in
evaluates the LINGUAS file at build time, not configure time). 

Christian
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Ross Burton
On Fri, 2010-07-16 at 18:21 +0200, Christian Persch wrote:
> With the current scheme, we have po/LINGUAS which is disted
> automagically. With your scheme, we need po/LINGUAS.ignore (which you
> have to dist manually). 

It's probably possible to get LINGUAS.ignore added to the dist
automatically.

> Also, if you add a new po/xx.po file, configure isn't re-run
> automatically so the new entry isn't added to ALL_LINGUAS. This works
> with the current po/LINGUAS file (since inltool's Makefile.in.in
> evaluates the LINGUAS file at build time, not configure time). 

Might be possible to inject some rules...  or we propose this as an
option for intltool.

The use-case for this was that with transifex the translators translate
and submit .po files, but LINGUAS is never touched.  Obviously this
often leads to tarballs shipping with lots of translations that are
disabled...

Ross
-- 
Ross Burton mail: r...@burtonini.com
  jabber: r...@burtonini.com
   www: http://burtonini.com


signature.asc
Description: This is a digitally signed message part
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-16 Thread Bastien Nocera
On Fri, 2010-07-16 at 18:20 +0100, Ross Burton wrote:
> On Fri, 2010-07-16 at 18:21 +0200, Christian Persch wrote:
> > With the current scheme, we have po/LINGUAS which is disted
> > automagically. With your scheme, we need po/LINGUAS.ignore (which you
> > have to dist manually). 
> 
> It's probably possible to get LINGUAS.ignore added to the dist
> automatically.
> 
> > Also, if you add a new po/xx.po file, configure isn't re-run
> > automatically so the new entry isn't added to ALL_LINGUAS. This works
> > with the current po/LINGUAS file (since inltool's Makefile.in.in
> > evaluates the LINGUAS file at build time, not configure time). 
> 
> Might be possible to inject some rules...  or we propose this as an
> option for intltool.
> 
> The use-case for this was that with transifex the translators translate
> and submit .po files, but LINGUAS is never touched.  Obviously this
> often leads to tarballs shipping with lots of translations that are
> disabled...

That's a poor excuse for replacing a whole existing system.

I have 4 lines in shared-mime-info's Makefile.am to check for missing
translations on "check". And those rules would only really be useful for
modules that use transifex...

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


Re: Using AS_ALL_LINGUAS instead of po/LINGUAS

2010-07-17 Thread Vincent Untz
Le vendredi 16 juillet 2010, à 18:20 +0100, Ross Burton a écrit :
> The use-case for this was that with transifex the translators translate
> and submit .po files, but LINGUAS is never touched.

Did you file a bug against transifex? :-)

Vincent

-- 
Les gens heureux ne sont pas pressés.
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list