From: <var...@us...> - 2014-09-25 10:39:06
|
Revision: 9115 http://sourceforge.net/p/phpwiki/code/9115 Author: vargenau Date: 2014-09-25 10:38:58 +0000 (Thu, 25 Sep 2014) Log Message: ----------- Translate more strings Modified Paths: -------------- trunk/lib/plugin/AppendText.php trunk/lib/plugin/AsciiMath.php trunk/lib/plugin/FoafViewer.php trunk/lib/plugin/PasswordReset.php trunk/lib/plugin/PreferenceApp.php trunk/lib/plugin/RecentReferrers.php trunk/lib/plugin/SemanticSearch.php Modified: trunk/lib/plugin/AppendText.php =================================================================== --- trunk/lib/plugin/AppendText.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/AppendText.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -65,7 +65,7 @@ } else { $html = HTML(); if ($args['page'] != $basepage) - $html->pushContent("pages argument overrides page argument. ignored.", HTML::br()); + $html->pushContent(_("pages argument overrides page argument. ignored."), HTML::br()); foreach ($args['pages'] as $pagename) { $html->pushContent($this->work($pagename, $args, $dbi, $request)); } Modified: trunk/lib/plugin/AsciiMath.php =================================================================== --- trunk/lib/plugin/AsciiMath.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/AsciiMath.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -60,7 +60,7 @@ { $args = $this->getArgs($argstr, $request); if (empty($this->source)) { - return HTML::div(array('class' => "error"), "Please provide a formula to AsciiMath plugin"); + return HTML::div(array('class' => "error"), _("Please provide a formula to AsciiMath plugin")); } include 'lib/ASCIIMathPHP/ASCIIMathPHP.cfg.php'; Modified: trunk/lib/plugin/FoafViewer.php =================================================================== --- trunk/lib/plugin/FoafViewer.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/FoafViewer.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -124,7 +124,7 @@ $foaffile = url_get_contents($foaf); if (!$foaffile) { //TODO: get errormsg - return HTML(HTML::p("Resource isn't available: Something went wrong, probably a 404!")); + return HTML(HTML::p(_("Resource isn't available: Something went wrong, probably a 404!"))); } // Create new Parser object $parser = new XML_FOAF_Parser; Modified: trunk/lib/plugin/PasswordReset.php =================================================================== --- trunk/lib/plugin/PasswordReset.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/PasswordReset.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -150,7 +150,7 @@ $isadmin ? 'wikiadmin' : 'button'), HTML::raw(' '), Button('submit:admin_reset[cancel]', _("Cancel"), 'button')); - $header = HTML::strong("Verify"); + $header = HTML::strong(_("Verify")); if (!$user->isAdmin()) { // check for email if ($userid == $user->UserName() and $user->isAuthenticated()) { @@ -173,7 +173,7 @@ } $verified = $thisuser->_prefs->_prefs['email']->getraw('emailVerified'); if (!$verified) - $header->pushContent(HTML::br(), "Warning: This users email address is unverified!"); + $header->pushContent(HTML::br(), _("Warning: This users email address is unverified!")); } return $this->doForm($request, $userid, $header, Modified: trunk/lib/plugin/PreferenceApp.php =================================================================== --- trunk/lib/plugin/PreferenceApp.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/PreferenceApp.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -77,7 +77,7 @@ $group = $category; } if ($category == null || $pageTextLabel == null) { - return HTML::div(array('class' => "error"), "PreferencesApp Error: You must declare at least parameters category and pageTextLabel."); + return HTML::div(array('class' => "error"), _("PreferencesApp Error: You must declare at least parameters category and pageTextLabel.")); } $dbi = $request->getDbh(); Modified: trunk/lib/plugin/RecentReferrers.php =================================================================== --- trunk/lib/plugin/RecentReferrers.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/RecentReferrers.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -48,7 +48,7 @@ function run($dbi, $argstr, &$request, $basepage) { if (!ACCESS_LOG) { - return HTML::div(array('class' => "error"), "Error: no ACCESS_LOG"); + return HTML::div(array('class' => "error"), _("Error: no ACCESS_LOG")); } $args = $this->getArgs($argstr, $request); $table = HTML::table(array('class' => 'pagelist')); @@ -59,8 +59,8 @@ if ($logiter = $accesslog->get_referer($limit, "external_only") and $logiter->count() ) { - $table->pushContent(HTML::tr(HTML::th("Target"), HTML::th("Referrer"), - HTML::th("Host"), HTML::th("Date"))); + $table->pushContent(HTML::tr(HTML::th(_("Target")), HTML::th(_("Referrer")), + HTML::th(_("Host")), HTML::th(_("Date")))); while ($logentry = $logiter->next()) { $table->pushContent(HTML::tr(HTML::td($logentry['request']), HTML::td($logentry['referer']), Modified: trunk/lib/plugin/SemanticSearch.php =================================================================== --- trunk/lib/plugin/SemanticSearch.php 2014-09-25 10:38:07 UTC (rev 9114) +++ trunk/lib/plugin/SemanticSearch.php 2014-09-25 10:38:58 UTC (rev 9115) @@ -145,10 +145,10 @@ HTML::colgroup(array('span' => 6)), HTML::thead (HTML::tr( - HTML::th('Pagefilter'), - HTML::th('Relation'), + HTML::th(_('Pagefilter')), + HTML::th(_('Relation')), HTML::th(), - HTML::th('Links'), + HTML::th(_('Links')), HTML::th() )), HTML::tbody @@ -228,10 +228,10 @@ HTML::colgroup(array('span' => 6)), HTML::thead (HTML::tr( - HTML::th('Pagefilter'), - HTML::th('Attribute'), - HTML::th('Op'), - HTML::th('Value'), + HTML::th(_('Pagefilter')), + HTML::th(_('Attribute')), + HTML::th(_('Op')), + HTML::th(_('Value')), HTML::th() )), HTML::tbody This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |