]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
authorZach Copley <zach@status.net>
Sun, 17 Apr 2011 23:33:25 +0000 (16:33 -0700)
committerZach Copley <zach@status.net>
Sun, 17 Apr 2011 23:33:25 +0000 (16:33 -0700)
* '1.0.x' of gitorious.org:statusnet/mainline:
  Remove empty locale files.
  Localisation updates from http://translatewiki.net.

plugins/Bookmark/bookmarkform.php
plugins/Bookmark/initialbookmarkform.php
plugins/Event/cancelrsvpform.php
plugins/Event/eventform.php
plugins/Event/rsvpform.php
plugins/Poll/newpollform.php
plugins/Poll/pollresponseform.php
plugins/QnA/lib/qnanewanswerform.php
plugins/QnA/lib/qnanewquestionform.php
plugins/QnA/lib/qnashowanswerform.php
plugins/QnA/lib/qnashowquestionform.php

index 802bbe6c9c97567f9d531191931109236e01e025..ff75ace71e403a118f2a3aa2de650f9580d1369c 100644 (file)
@@ -181,7 +181,7 @@ class BookmarkForm extends Form
     function formActions()
     {
         // TRANS: Button text for action to save a new bookmark.
-        $this->out->submit('submit', _m('BUTTON', 'Save'));
+        $this->out->submit('bookmark-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
     }
 
     function scaleImage($width, $height)
index 70a265778349784489adce5041f3e3ce9e931220..a82941b16ad3b0571126ed515385f9ac19bc8392 100644 (file)
@@ -88,6 +88,6 @@ class InitialBookmarkForm extends Form
     function formActions()
     {
         // TRANS: Button text for action to save a new bookmark.
-        $this->out->submit('submit', _m('BUTTON', 'Add'));
+        $this->out->submit('initial-bookmark-submit', _m('BUTTON', 'Add'), 'submit', 'submit');
     }
 }
