]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
authorEvan Prodromou <evan@status.net>
Wed, 6 Apr 2011 21:57:57 +0000 (17:57 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 6 Apr 2011 21:57:57 +0000 (17:57 -0400)
12 files changed:
plugins/CacheLog/CacheLogPlugin.php
plugins/CasAuthentication/CasAuthenticationPlugin.php
plugins/CasAuthentication/caslogin.php
plugins/ClientSideShorten/ClientSideShortenPlugin.php
plugins/ClientSideShorten/README
plugins/ClientSideShorten/shorten.js
plugins/ClientSideShorten/shorten.php
plugins/Comet/bayeux.class.inc.php
plugins/Comet/cometupdate.js
plugins/DirectionDetector/DirectionDetectorPlugin.php
plugins/Directory/DirectoryPlugin.php
plugins/DiskCache/DiskCachePlugin.php

index ab9538df056768f1726c52ed4c536f8327541e8d..9eb3350784b5b98a4410193d9235cbaa244f85da 100644 (file)
@@ -103,6 +103,7 @@ class CacheLogPlugin extends Plugin
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:CacheLog',
                             'description' =>
+                            // TRANS: Plugin description.
                             _m('Log reads and writes to the cache.'));
         return true;
     }
index 3196bd94a7a622f6d0e186b698e0a8ea0d297040..ecc642b8568ebac7796cda0c8af532142a334d9d 100644 (file)
@@ -125,12 +125,15 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
     function onInitializePlugin(){
         parent::onInitializePlugin();
         if(!isset($this->server)){
+            // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
             throw new Exception(_m("Specifying a server is required."));
         }
         if(!isset($this->port)){
+            // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
             throw new Exception(_m("Specifying a port is required."));
         }
         if(!isset($this->path)){
+            // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
             throw new Exception(_m("Specifying a path is required."));
         }
         //These values need to be accessible to a action object
index 3301ce5824bffdaa80875c3833cce746191a5a63..0e16427184b45ee03fe3d1cee6a1d4bd66694436 100644 (file)
@@ -25,6 +25,7 @@ class CasloginAction extends Action
     {
         parent::handle($args);
         if (common_is_real_login()) {
+            // TRANS: Client error displayed when trying to log in while already logged on.
             $this->clientError(_m('Already logged in.'));
         } else {
             global $casSettings;
@@ -36,12 +37,14 @@ class CasloginAction extends Action
             $casTempPassword = common_good_rand(16);
             $user = common_check_user(phpCAS::getUser(), $casTempPassword);
             if (!$user) {
+                // TRANS: Server error displayed when trying to log in with incorrect username or password.
                 $this->serverError(_m('Incorrect username or password.'));
                 return;
             }
 
             // success!
             if (!common_set_user($user)) {
+                // TRANS: Server error displayed when login fails in CAS authentication plugin.
                 $this->serverError(_m('Error setting user. You are probably not authorized.'));
                 return;
             }
index 65e27a0374988bdbf5f1dcd71ad7250259e54069..6379acd3340ceda95d016e74e6ed8d2335b55bc6 100644 (file)
@@ -73,6 +73,7 @@ class ClientSideShortenPlugin extends Plugin
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:ClientSideShorten',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('ClientSideShorten causes the web interface\'s notice form to automatically shorten URLs as they entered, and before the notice is submitted.'));
         return true;
     }
index e6524c9c7dcc1958283a8d9a59c0b688519a1306..70300a85b475ade4c7017cf5bf9d2905c57eef31 100644 (file)
@@ -1,4 +1,5 @@
-ClientSideShorten causes the web interface's notice form to automatically shorten urls as they entered, and before the notice is submitted.
+ClientSideShorten causes the web interface's notice form to automatically
+shorten URLs as they entered, and before the notice is submitted.
 
 Installation
 ============
index bdffb81e266da08c33b7c4a31966f191b79208f0..d7e17d5284f076fcfba5076dbe9d139ced60c1ff 100644 (file)
@@ -16,7 +16,7 @@
                 function delayed () {
                     if (!execAsap)
                         func.apply(obj, args);
-                        timeout = null; 
+                        timeout = null;
                 };
 
                 if (timeout)
