]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/newpoll.php
i18n/L10n updates
[quix0rs-gnu-social.git] / plugins / Poll / newpoll.php
index 0386f3e3b8cacab68f0e09ca94426ffb0eda02c4..1048b0a1edd930d87b89cb4a99d600993b56bda1 100644 (file)
@@ -59,6 +59,7 @@ class NewPollAction extends Action
      */
     function title()
     {
+        // TRANS: Title for poll page.
         return _m('New poll');
     }
 
@@ -76,6 +77,7 @@ class NewPollAction extends Action
         $this->user = common_current_user();
 
         if (empty($this->user)) {
+            // TRANS: Client exception thrown trying to create a poll while not logged in.
             throw new ClientException(_m('You must be logged in to post a poll.'),
                                       403);
         }
@@ -127,10 +129,12 @@ class NewPollAction extends Action
         }
         try {
             if (empty($this->question)) {
+            // TRANS: Client exception thrown trying to create a poll without a question.
                 throw new ClientException(_m('Poll must have a question.'));
             }
 
             if (count($this->options) < 2) {
+                // TRANS: Client exception thrown trying to create a poll with fewer than two options.
                 throw new ClientException(_m('Poll must have at least two options.'));
             }