index 107351135aa502cdbfef2ff9549ccfafc8d00d0f..3047c57beeeb1e0148a60af7d7b9316dfbb79481 100644 (file)
@@ -93,7 +93,7 @@ class CancelRSVPForm extends Form
     {
         $this->out->elementStart('fieldset', array('id' => 'new_rsvp_data'));
 
-        $this->out->hidden('rsvp', $this->rsvp->id);
+        $this->out->hidden('rsvp-id', $this->rsvp->id, 'rsvp');
 
         switch (RSVP::verbFor($this->rsvp->response)) {
         case RSVP::POSITIVE:
@@ -121,6 +121,6 @@ class CancelRSVPForm extends Form
     function formActions()
     {
         // TRANS: Button text to cancel responding to an RSVP ("please respond") item.
-        $this->out->submit('cancel', _m('BUTTON', 'Cancel'));
+        $this->out->submit('rsvp-cancel', _m('BUTTON', 'Cancel'));
     }
 }
index 832604a31d950fa8aaa283763c3907f0b1fbdeac..e7d7a26bea715b7010f2cb5cba2cf51465dfb023 100644 (file)
@@ -87,75 +87,83 @@ class EventForm extends Form
         $this->out->elementStart('ul', 'form_data');
 
         $this->li();
-        $this->out->input('title',
+        $this->out->input('event-title',
                           // TRANS: Field label on event form.
                           _m('LABEL','Title'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Title of the event.'));
+                          _m('Title of the event.'),
+                          'title');
         $this->unli();
 
         $this->li();
-        $this->out->input('startdate',
+        $this->out->input('event-startdate',
                           // TRANS: Field label on event form.
                           _m('LABEL','Start date'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Date the event starts.'));
+                          _m('Date the event starts.'),
+                          'startdate');
         $this->unli();
 
         $this->li();
-        $this->out->input('starttime',
+        $this->out->input('event-starttime',
                           // TRANS: Field label on event form.
                           _m('LABEL','Start time'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Time the event starts.'));
+                          _m('Time the event starts.'),
+                          'starttime');
         $this->unli();
 
         $this->li();
-        $this->out->input('enddate',
+        $this->out->input('event-enddate',
                           // TRANS: Field label on event form.
                           _m('LABEL','End date'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Date the event ends.'));
+                          _m('Date the event ends.'),
+                          'enddate');
         $this->unli();
 
         $this->li();
-        $this->out->input('endtime',
+        $this->out->input('event-endtime',
                           // TRANS: Field label on event form.
                           _m('LABEL','End time'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Time the event ends.'));
+                          _m('Time the event ends.'),
+                          'endtime');
         $this->unli();
 
         $this->li();
-        $this->out->input('location',
+        $this->out->input('event-location',
                           // TRANS: Field label on event form.
                           _m('LABEL','Location'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Event location.'));
+                          _m('Event location.'),
+                          'location');
         $this->unli();
 
         $this->li();
-        $this->out->input('url',
+        $this->out->input('event-url',
                           // TRANS: Field label on event form.
                           _m('LABEL','URL'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('URL for more information.'));
+                          _m('URL for more information.'),
+                          'url');
         $this->unli();
 
         $this->li();
-        $this->out->input('description',
+        $this->out->input('event-description',
                           // TRANS: Field label on event form.
                           _m('LABEL','Description'),
                           null,
                           // TRANS: Field title on event form.
-                          _m('Description of the event.'));
+                          _m('Description of the event.'),
+                          'description');
         $this->unli();
 
         $this->out->elementEnd('ul');
@@ -176,6 +184,6 @@ class EventForm extends Form
     function formActions()
     {
         // TRANS: Button text to save an event..
-        $this->out->submit('submit', _m('BUTTON', 'Save'));
+        $this->out->submit('event-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
     }
 }
index 6f86004f94c5c6d557ac094c2963ca7e9960b215..7bb926039e52ffea618b900968e7dd552d42ce01 100644 (file)
@@ -96,7 +96,7 @@ class RSVPForm extends Form
         // TRANS: Field label on form to RSVP ("please respond") for an event.
         $this->out->text(_m('RSVP:'));
 
-        $this->out->hidden('event', $this->event->id);
+        $this->out->hidden('event-id', $this->event->id, 'event');
         $this->out->hidden('submitvalue', '');
 
         $this->out->elementEnd('fieldset');
@@ -119,12 +119,17 @@ class RSVPForm extends Form
 
     function submitButton($id, $label)
     {
-        $this->out->element('input', array('type' => 'submit',
-                                           'id' => $id,
-                                           'name' => $id,
-                                           'class' => 'submit',
-                                           'value' => $label,
-                                           'title' => $label,
-                                           'onClick' => 'this.form.submitvalue.value = this.name; return true;'));
+        $this->out->element(
+            'input',
+                array(
+                    'type'    => 'submit',
+                    'id'      => 'rsvp-submit',
+                    'name'    => $id,
+                    'class'   => 'submit',
+                    'value'   => $label,
+                    'title'   => $label,
+                    'onClick' => 'this.form.submitvalue.value = this.name; return true;'
+            )
+        );
     }
 }
index 37d7bc149c6455ec561a9c9fd5c50d25f2bc7a96..309125a68621eddf22a4581976438dfb0cbe91b0 100644 (file)
@@ -122,11 +122,13 @@ class NewpollForm extends Form
                 $default = '';
             }
             $this->li();
-            $this->out->input('option' . ($i + 1),
+            $this->out->input('poll-option' . ($i + 1),
                               // TRANS: Field label for an answer option on the page to create a poll.
                               // TRANS: %d is the option number.
                               sprintf(_m('Option %d'), $i + 1),
-                              $default);
+                              $default,
+                              null,
+                              'option' . ($i + 1));
             $this->unli();
         }
 
@@ -148,6 +150,6 @@ class NewpollForm extends Form
     function formActions()
     {
         // TRANS: Button text for saving a new poll.
-        $this->out->submit('submit', _m('BUTTON', 'Save'));
+        $this->out->submit('poll-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
     }
 }
index ce1c31f6c20eeb1eb1691b2dd39b94de01ea8d0b..31e8db94148bfc84fe10d1c8cac4f3fc3b652fad 100644 (file)
@@ -124,6 +124,6 @@ class PollResponseForm extends Form
     function formActions()
     {
         // TRANS: Button text for submitting a poll response.
-        $this->out->submit('submit', _m('BUTTON', 'Submit'));
+        $this->out->submit('poll-response-submit', _m('BUTTON', 'Submit'), 'submit', 'submit');
     }
 }
index 2a81679ca3307cd02aa0cd1fbe6960db18994a25..ac8d2793bf04ee48dafd05327563a8e74688fc3e 100644 (file)
@@ -109,8 +109,8 @@ class QnanewanswerForm extends Form
             $out->raw($this->question->asHTML());
         }
 
-        $out->hidden('id', $id);
-        $out->textarea('answer', 'answer');
+        $out->hidden('qna-question-id', $id, 'id');
+        $out->textarea('qna-answer', 'answer', null, null, 'answer');
     }
 
     /**
@@ -121,7 +121,7 @@ class QnanewanswerForm extends Form
     function formActions()
     {
         // TRANS: Button text for submitting a poll response.
-        $this->out->submit('submit', _m('BUTTON', 'Answer'));
+        $this->out->submit('qna-answer-submit', _m('BUTTON', 'Answer'), 'submit', 'submit');
     }
 }
 
index 1def13a8c4e52495bcf85308ebf57a7f3fbc92d3..cbd4e1bc68feacf02e11776d0e557fd7f37f3ff4 100644 (file)
@@ -105,18 +105,20 @@ class QnanewquestionForm extends Form
 
         $this->li();
         $this->out->input(
-            'title',
+            'qna-question-title',
             _m('Title'),
             $this->title,
-            _m('Title of your question')
+            _m('Title of your question'),
+            'title'
         );
         $this->unli();
         $this->li();
         $this->out->textarea(
-            'description',
+            'qna-question-description',
             _m('Description'),
             $this->description,
-            _m('Your question in detail')
+            _m('Your question in detail'),
+            'description'
         );
         $this->unli();
 
@@ -138,6 +140,6 @@ class QnanewquestionForm extends Form
     function formActions()
     {
         // TRANS: Button text for saving a new question.
-        $this->out->submit('submit', _m('BUTTON', 'Save'));
+        $this->out->submit('qna-question-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
     }
 }
index f3923698d22906c135ee502eaa837e82a719c2a9..8db00e0fcd0a878eed48727b509dd4011c518ac8 100644 (file)
@@ -121,8 +121,9 @@ class QnashowanswerForm extends Form
     function formData()
     {
         $this->out->hidden(
-            'id',
-            'answer-' . $this->answer->id
+            'qna-answer-id',
+            'answer-' . $this->answer->id,
+            'id'
         );
 
         $this->out->raw($this->answer->asHTML());
@@ -144,11 +145,11 @@ class QnashowanswerForm extends Form
             if ($user->id == $this->question->profile_id) {
                 if (empty($this->answer->best)) {
                     $this->out->submit(
-                        'best',
+                        'qna-best-answer',
                         // TRANS: Button text for marking an answer as "best"
                         _m('BUTTON', 'Best'),
                         'submit',
-                        null,
+                        'submit',
                         // TRANS: Title for button text marking an answer as "best"
                         _('Mark as best answer')
                     );
index ad29d0d0189d7ad512290ccfea2f9e55ec6b53ca..27abd42757fc3404f7c398a4f6c4226ccbeca61c 100644 (file)
@@ -114,8 +114,9 @@ class QnashowquestionForm extends Form
     function formData()
     {
         $this->out->hidden(
-            'id',
-            'question-' . $this->question->id
+            'qna-quesiton-id',
+            'question-' . $this->question->id,
+            'id'
         );
 
         $this->out->raw($this->question->asHTML());
@@ -136,11 +137,11 @@ class QnashowquestionForm extends Form
         if (empty($this->question->closed)) {
             if ($user->id == $this->question->profile_id) {
              $this->out->submit(
-                'close',
+                'qna-question-close',
                 // TRANS: Button text for closing a question
                 _m('BUTTON', 'Close'),
                 'submit',
-                null,
+                'submit',
                 // TRANS: Title for button text for closing a question
                 _('Close the question')
              );