]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Whitespace updates.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 29 Apr 2011 10:30:30 +0000 (12:30 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 29 Apr 2011 10:30:30 +0000 (12:30 +0200)
Translator documentation.

plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php
plugins/DomainStatusNetwork/domainstatusnetworkinstaller.php
plugins/DomainStatusNetwork/scripts/installforemail.php
plugins/DomainStatusNetwork/scripts/proposesite.php
plugins/DomainStatusNetwork/scripts/sitefordomain.php

index 5debb5ef76984b79498f01c79d67809c3cecbf66..e89637cccbd335af008d0b7fc4113a13f79d75c5 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2011, StatusNet, Inc.
  *
  * One status_network per email domain
- * 
+ *
  * PHP version 5
  *
  * This program is free software: you can redistribute it and/or modify
@@ -50,7 +50,6 @@ require_once $_dir . '/extlib/regDomain.inc.php';
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class DomainStatusNetworkPlugin extends Plugin
 {
     static $_thetree = null;
@@ -60,7 +59,7 @@ class DomainStatusNetworkPlugin extends Plugin
         // For various reasons this gets squished
 
         global $tldTree;
-        
+
         if (empty($tldTree)) {
             if (!empty(self::$_thetree)) {
                 $tldTree = self::$_thetree;
@@ -191,6 +190,7 @@ class DomainStatusNetworkPlugin extends Plugin
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:DomainStatusNetwork',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('A plugin that maps a single status_network to an email domain.'));
         return true;
     }
index c3db0c7c2b93f5e654355dc6be599e9e83102ea5..ea8220056cf0b2eb4f7e0b5ef2aa644cf30b0d8b 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2011, StatusNet, Inc.
  *
  * Installer class for domain-based multi-homing systems
- * 
+ *
  * PHP version 5
  *
  * This program is free software: you can redistribute it and/or modify
@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class DomainStatusNetworkInstaller extends Installer
 {
     protected $domain   = null;
@@ -175,7 +174,7 @@ class DomainStatusNetworkInstaller extends Installer
         $result = $sn->insert();
 
         if (!$result) {
-            throw new ServerException("Couldn't create status_network: " . print_r($sn, true));
+            throw new ServerException("Could not create status_network: " . print_r($sn, true));
         }
 
         $sn->setTags(array('domain='.$this->domain));
@@ -183,7 +182,7 @@ class DomainStatusNetworkInstaller extends Installer
         $this->sn = $sn;
 
     }
-    
+
     function checkSchema()
     {
         $config = $this->getConfig();
@@ -215,7 +214,7 @@ class DomainStatusNetworkInstaller extends Installer
         // Create the New DB
         $res = mysql_connect($this->host, $this->rootname, $this->rootpass);
         if (!$res) {
-            throw new ServerException("Can't connect to {$this->host} as {$this->rootname}");
+            throw new ServerException("Cannot connect to {$this->host} as {$this->rootname}.");
         }
 
         mysql_query("CREATE DATABASE ". mysql_real_escape_string($this->database), $res);
@@ -223,11 +222,11 @@ class DomainStatusNetworkInstaller extends Installer
         $return = mysql_select_db($this->database, $res);
 
         if (!$return) {
-            throw new ServerException("Unable to connect to {$this->database} on {$this->host}");
+            throw new ServerException("Unable to connect to {$this->database} on {$this->host}.");
         }
 
         foreach (array('localhost', '%') as $src) {
-            mysql_query("GRANT ALL ON " . 
+            mysql_query("GRANT ALL ON " .
                         mysql_real_escape_string($this->database).".* TO '" .
                         $this->username . "'@'".$src."' ".
                         "IDENTIFIED BY '".$this->password."'", $res);
@@ -239,7 +238,7 @@ class DomainStatusNetworkInstaller extends Installer
     function getConfig()
     {
         static $config;
-        
+
         $cfg_file = "/etc/statusnet/setup.cfg";
 
         if (empty($config)) {
index 2c25def4e14f45bae6c97b62a656f4e6332cecaa..a1f7a65cd30fbd9f341d7c645270037ff87c6b4b 100644 (file)
@@ -42,7 +42,7 @@ if (empty($sn)) {
 
     // Do the thing
     $installer->main();
-    
+
     $sn = $installer->getStatusNetwork();
 
     $config = $installer->getConfig();
index f6efecec23361a55e0fa20db512551aa4002f54a..96a722fdab775767ae943be3483be888905789eb 100644 (file)
@@ -35,7 +35,7 @@ $domain   = DomainStatusNetworkPlugin::toDomain($args[0]);
 $nickname = DomainStatusNetworkPlugin::nicknameForDomain($domain);
 
 if (empty($nickname)) {
-    throw new ClientException("No candidate found.");
+    throw new ClientException('No candidate found.');
 } else {
     print $nickname;
     print "\n";
index b870c486ab253a1023c7f854f4189bd7f231da2c..59412ccebab6929169091d7ccddae77aa837d6b4 100644 (file)
@@ -40,4 +40,3 @@ if (empty($sn)) {
 
 print $sn->nickname."\n";
 exit(0);
-