]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/timelist.php
Update/add translator documentation.
[quix0rs-gnu-social.git] / plugins / Event / timelist.php
index a6e0174180cb993f90a7a9d144724ea4d7bd46de..cb8efb3c1db1985a813a77a16a3e2580cb917ac2 100644 (file)
@@ -32,7 +32,6 @@ if (!defined('STATUSNET')) {
  * Callback handler to populate end time dropdown
  */
 class TimelistAction extends Action {
-
     private $start;
     private $duration;
 
@@ -63,13 +62,14 @@ class TimelistAction extends Action {
 
         if (!common_logged_in()) {
             // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
-            $this->clientError(_('Not logged in.'));
+            $this->clientError(_m('Not logged in.'));
             return;
         }
 
         if (!empty($this->start)) {
             $times = EventTimeList::getTimes($this->start, $this->duration);
         } else {
+            // TRANS: Client error when submitting a form with unexpected information.
             $this->clientError(_m('Unexpected form submission.'));
             return;
         }
@@ -78,6 +78,7 @@ class TimelistAction extends Action {
             header('Content-Type: application/json; charset=utf-8');
             print json_encode($times);
         } else {
+            // TRANS: Client error displayed when using an action in a non-AJAX way.
             $this->clientError(_m('This action is AJAX only.'));
         }
     }