]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LdapAuthorization/LdapAuthorizationPlugin.php
Merge branch 'master' into 1.0.x
[quix0rs-gnu-social.git] / plugins / LdapAuthorization / LdapAuthorizationPlugin.php
index 3842385cf9e4d95a3d26c1b003ba473f7dc0294a..1049c5610aa918057d777cc5f51e808213d6bfd8 100644 (file)
@@ -38,10 +38,12 @@ class LdapAuthorizationPlugin extends AuthorizationPlugin
 
     function onInitializePlugin(){
         if(!isset($this->provider_name)){
-            throw new Exception("provider_name must be set. Use the provider_name from the LDAP Authentication plugin.");
+            // TRANS: Exception thrown when initialising the LDAP Auth plugin fails because of an incorrect configuration.
+            throw new Exception(_m('provider_name must be set. Use the provider_name from the LDAP Authentication plugin.'));
         }
         if(!isset($this->uniqueMember_attribute)){
-            throw new Exception("uniqueMember_attribute must be set.");
+            // TRANS: Exception thrown when initialising the LDAP Auth plugin fails because of an incorrect configuration.
+            throw new Exception(_m('uniqueMember_attribute must be set.'));
         }
         $this->ldapCommon = new LdapCommon(get_object_vars($this));
     }
@@ -121,6 +123,7 @@ class LdapAuthorizationPlugin extends AuthorizationPlugin
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:LdapAuthorization',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('The LDAP Authorization plugin allows for StatusNet to handle authorization through LDAP.'));
         return true;
     }