X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSimpleUrl%2FSimpleUrlPlugin.php;h=574b466df659b43fd9df0571d7fb218d65c13f77;hb=d8f4de450c7bddab525ee5059f856b50cfb59068;hp=5d3f97d33dbdfc53b792fefc8304937175432c16;hpb=e3e90b4c27e27bbdd293767071dea3d7b5022046;p=quix0rs-gnu-social.git diff --git a/plugins/SimpleUrl/SimpleUrlPlugin.php b/plugins/SimpleUrl/SimpleUrlPlugin.php index 5d3f97d33d..574b466df6 100644 --- a/plugins/SimpleUrl/SimpleUrlPlugin.php +++ b/plugins/SimpleUrl/SimpleUrlPlugin.php @@ -22,7 +22,7 @@ * @category Plugin * @package StatusNet * @author Craig Andrews - * @copyright 2009 Craig Andrews http://candrews.integralblue.com + * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ @@ -38,7 +38,8 @@ class SimpleUrlPlugin extends UrlShortenerPlugin function onInitializePlugin(){ parent::onInitializePlugin(); if(!isset($this->serviceUrl)){ - throw new Exception("must specify a serviceUrl"); + // TRANS: Exception thrown when the SimpleUrl plugin has been configured incorrectly. + throw new Exception(_m('You must specify a serviceUrl.')); } } @@ -49,14 +50,14 @@ class SimpleUrlPlugin extends UrlShortenerPlugin function onPluginVersion(&$versions) { $versions[] = array('name' => sprintf('SimpleUrl (%s)', $this->shortenerName), - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:SimpleUrl', 'rawdescription' => + // TRANS: Plugin description. sprintf(_m('Uses %1$s URL-shortener service.'), $this->shortenerName)); return true; } } -