wez             Sat May  8 05:20:43 2004 EDT

  Modified files:              
    /livedocs   style_mapping.php 
  Log:
  Localization/entities patch by Nuno.
  # Nuno, please commit the phpdoc parts of this yourself; thanks!
  
  
http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.12&r2=1.13&ty=u
Index: livedocs/style_mapping.php
diff -u livedocs/style_mapping.php:1.12 livedocs/style_mapping.php:1.13
--- livedocs/style_mapping.php:1.12     Wed May  5 14:52:03 2004
+++ livedocs/style_mapping.php  Sat May  8 05:20:43 2004
@@ -18,7 +18,7 @@
 // | Helper functions for formatting elements                             |
 // +----------------------------------------------------------------------+
 //
-// $Id: style_mapping.php,v 1.12 2004/05/05 18:52:03 wez Exp $
+// $Id: style_mapping.php,v 1.13 2004/05/08 09:20:43 wez Exp $
 
 // almost XPATH.. ;-)
 $map = array(
@@ -122,10 +122,10 @@
        }
        switch ($node->attributes['id']) {
                case "authors":
-                       $prefix = "Authors:<br />";
+                       $prefix = bind_entities('&livedocs.author;');
                        break;
                case "editors":
-                       $prefix = "Edited by:<br />";
+                       $prefix = bind_entities('&livedocs.editors;');
                        break;
                case "translators";
                        $prefix = $cl[0]."<br />";
@@ -150,7 +150,7 @@
                }
        }
 
-       return sprintf('<div class="copyright">Copyright &copy; %s by %s</div>', 
implode(", ", $y), $holder);
+       return sprintf('<div class="copyright">' . 
bind_entities('&livedocs.copyright;') . '</div>', implode(", ", $y), $holder);
 }
 
 function format_refpurpose($node) 
@@ -165,7 +165,7 @@
                if ($q && $r = sqlite_fetch_array($q, SQLITE_NUM)) {
                        $vers = sprintf('<div class="versinfo">%s</div>', $r[0]);
                } else {
-                       $vers = '<div class="versinfo">no version information, might 
be only in CVS</div>';
+                       $vers = '<div class="versinfo">' . 
bind_entities('&livedocs.noversion;') .'</div>';
                }
        }
 

Reply via email to