]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update translator documentation and whitespace.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Wed, 13 Apr 2011 10:41:25 +0000 (12:41 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Wed, 13 Apr 2011 11:22:50 +0000 (13:22 +0200)
Update file header comment.

plugins/Imap/ImapPlugin.php
plugins/Imap/imapmailhandler.php
plugins/Imap/imapmanager.php

index 8d8dbf223f1a80f57822a1995c574acdce8f1d95..dbaa904c6e5b0efba91fd09f838c0c2606237fdd 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * StatusNet, the distributed open-source microblogging tool
  *
- * Plugin to add a StatusNet Facebook application
+ * IMAP plugin to allow StatusNet to grab incoming emails and handle them as new user posts
  *
  * PHP version 5
  *
@@ -51,16 +51,21 @@ class ImapPlugin extends Plugin
 
     function initialize(){
         if(!isset($this->mailbox)){
-            throw new Exception(_m("A mailbox must be specified."));
+            // TRANS: Exception thrown when configuration of the IMAP plugin is incorrect.
+            throw new Exception(_m('A mailbox must be specified.'));
         }
         if(!isset($this->user)){
-            throw new Exception(_m("A user must be specified."));
+            // TRANS: Exception thrown when configuration of the IMAP plugin is incorrect.
+            throw new Exception(_m('A user must be specified.'));
         }
         if(!isset($this->password)){
-            throw new Exception(_m("A password must be specified."));
+            // TRANS: Exception thrown when configuration of the IMAP plugin is incorrect.
+            throw new Exception(_m('A password must be specified.'));
         }
         if(!isset($this->poll_frequency)){
-            throw new Exception(_m("A poll_frequency must be specified."));
+            // TRANS: Exception thrown when configuration of the IMAP plugin is incorrect.
+            // TRANS: poll_frequency is a setting that should not be translated.
+            throw new Exception(_m('A poll_frequency must be specified.'));
         }
 
         return true;
@@ -100,6 +105,7 @@ class ImapPlugin extends Plugin
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:IMAP',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('The IMAP plugin allows for StatusNet to check a POP or IMAP mailbox for incoming mail containing user posts.'));
         return true;
     }
index 92abf64747846529dc21301a8774bffea90da658..e287523eef8a65230b2b76d1b689ba7c36e48af9 100644 (file)
@@ -27,6 +27,7 @@ class IMAPMailHandler extends MailHandler
     {
         $this->log(LOG_INFO, "Error: $from $msg");
         $headers['To'] = $from;
+        // TRANS: E-mail subject in case of an error.
         $headers['Subject'] = _m('Error');
 
         return mail_send(array($from), $headers, $msg);
index 2d27ac97a87ecb37cdfa794e4726aa0007f4fa24..835de89106e630ac1a841fed6f4ae11d54f5c236 100644 (file)
@@ -48,7 +48,8 @@ class ImapManager extends IoManager
      */
     public static function get()
     {
-        throw new Exception(_m('ImapManager should be created using its constructor, not the using the static get method.'));
+        // TRANS: Exception thrown when the ImapManager is used incorrectly in the code.
+        throw new Exception(_m('ImapManager should be created using its constructor, not the using the static "get()" method.'));
     }
 
     /**