Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory usw-pr-cvs1:/tmp/cvs-serv11905
Modified Files:
Toolbar.php
Log Message:
RecentChanges and RecentEdits: if a toolbar label is not explicitly specified, a suitable localized string is automatically provided.
Index: Toolbar.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/Toolbar.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Toolbar.php 2002/01/08 22:59:33 1.5
--- Toolbar.php 2002/01/08 23:17:21 1.6
***************
*** 55,59 ****
// ImageLinks would be helpful here
if ($imgurl)
! return "<a href=\"". BaseURL() .$action ."\"><img alt=\"$text\" src=\"" .($imgurl) ."\" border=\"0\"></a>";
else
return " ". $this->mklinks($text, 'phpwiki:' .$action) ." ";
--- 55,59 ----
// ImageLinks would be helpful here
if ($imgurl)
! return "<a href=\"". BaseURL() .$action ."\"><img alt=\"" .$text ."\" src=\"" .($imgurl) ."\" border=\"0\"></a>";
else
return " ". $this->mklinks($text, 'phpwiki:' .$action) ." ";
***************
*** 99,102 ****
--- 99,111 ----
//default:
//$sep = $sep ." ";
+ }
+
+ if (empty($label)) {
+ switch ($name) {
+ case _("RecentChanges") :
+ $label = _("Show changes for: %s");
+ case _("RecentEdits") :
+ $label = _("Show edits for: %s");
+ }
}
|