@@ -24,7 +24,7 @@
                 else if (execAsap)
                     func.apply(obj, args);
 
-                timeout = setTimeout(delayed, threshold || 100); 
+                timeout = setTimeout(delayed, threshold || 100);
             };
         }
         jQuery.fn[sr] = function(fn){  return fn ? this.bind('keypress', debounce(fn, 1000)) : this.trigger(sr); };
index 3e7121db8b2d7db2b5a717b1fee8447498295903..6840d532aab720d4d21d2bdbf47431d9ccc3383f 100644 (file)
@@ -52,7 +52,8 @@ class ShortenAction extends Action
         $this->users=array();
         $this->text = $this->arg('text');
         if(is_null($this->text)){
-            throw new ClientException(_m('\'text\' argument must be specified.'));
+            // TRANS: Client exception thrown when a text argument is not present.
+            throw new ClientException(_m('"text" argument must be specified.'));
         }
         return true;
     }
index 39ad8a8fc6aa15c0d6b130df382f444fbeb9c97e..4fe8600f845ca6e169b30e2fc4c3343ab628bc7f 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 /*
- *
  * Phomet: a php comet client
  *
  * Copyright (C) 2008 Morgan 'ARR!' Allen <morganrallen@gmail.com> http://morglog.alleycatracing.com
index 72cca004b7b5f8195fc165aff261e0b08c2104b8..50b02b7f3486d1999fdc7f0b2dfdcd75cdfb4a47 100644 (file)
@@ -1,6 +1,4 @@
 // update the local timeline from a Comet server
-//
-
 var CometUpdate = function()
 {
      var _server;
@@ -27,4 +25,3 @@ var CometUpdate = function()
           }
      }
 }();
-
index ec206dd75c2f8df2fae9846a2b2fa65ccbadf15e..be8dbea8e5dbae04d42b8c0906594e4a36da740c 100644 (file)
@@ -261,6 +261,7 @@ class DirectionDetectorPlugin extends Plugin {
             'version' => DIRECTIONDETECTORPLUGIN_VERSION,
             'author' => 'Behrooz Shabani',
             'homepage' => $url,
+            // TRANS: Plugin description.
             'rawdescription' => _m('Shows notices with right-to-left content in correct direction.')
         );
         return true;
index cba75802e5f3ad235af2488c5302af8dfd6b7c9a..4fe1eaec9eb6fb9aac50109eb94728aeeb27d7d9 100644 (file)
@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
  */
 class DirectoryPlugin extends Plugin
 {
-
     private $dir = null;
 
     /**
@@ -165,8 +164,10 @@ class DirectoryPlugin extends Plugin
 
         $nav->out->menuItem(
             common_local_url('userdirectory'),
-            _m('Directory'),
-            _m('User Directory'),
+            // TRANS: Menu item text for user directory.
+            _m('MENU','Directory'),
+            // TRANS: Menu item title for user directory.
+            _m('User Directory.'),
             $actionName == 'userdirectory',
             'nav_directory'
         );
@@ -184,6 +185,7 @@ class DirectoryPlugin extends Plugin
             'version' => STATUSNET_VERSION,
             'author' => 'Zach Copley',
             'homepage' => 'http://status.net/wiki/Plugin:Directory',
+            // TRANS: Plugin description.
             'rawdescription' => _m('Add a user directory.')
         );
 
index 47d4b153cf6dff5335293516cea21a2e9d852cf5..d021a6641aa7dba0e025ab6620b1e6307f68be17 100644 (file)
@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link      http://status.net/
  */
-
 class DiskCachePlugin extends Plugin
 {
     var $root = '/tmp';
@@ -64,7 +63,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheGet(&$key, &$value)
     {
         $filename = $this->keyToFilename($key);
@@ -91,7 +89,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
     {
         $filename = $this->keyToFilename($key);
@@ -152,7 +149,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheDelete(&$key, &$success)
     {
         $filename = $this->keyToFilename($key);
@@ -172,6 +168,7 @@ class DiskCachePlugin extends Plugin
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Plugin to implement cache interface with disk files.'));
         return true;
     }