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

Re: Site map



	Great work!

	I have just done 'make sitemap.es.html' in the spanish dir and I've
found that it (mostly) works ok. There do appear to be some problems, mainly
due to translators not translating correctly wml headers (for example in the
spanish Bugs/ wml files) and due to pages not being translated.
	Maybe we should add some kind of tag so that unstranslated pages are
marked as such and the user does not get confused by mixed languages (both
the original one and the translated version)...

	How about this (quick and ugly) patch:

--- english/sitemap.wml Tue May 22 01:01:20 2001
+++ spanish/sitemap.wml Tue May 22 16:38:10 2001
@@ -7,6 +7,7 @@
 <perl>
 sub title_of {
   my ($page) = @_;
+  my $untranslated = 0;

 # special cases
   if ($page eq "http://lists.debian.org/";) { return "<mailarchives>" }
@@ -25,9 +26,13 @@
   $page =~ s,/testing/,/woody/,; # kludges...
   if ($page =~ /\/$/) { $page .= "index.wml" } else { $page .= ".wml" };
 #  print STDERR "page: $page\n"; return;
-  $page = "$ENGLISHDIR/$page" unless (-f $page);
+  if ( ! -f $page ) {
+         $page = "$ENGLISHDIR/$page";
+         $untranslated = 1;
+   }
   my $title = grep '^#use .* title=' $page; chomp $title;
   $title =~ s/^#use .* title="([^"]+)".*$/$1/;
+  $title = "[untranslated] ".$title if $untranslated;
   return $title;
 }
 </perl>



	Of course the "[untranslated]" should be changed to <untranslated>
and be a tag in the wml templates :)

	Regards

	Javi

On Tue, May 22, 2001 at 12:39:37AM +0200, Josip Rodin wrote:
> On Mon, May 21, 2001 at 10:18:47PM +0200, Josip Rodin wrote:
> > I've almost finished the site map[1]. It should be fairly complete. I didn't
> > include any of the smaller subpages, like devel/extract_key and such, just
> > the (semi-)important stuff.
> [...]
> > For the most part, it worked, but the title and the sliced tags are missing
> > and in English, respectively. Can anyone advise, how to perfect this? I'm
> > out of ideas.
> 
> I noticed later that the slices were used, it's just that HR slices that I
> looked at were either the same as EN ones or nonexistent. <blush>
> 
> So, I'll edit the Makefiles for all of the languages RSN and then we can
> start thinking of implementing the first item of the TODO list.
> 



Reply to: