Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Matt Kraai
On Mon, Jan 22, 2001 at 12:22:13AM +0100, Jesus M. Gonzalez-Barahona wrote:
> Should I commit the patch, or are you going to commit it?

I just did.  Sorry it took me so long.

Matt



Re: /international

2001-01-23 Thread Josip Rodin
On Mon, Jan 22, 2001 at 11:36:39PM -0600, James A. Treacy wrote:
> > Currently, when the makefiles install the pages, it links xxx.html ->
> > xxx.en.html. How do I set it up to link xxx.html -> xxx.sv.html for
> > that directory?
> 
> You need to override the following section of webwml/Makefile.common:
> ifndef NOGENERICINSTDEP
  ~~~
> $(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
>@echo copying $(@F) to $(HTMLDIR)
>[EMAIL PROTECTED] $(@F) $(HTMLDIR)
> ifeq ($(LANGUAGE),en)
>@echo making a link $(@D)/$(*F).html -\> $(@F)
>@ln -sf $(@F) $(@D)/$(*F).html
> endif
> endif

The underlined thing is the fix for this problem, Peter should set up that
makefile to say:

NOGENERICINSTDEP := true

before any `include' statements. And at the end of the file, add:

$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
[EMAIL PROTECTED] $(@F) $(HTMLDIR)
ifeq "$(LANGUAGE)" "sv"
@echo making a link $(@D)/$(*F).html -\> $(@F)
@ln -sf $(@F) $(@D)/$(*F).html
endif

I'm not sure if the ifeq is necessary, I don't know if anyone would want to
translate that stuff...

> The first thing to notice is that
> webwml/$lang/international/Makefile includes webwml/$lang/Make.lang
> and
> webwml/$lang/Make.lang includes webwml/Makefile.common

(Just for the record: this is on purpose -- every little makefile includes
Makefile.common, that's why it's got the "common" suffix :)

> I suggest fixing webwml/Makefile.common so that the language that
> gets the symlink is configurable. I'm thinking of something like
> ifeq ($(LANGUAGE),$(LINKLANG))
> instead of
> ifeq ($(LANGUAGE),en)
> where LINKLANG is set by default to en, but can be overridden.

I wouldn't have anything against this, OTOH.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Bug#83131: www.debian.org: German Alpha installation docs point to x86 version.

2001-01-23 Thread Josip Rodin
reassign 83131 boot-floppies
severity 83131 minor
thanks

On Mon, Jan 22, 2001 at 01:07:11PM +0100, Daniel Kobras wrote:
> Package: www.debian.org
> Version: 20010122
> Severity: normal
> 
> I just tried to read potato's installation docs for Alpha via
> 
> http://www.debian.org/releases/2.2/alpha/install
> 
> Language preferences of my browser were set to 'de'. A German page appeared
> alright, but it was the install doc for x86 platforms. Changing the 
> preferences to 'en' returned the correct Alpha page.

There is a small problem with that title in the German translation, it has
Intel x86 hardcoded. The document you got was in fact the page for Alpha
(unless there's some other problem). Anyway, I'll fix that oneliner in CVS
now.

I'm reassigning the bug report to where the document sources are (as a
reminder to Adam to install the new stuff into the web site), and setting
the severity accordingly.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Processed: Re: Bug#83131: www.debian.org: German Alpha installation docs point to x86 version.

2001-01-23 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> reassign 83131 boot-floppies
Bug#83131: www.debian.org: German Alpha installation docs point to x86 version.
Bug reassigned from package `www.debian.org' to `boot-floppies'.

> severity 83131 minor
Bug#83131: www.debian.org: German Alpha installation docs point to x86 version.
Severity set to `minor'.

> thanks
Stopping processing here.

Please contact me if you need assistance.

Darren Benham
(administrator, Debian Bugs database)



Bug#82852: dependency problems

2001-01-23 Thread Matt Kraai
Howdy,

This problem is almost fixed.  The only remaining problem that I
know of is the fact that the annual indices do not depend on
english/template/debian/weeklynews/index.wml , so they are not
being rebuilt with the new fixed version.  How about the following
patch to */News/weekly/Makefile?

--- Makefile.orig   Tue Jan 23 07:41:56 2001
+++ MakefileTue Jan 23 07:41:51 2001
@@ -25,6 +25,9 @@
   $(TEMPLDIR)/weeklynews/header.wml
cd $(@D) && $(WML) $(notdir $(<))
 
+$(patsubst %.wml,%.$(LANGUAGE).html,$(wildcard */index.wml)): \
+   $(TEMPLDIR)/weeklynews/index.wml
+
 install:: $(HTMLDESTFILES)
@# Set up current issue symlink. In case you're wondering, the only
@# reason I use /current/issue instead of ./current is

Matt



Bug#82852: dependency problems

2001-01-23 Thread Josip Rodin
On Tue, Jan 23, 2001 at 07:43:22AM -0800, Matt Kraai wrote:
> the annual indices do not depend on
> english/template/debian/weeklynews/index.wml , so they are not
> being rebuilt with the new fixed version.  How about the following
> patch to */News/weekly/Makefile?
> 
> +$(patsubst %.wml,%.$(LANGUAGE).html,$(wildcard */index.wml)): \
> + $(TEMPLDIR)/weeklynews/index.wml
> +

Looks good to me.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Jesus M. Gonzalez-Barahona

I guess it would be much better fixing get_weeklynews_list to look for
instance for a line with "wml::debian::weeklynews::header"; and "SUMMARY=".

Saludos,

 Jesus.

PS: BTW, I commited spanish/News/weekly/2001/3/index.wml some days
ago, but I still see no reference to it in
http://www.debian.org/News/weekly/2001/index.es.html (neither in
English nor in Spanish). When does the script run to update that page?

OTOH http://www.debian.org/News/weekly/2000/index.es.html only has
summaries in English (although most of the DWN for 2000 are translated
into Spanish). Maybe spanish/News/weekly/2000/index.wml is not
properly built? Maybe another problem with first line being
"

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Jesus M. Gonzalez-Barahona
Marcin Owsiany writes:
 > On Sun, Jan 21, 2001 at 10:40:08PM -0800, Matt Kraai wrote:
 > > On Mon, Jan 22, 2001 at 12:22:13AM +0100, Jesus M. Gonzalez-Barahona wrote:
 > > > Should I commit the patch, or are you going to commit it?
 > > 
 > > I think I figured out the other problem as well.  The
 > > get_weeklynews_list function expects the header line to be the
 > > first in the file, which isn't the case for the first two issues
 > > of 2001 (the first line is a 

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Matt Kraai
On Tue, Jan 23, 2001 at 11:35:01PM +0100, Jesus M. Gonzalez-Barahona wrote:
> Marcin Owsiany writes:
>  > BTW this should be changed to a #use translation-check one.
>  > 
> 
> ???
> 
> I've been told that translation-check is for different purposes thank
> 

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Matt Kraai
On Tue, Jan 23, 2001 at 11:30:13PM +0100, Jesus M. Gonzalez-Barahona wrote:
> I guess it would be much better fixing get_weeklynews_list to look for
> instance for a line with "wml::debian::weeklynews::header"; and "SUMMARY=".

I don't think so.  You really shouldn't have any other includes
before the header.  It isn't nice to silently drop broken pages
from the index, however.  Perhaps it should display a nice big
warning on the index page when an issue is broken?

> PS: BTW, I commited spanish/News/weekly/2001/3/index.wml some days
> ago, but I still see no reference to it in
> http://www.debian.org/News/weekly/2001/index.es.html (neither in
> English nor in Spanish). When does the script run to update that page?
> 
> OTOH http://www.debian.org/News/weekly/2000/index.es.html only has
> summaries in English (although most of the DWN for 2000 are translated
> into Spanish). Maybe spanish/News/weekly/2000/index.wml is not
> properly built? Maybe another problem with first line being
> "

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Marcin Owsiany
On Tue, Jan 23, 2001 at 11:35:01PM +0100, Jesus M. Gonzalez-Barahona wrote:
> Marcin Owsiany writes:
>  > On Sun, Jan 21, 2001 at 10:40:08PM -0800, Matt Kraai wrote:
>  > > On Mon, Jan 22, 2001 at 12:22:13AM +0100, Jesus M. Gonzalez-Barahona 
> wrote:
>  > > of 2001 (the first line is a 

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Josip Rodin
On Tue, Jan 23, 2001 at 11:35:01PM +0100, Jesus M. Gonzalez-Barahona wrote:
>  > > > Should I commit the patch, or are you going to commit it?
>  > > 
>  > > I think I figured out the other problem as well.  The
>  > > get_weeklynews_list function expects the header line to be the
>  > > first in the file, which isn't the case for the first two issues
>  > > of 2001 (the first line is a  tags should be
taken out back and shot.

-- 
Digital Electronic Being Intended for Assassination and Nullification



Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Josip Rodin
On Tue, Jan 23, 2001 at 02:57:24PM -0800, Matt Kraai wrote:
> check_trans.pl can extract the original version from the use of
> translation-check, so you only need to use the 

Bug#82852: www.debian.org: Some automatic indexes not being properly generated in Spanish translations

2001-01-23 Thread Matt Kraai
On Tue, Jan 23, 2001 at 03:01:56PM -0800, Matt Kraai wrote:
> On Tue, Jan 23, 2001 at 11:30:13PM +0100, Jesus M. Gonzalez-Barahona wrote:
> > PS: BTW, I commited spanish/News/weekly/2001/3/index.wml some days
> > ago, but I still see no reference to it in
> > http://www.debian.org/News/weekly/2001/index.es.html (neither in
> > English nor in Spanish). When does the script run to update that page?
> > 
> > OTOH http://www.debian.org/News/weekly/2000/index.es.html only has
> > summaries in English (although most of the DWN for 2000 are translated
> > into Spanish). Maybe spanish/News/weekly/2000/index.wml is not
> > properly built? Maybe another problem with first line being
> > "