[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] r24319: {website} get us closer to being able to build a translation (website/trunk/include)



Author: arma
Date: 2011-03-09 17:44:19 +0000 (Wed, 09 Mar 2011)
New Revision: 24319

Modified:
   website/trunk/include/links.wmi
Log:
get us closer to being able to build a translation


Modified: website/trunk/include/links.wmi
===================================================================
--- website/trunk/include/links.wmi	2011-03-09 15:51:10 UTC (rev 24318)
+++ website/trunk/include/links.wmi	2011-03-09 17:44:19 UTC (rev 24319)
@@ -30,14 +30,14 @@
  	    my ($page, $lang) = @_;
 	    my ($dir, $base) = $page =~ m,^(?:(.*)/)?(.*?)$,;
 	    $dir = '.' unless defined $dir;
-	    if (-e "$(DOCROOT)/$lang/$dir/$base.wml") {
+	    if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
 	    	return stripDotSlashs("$(DOCROOT)/$dir/$base.html.$lang");
 	    } elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
 	    	return stripDotSlashs("$(DOCROOT)/$dir/$base.html.en");
-        } elsif ($page =~ /^http/) {
-          return $page;
+	    } elsif ($page =~ /^http/) {
+	    	return $page;
 	    } else {
-	    	warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$lang/$dir/$base.wml), but that doesn't exist.";
+	    	warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
 	    }; 
     }
 :>
@@ -50,10 +50,10 @@
 	$dir = '.' unless defined $dir;
 	if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html.$lang");
-	} elsif (-e "$(DOCROOT)/en/$dir/$base.wml") {
+	} elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html");
 	} else {
-		warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$lang/$dir/$base.wml), but that doesn't exist.";
+		warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
 	};
 }:>
 </define-tag>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits