]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/DomainWhitelist/lib/whitelistinviteform.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / DomainWhitelist / lib / whitelistinviteform.php
index 72029bc3e88d8ef5639b39fa5a180766ef91bbd5..77a48f92fa3ae054cccab6db2832fcc29bc6d674 100644 (file)
@@ -46,7 +46,7 @@ require_once INSTALLDIR . '/lib/form.php';
 class WhitelistInviteForm extends Form
 {
     private $whitelist = null;
-    
+
     /**
      * Constructor
      *
@@ -86,7 +86,7 @@ class WhitelistInviteForm extends Form
     function formLegend()
     {
         // TRANS: Form legend.
-        $this->out->element('legend', null, _('Invite collegues'));
+        $this->out->element('legend', null, _m('Invite collegues'));
     }
 
     /**
@@ -101,17 +101,17 @@ class WhitelistInviteForm extends Form
             $this->showEmailLI();
         }
         $this->out->elementStart('li');
-        // TRANS: Field label for a personal message to send to invitees.
         $this->out->textarea(
-            'personal', _('Personal message'),
+            // TRANS: Field label for a personal message to send to invitees.
+            'personal', _m('Personal message'),
             $this->out->trimmed('personal'),
-            // TRANS: Tooltip for field label for a personal message to send to invitees.
-            _('Optionally add a personal message to the invitation.')
+            // TRANS: Field title for a personal message to send to invitees.
+            _m('Optionally add a personal message to the invitation.')
         );
         $this->out->elementEnd('li');
         $this->out->elementEnd('ul');
     }
-    
+
     function showEmailLI()
     {
         $this->out->elementStart('li');
@@ -119,8 +119,8 @@ class WhitelistInviteForm extends Form
         $this->out->text('@');
         if (count($this->whitelist) == 1) {
             $this->out->element(
-                'span', 
-                array('class' => 'email_invite'), 
+                'span',
+                array('class' => 'email_invite'),
                 $this->whitelist[0]
            );
            $this->out->hidden('domain[]', $this->whitelist[0]);
@@ -134,14 +134,15 @@ class WhitelistInviteForm extends Form
         $this->showMultiControls();
         $this->out->elementEnd('li');
     }
-    
+
     function showMultiControls()
     {
         $this->out->element(
             'a',
             array(
                 'class' => 'remove_row',
-                'href' => 'javascript://',
+                'href'  => 'javascript://',
+                'style' => 'display: none;'
             ),
             '-'
         );
@@ -150,21 +151,14 @@ class WhitelistInviteForm extends Form
             'a',
             array(
                 'class' => 'add_row',
-                'href' => 'javascript://',
+                'href'  => 'javascript://',
+                'style' => 'display: none;'
             ),
-            '+'
+            // TRANS: Link description to action to add another item to a list.
+            _m('Add another item')
         );
     }
-    
-    function getUsersDomain()
-    {
-        $user = common_current_user();
-        
-        assert(!empty($user));
-        
-        
-    }
-    
+
     /**
      * Action elements
      *
@@ -172,13 +166,13 @@ class WhitelistInviteForm extends Form
      */
     function formActions()
     {
-        // TRANS: Send button for inviting friends
         $this->out->submit(
             'send',
+            // TRANS: Send button for inviting friends.
             _m('BUTTON','Send'), 'submit form_action-primary',
-            // TRANS: Submit button title.
             'send',
-            _('Send')
+            // TRANS: Submit button title.
+            _m('Send invitations.')
         );
     }
 }