[or-cvs] r22706: {website} revert the pathing for lang (website/branches/web20/include)

Andrew Lewman andrew at torproject.org
Thu Jul 29 15:06:57 UTC 2010


Author: phobos
Date: 2010-07-29 15:06:57 +0000 (Thu, 29 Jul 2010)
New Revision: 22706

Modified:
   website/branches/web20/include/head.wmi
Log:
revert the pathing for lang


Modified: website/branches/web20/include/head.wmi
===================================================================
--- website/branches/web20/include/head.wmi	2010-07-29 15:06:34 UTC (rev 22705)
+++ website/branches/web20/include/head.wmi	2010-07-29 15:06:57 UTC (rev 22706)
@@ -69,7 +69,7 @@
 	            $dir = '.' unless defined $dir;
                 
               # translated version
-              if (-e "$(DOCROOT)/$lang/$dir/$base.wml") {
+              if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
                   printf '<li><a '.$class.' href="%s">%s</a></li>'."\n",
                          stripDotSlashs("$(DOCROOT)/$dir/$base.html.$(LANG)"),$navigation{$key};
               } 
@@ -83,7 +83,7 @@
                 printf '<li><a href="%s">%s</a></li>'."\n", $key, $navigation{$key};
               } else {
                 warn "$WML_SRC_FILENAME has a [page $key] (parses to
-docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$lang/$dir/$base.wml), but that doesn't exist.";
+docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
               }
             }
         }:>
@@ -119,7 +119,7 @@
 
 	          $dir = '.' unless defined $dir;
               # try to use a translated version
-              if (-e "$(DOCROOT)/$lang/$dir/$base.wml") {
+              if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
                   printf '<li class="donate"><a '.$class.' href="%s">%s</a></li>'."\n",
                          stripDotSlashs("$(DOCROOT)/$dir/$base.html.$(LANG)"),$calltoaction{$key};
               } 
@@ -128,7 +128,7 @@
               	printf '<li class="donate"><a '.$class.' href="%s">%s</a></li>'."\n",
                   stripDotSlashs("$(DOCROOT)/$dir/$base.html"), $calltoaction{$key};
               } else {
-                warn "$WML_SRC_FILENAME has a [page $key] (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 $key] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
               }
             }    
           }:>



More information about the tor-commits mailing list