]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
i18n fixes: plugins should use _m(), not _().
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 11 Mar 2011 17:33:19 +0000 (18:33 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 11 Mar 2011 17:33:19 +0000 (18:33 +0100)
plugins/Poll/newpoll.php
plugins/Poll/showpoll.php

index 585af1a7b52a13587173d699eb75f293e0fc6898..0386f3e3b8cacab68f0e09ca94426ffb0eda02c4 100644 (file)
@@ -59,7 +59,7 @@ class NewPollAction extends Action
      */
     function title()
     {
-        return _('New poll');
+        return _m('New poll');
     }
 
     /**
@@ -76,7 +76,7 @@ class NewPollAction extends Action
         $this->user = common_current_user();
 
         if (empty($this->user)) {
-            throw new ClientException(_("You must be logged in to post a poll."),
+            throw new ClientException(_m('You must be logged in to post a poll.'),
                                       403);
         }
 
@@ -127,11 +127,11 @@ class NewPollAction extends Action
         }
         try {
             if (empty($this->question)) {
-                throw new ClientException(_('Poll must have a question.'));
+                throw new ClientException(_m('Poll must have a question.'));
             }
 
             if (count($this->options) < 2) {
-                throw new ClientException(_('Poll must have at least two options.'));
+                throw new ClientException(_m('Poll must have at least two options.'));
             }
 
 
@@ -150,7 +150,7 @@ class NewPollAction extends Action
             $this->elementStart('html');
             $this->elementStart('head');
             // TRANS: Page title after sending a notice.
-            $this->element('title', null, _('Notice posted'));
+            $this->element('title', null, _m('Notice posted'));
             $this->elementEnd('head');
             $this->elementStart('body');
             $this->showNotice($saved);
index 5b22c06805068210104d2c6fe29810d0ad88864d..60669f96ff663c1a7fd7f2f0a0a5b8388291eca6 100644 (file)
@@ -100,7 +100,7 @@ class ShowPollAction extends ShownoticeAction
      */
     function title()
     {
-        return sprintf(_('%s\'s poll: %s'),
+        return sprintf(_m('%s\'s poll: %s'),
                        $this->user->nickname,
                        $this->poll->question);
     }