X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSimpleUrl%2FSimpleUrlPlugin.php;h=574b466df659b43fd9df0571d7fb218d65c13f77;hb=bfaa70076372985e4775866f8a1c98a662657f09;hp=24250f4d07e5e04ef9394ad74b75ed212f5ef98c;hpb=6c959c83ce528614f6e0837cf022d1a67b64b73c;p=quix0rs-gnu-social.git diff --git a/plugins/SimpleUrl/SimpleUrlPlugin.php b/plugins/SimpleUrl/SimpleUrlPlugin.php index 24250f4d07..574b466df6 100644 --- a/plugins/SimpleUrl/SimpleUrlPlugin.php +++ b/plugins/SimpleUrl/SimpleUrlPlugin.php @@ -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; } } -