automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ALL_LINGUAS checking


From: Bruno Haible
Subject: ALL_LINGUAS checking
Date: Mon, 23 Jul 2001 18:40:27 +0200 (CEST)

Hi,

This is a request for changing the ALL_LINGUAS handling in automake.

gettext-0.11 will contain support for multiple PO directories. For example,
GNU binutils already have different subdirectories
   bfd/po
   binutils/po
   gas/po
   gprof/po
   ld/po
   opcodes/po

Each of the PO directories has its own set of translations. There is no
single ALL_LINGUAS variable any more. Instead the list of available
languages is contained in a file called po/LINGUAS. This file has the
following structure: Lines starting with # are comment lines. The other
lines contain whitespace separated language names. Example:

# Set of available languages.
cs da de el address@hidden address@hidden es et fr gl id it ja ko nl nn no pl
pt pt_BR ru sl sv tr zh

What does this mean for automake?


1) Signalling an error if there is no ALL_LINGUAS assignment in configure.in
is not appropriate any more.  This is mandatory for being able to use
gettext-0.11. Can you incorporate something like this in automake-1.4-p6 ?

*** automake.in.bak     Sun Jun 10 16:24:20 2001
--- automake.in Sun Jul 22 16:51:04 2001
***************
*** 3313,3319 ****
      }
      else
      {
!       &am_error ("AM_GNU_GETTEXT in configure.in but \`ALL_LINGUAS' not 
defined");
      }
  }
  
--- 3313,3320 ----
      }
      else
      {
!       &am_error ("AM_GNU_GETTEXT in configure.in but po/LINGUAS doesn't exist 
and \`ALL_LINGUAS' not defined")
!           if ! -f "po/LINGUAS";
      }
  }
  


2) Instead automake could look at the list of languages contained in
`sed -e "/^#/d" po/LINGUAS`. This is optional.


Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]