PO files location (Was Re: [d-i] Problems with various debconf templates)

2002-09-04 Thread Denis Barbier

On Sun, Sep 01, 2002 at 10:45:20PM +0200, Denis Barbier wrote:
[...]
 Also in retriever/choose-mirror/debian/templates the mirror list is set via
 a variable, which certainly make its translation impossible.

Here is a patch against retriever/choose-mirror/makeheader.pl

But where must PO files go?
There are at least 2 ways:
  * all messages in a central place (debian-installer/po/ or
debian-installer/libdebian-installer/po/ so that PO catalogs may
be shipped with libdebian-installer-dev and used by all modules
to generate module-dependent MO files)
  * each component ships its own po subdirectory
IMO the first one is more translator-friendly.

Denis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: PO files location (Was Re: [d-i] Problems with various debconf templates)

2002-09-04 Thread Denis Barbier

On Wed, Sep 04, 2002 at 09:30:32AM +0200, Denis Barbier wrote:
[...]
 Here is a patch against retriever/choose-mirror/makeheader.pl

Here it is.

Denis


Index: makeheader.pl
===
RCS file: /cvs/debian-boot/debian-installer/retriever/choose-mirror/makeheader.pl,v
retrieving revision 1.4
diff -u -u -r1.4 makeheader.pl
--- makeheader.pl   29 Aug 2002 11:37:15 -  1.4
+++ makeheader.pl   4 Sep 2002 07:16:35 -
 -46,6 +46,9 
 
 open (OUT, mirrors_$type.h) or die mirrors_$type.h: $!;
 print OUT /* Automatically generated; do not edit. */\n;
+print OUT #ifndef _\n;
+print OUT #define _(ARG) ARG\n;
+print OUT #endif\n;
 
 # Poor man's mirror rating system: push-primary, push* (-secondary), others
 foreach my $site (keys %data) {
 -65,7 +68,8 
next unless exists $data{$site}-{archive-$type} and
exists $data{$site}-{country};
print OUT \t{,
- join(, , $q.$site.$q, $q.$data{$site}-{country}.$q,
+ join(, , $q.$site.$q,
+   _(.$q.$data{$site}-{country}.$q.),
$q.$data{$site}-{archive-$type}.$q),
  },\n;
$used_country{$data{$site}-{country}}=1;



Re: PO files location (Was Re: [d-i] Problems with various debconf templates)

2002-09-04 Thread Junichi Uekawa

On Wed, 4 Sep 2002 09:30:32 +0200
[EMAIL PROTECTED] (Denis Barbier) wrote:

 But where must PO files go?
 There are at least 2 ways:
   * all messages in a central place (debian-installer/po/ or
 debian-installer/libdebian-installer/po/ so that PO catalogs may
 be shipped with libdebian-installer-dev and used by all modules
 to generate module-dependent MO files)
   * each component ships its own po subdirectory
 IMO the first one is more translator-friendly.

It's rather a design decision, but it might be better to collect it in one place,
and generate a debian-installer-locales package which has the po files.


regards,
junichi

-- 
[EMAIL PROTECTED]  http://www.netfort.gr.jp/~dancer




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]