X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fversion.php;h=49b2682c066b2bcab139f4cdf96b60d90f15dbe6;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=b6593e5edb09cbdfe061201abf2ad13d2fcd1c49;hpb=6c4ade4251eca321b5251092dbb84d648b3a4258;p=quix0rs-gnu-social.git diff --git a/actions/version.php b/actions/version.php index b6593e5edb..49b2682c06 100644 --- a/actions/version.php +++ b/actions/version.php @@ -1,7 +1,7 @@ . * * @category Info - * @package StatusNet + * @package GNUsocial * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://status.net/ */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Version info page @@ -39,12 +37,13 @@ if (!defined('STATUSNET')) { * complete documentation for admins. * * @category Info - * @package StatusNet + * @package GNUsocial * @author Evan Prodromou + * @author Craig Andrews + * @copyright 2009-2011 Free Software Foundation, Inc http://www.fsf.org * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3 * @link http://status.net/ */ - class VersionAction extends Action { var $pluginVersions = array(); @@ -56,8 +55,7 @@ class VersionAction extends Action * * @return boolean is read only action? */ - - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; } @@ -67,10 +65,10 @@ class VersionAction extends Action * * @return string page title */ - function title() { - return sprintf(_("StatusNet %s"), STATUSNET_VERSION); + // TRANS: Title for version page. %1$s is the engine name, %2$s is the engine version. + return sprintf(_('%1$s %2$s'), GNUSOCIAL_ENGINE, GNUSOCIAL_VERSION); } /** @@ -83,8 +81,7 @@ class VersionAction extends Action * * @return boolean true */ - - function prepare($args) + protected function prepare(array $args=array()) { parent::prepare($args); @@ -103,33 +100,31 @@ class VersionAction extends Action * * @return void */ - - function handle($args) + protected function handle() { - parent::handle($args); + parent::handle(); $this->showPage(); } /* - * Override to add hentry, and content-inner classes + * Override to add h-entry, and content-inner classes * * @return void */ function showContentBlock() { - $this->elementStart('div', array('id' => 'content', 'class' => 'hentry')); + $this->elementStart('div', array('id' => 'content', 'class' => 'h-entry')); $this->showPageTitle(); $this->showPageNoticeBlock(); $this->elementStart('div', array('id' => 'content_inner', - 'class' => 'entry-content')); + 'class' => 'e-content')); // show the actual content (forms, lists, whatever) $this->showContent(); $this->elementEnd('div'); $this->elementEnd('div'); } - /* * Overrride to add entry-title class * @@ -145,38 +140,47 @@ class VersionAction extends Action * * @return void */ - function showContent() { $this->elementStart('p'); + // TRANS: Content part of engine version page. + // TRANS: %1$s is the engine name (GNU social) and %2$s is the GNU social version. $this->raw(sprintf(_('This site is powered by %1$s version %2$s, '. - 'Copyright 2008-2010 StatusNet, Inc. '. + 'Copyright 2008-2013 StatusNet, Inc. '. 'and contributors.'), - XMLStringer::estring('a', array('href' => 'http://status.net/'), - _('StatusNet')), - STATUSNET_VERSION)); + XMLStringer::estring('a', array('href' => GNUSOCIAL_ENGINE_URL), + // TRANS: Engine name. + GNUSOCIAL_ENGINE), + GNUSOCIAL_VERSION)); $this->elementEnd('p'); + // TRANS: Header for engine software contributors section on the version page. $this->element('h2', null, _('Contributors')); + sort($this->contributors); $this->element('p', null, implode(', ', $this->contributors)); + // TRANS: Header for engine software license section on the version page. $this->element('h2', null, _('License')); $this->element('p', null, - _('StatusNet is free software: you can redistribute it and/or modify '. + // TRANS: Content part of engine software version page. %1s is engine name + sprintf(_('%1$s is free software: you can redistribute it and/or modify '. 'it under the terms of the GNU Affero General Public License as published by '. 'the Free Software Foundation, either version 3 of the License, or '. - '(at your option) any later version. ')); + '(at your option) any later version.'), GNUSOCIAL_ENGINE)); $this->element('p', null, + // TRANS: Content part of engine software version page. _('This program is distributed in the hope that it will be useful, '. 'but WITHOUT ANY WARRANTY; without even the implied warranty of '. 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '. - 'GNU Affero General Public License for more details. ')); + 'GNU Affero General Public License for more details.')); $this->elementStart('p'); + // TRANS: Content part of engine version page. + // TRANS: %s is a link to the AGPL license with link description "http://www.gnu.org/licenses/agpl.html". $this->raw(sprintf(_('You should have received a copy of the GNU Affero General Public License '. 'along with this program. If not, see %s.'), XMLStringer::estring('a', array('href' => 'http://www.gnu.org/licenses/agpl.html'), @@ -186,16 +190,21 @@ class VersionAction extends Action // XXX: Theme information? if (count($this->pluginVersions)) { + // TRANS: Header for engine plugins section on the version page. $this->element('h2', null, _('Plugins')); $this->elementStart('table', array('id' => 'plugins_enabled')); $this->elementStart('thead'); $this->elementStart('tr'); - $this->element('th', array('id' => 'plugin_name'), _('Name')); - $this->element('th', array('id' => 'plugin_version'), _('Version')); - $this->element('th', array('id' => 'plugin_authors'), _('Author(s)')); - $this->element('th', array('id' => 'plugin_description'), _('Description')); + // TRANS: Column header for plugins table on version page. + $this->element('th', array('id' => 'plugin_name'), _m('HEADER','Name')); + // TRANS: Column header for plugins table on version page. + $this->element('th', array('id' => 'plugin_version'), _m('HEADER','Version')); + // TRANS: Column header for plugins table on version page. + $this->element('th', array('id' => 'plugin_authors'), _m('HEADER','Author(s)')); + // TRANS: Column header for plugins table on version page. + $this->element('th', array('id' => 'plugin_description'), _m('HEADER','Description')); $this->elementEnd('tr'); $this->elementEnd('thead'); @@ -267,5 +276,8 @@ class VersionAction extends Action 'mEDI', 'Brett Taylor', 'Brigitte Schuster', - 'Brion Vibber'); + 'Brion Vibber (StatusNet)', + 'Siebrand Mazeland', + 'Samantha Doherty (StatusNet)', + 'Mikael Nordfeldth (FSF)'); }