From: <var...@us...> - 2015-07-09 15:58:14
|
Revision: 9706 http://sourceforge.net/p/phpwiki/code/9706 Author: vargenau Date: 2015-07-09 15:58:12 +0000 (Thu, 09 Jul 2015) Log Message: ----------- Fix toggletoc message translation Modified Paths: -------------- trunk/lib/plugin/CreateToc.php trunk/themes/default/wikicommon.js Modified: trunk/lib/plugin/CreateToc.php =================================================================== --- trunk/lib/plugin/CreateToc.php 2015-07-09 15:38:20 UTC (rev 9705) +++ trunk/lib/plugin/CreateToc.php 2015-07-09 15:58:12 UTC (rev 9706) @@ -494,14 +494,14 @@ 'id' => $toctoggleid, 'class' => 'wikiaction', 'title' => _("Click to display the TOC"), - 'onclick' => "toggletoc(this, '" . $open . "', '" . $close . "', '" . $toclistid . "')", + 'onclick' => "toggletoc(this, '" . $open . "', '" . $close . "', '" . $toclistid . "', '" . _('Click to display the TOC') . "', '" . _('Click to hide the TOC') . "')", 'alt' => 'toctoggle', 'src' => $jshide ? $close : $open))); else $toclink = HTML::a(array('id' => 'TOC', 'class' => 'wikiaction', 'title' => _("Click to display"), - 'onclick' => "toggletoc(this, '" . $open . "', '" . $close . "', '" . $toclistid . "')"), + 'onclick' => "toggletoc(this, '" . $open . "', '" . $close . "', '" . $toclistid . "', '" . _('Click to display the TOC') . "', '" . _('Click to hide the TOC') . "')"), _("Table of Contents"), HTML::span(array('style' => 'display:none', 'id' => $toctoggleid), " ")); Modified: trunk/themes/default/wikicommon.js =================================================================== --- trunk/themes/default/wikicommon.js 2015-07-09 15:38:20 UTC (rev 9705) +++ trunk/themes/default/wikicommon.js 2015-07-09 15:58:12 UTC (rev 9706) @@ -41,16 +41,16 @@ } } -function toggletoc(a, open, close, toclist) { +function toggletoc(a, open, close, toclist, titledisplay, titlehide) { var toc=document.getElementById(toclist) if (toc.style.display=='none') { - toc.style.display='block' - a.title='"._("Click to hide the TOC")."' - a.src = open + toc.style.display='block'; + a.title=titlehide; + a.src = open; } else { toc.style.display='none'; - a.title='"._("Click to display the TOC")."' - a.src = close + a.title=titledisplay; + a.src = close; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |