forked from GNUsocial/gnu-social
		
	Add translator documentation for uses of 'Yes' and 'No' in the interface.
This commit is contained in:
		| @@ -140,8 +140,20 @@ class BlockAction extends ProfileFormAction | ||||
|                 $this->hidden($k, $v); | ||||
|             } | ||||
|         } | ||||
|         $this->submit('form_action-no', _('No'), 'submit form_action-primary', 'no', _("Do not block this user")); | ||||
|         $this->submit('form_action-yes', _('Yes'), 'submit form_action-secondary', 'yes', _('Block this user')); | ||||
|         $this->submit('form_action-no', | ||||
|                       // TRANS: Button label on the user block form. | ||||
|                       _m('BUTTON','No'), | ||||
|                       'submit form_action-primary', | ||||
|                       'no', | ||||
|                       // TRANS: Submit button title for 'No' when blocking a user. | ||||
|                       _('Do not block this user')); | ||||
|         $this->submit('form_action-yes', | ||||
|                       // TRANS: Button label on the user block form. | ||||
|                       _m('BUTTON','Yes'), | ||||
|                       'submit form_action-secondary', | ||||
|                       'yes', | ||||
|                       // TRANS: Submit button title for 'Yes' when blocking a user. | ||||
|                       _('Block this user')); | ||||
|         $this->elementEnd('fieldset'); | ||||
|         $this->elementEnd('form'); | ||||
|     } | ||||
|   | ||||
| @@ -150,13 +150,17 @@ class DeleteapplicationAction extends Action | ||||
|                          'This will clear all data about the application from the '. | ||||
|                          'database, including all existing user connections.')); | ||||
|         $this->submit('form_action-no', | ||||
|                       _('No'), | ||||
|                       // TRANS: Button label on the delete application form. | ||||
|                       _m('BUTTON','No'), | ||||
|                       'submit form_action-primary', | ||||
|                       'no', | ||||
|                       _("Do not delete this application")); | ||||
|                       // TRANS: Submit button title for 'No' when deleting an application. | ||||
|                       _('Do not delete this application')); | ||||
|         $this->submit('form_action-yes', | ||||
|                       _('Yes'), | ||||
|                       // TRANS: Button label on the delete application form. | ||||
|                       _m('BUTTON','Yes'), | ||||
|                       'submit form_action-secondary', | ||||
|                       // TRANS: Submit button title for 'Yes' when deleting an application. | ||||
|                       'yes', _('Delete this application')); | ||||
|         $this->elementEnd('fieldset'); | ||||
|         $this->elementEnd('form'); | ||||
|   | ||||
| @@ -142,8 +142,20 @@ class DeletenoticeAction extends Action | ||||
|         $this->hidden('token', common_session_token()); | ||||
|         $this->hidden('notice', $this->trimmed('notice')); | ||||
|         $this->element('p', null, _('Are you sure you want to delete this notice?')); | ||||
|         $this->submit('form_action-no', _('No'), 'submit form_action-primary', 'no', _("Do not delete this notice")); | ||||
|         $this->submit('form_action-yes', _('Yes'), 'submit form_action-secondary', 'yes', _('Delete this notice')); | ||||
|         $this->submit('form_action-no', | ||||
|                       // TRANS: Button label on the delete notice form. | ||||
|                       _m('BUTTON','No'), | ||||
|                       'submit form_action-primary', | ||||
|                       'no', | ||||
|                       // TRANS: Submit button title for 'No' when deleting a notice. | ||||
|                       _("Do not delete this notice")); | ||||
|         $this->submit('form_action-yes', | ||||
|                       // TRANS: Button label on the delete notice form. | ||||
|                       _m('BUTTON','Yes'), | ||||
|                       'submit form_action-secondary', | ||||
|                       'yes', | ||||
|                       // TRANS: Submit button title for 'Yes' when deleting a notice. | ||||
|                       _('Delete this notice')); | ||||
|         $this->elementEnd('fieldset'); | ||||
|         $this->elementEnd('form'); | ||||
|     } | ||||
|   | ||||
| @@ -147,8 +147,20 @@ class DeleteuserAction extends ProfileFormAction | ||||
|             } | ||||
|             Event::handle('EndDeleteUserForm', array($this, $this->user)); | ||||
|         } | ||||
|         $this->submit('form_action-no', _('No'), 'submit form_action-primary', 'no', _("Do not block this user")); | ||||
|         $this->submit('form_action-yes', _('Yes'), 'submit form_action-secondary', 'yes', _('Delete this user')); | ||||
|         $this->submit('form_action-no', | ||||
|                       // TRANS: Button label on the delete user form. | ||||
|                       _m('BUTTON','No'), | ||||
|                       'submit form_action-primary', | ||||
|                       'no', | ||||
|                       // TRANS: Submit button title for 'No' when deleting a user. | ||||
|                       _('Do not block this user')); | ||||
|         $this->submit('form_action-yes', | ||||
|                       // TRANS: Button label on the delete user form. | ||||
|                       _m('BUTTON','Yes'), | ||||
|                       'submit form_action-secondary', | ||||
|                       'yes', | ||||
|                       // TRANS: Submit button title for 'Yes' when deleting a user. | ||||
|                       _('Delete this user')); | ||||
|         $this->elementEnd('fieldset'); | ||||
|         $this->elementEnd('form'); | ||||
|     } | ||||
|   | ||||
| @@ -173,8 +173,20 @@ class GroupblockAction extends RedirectingAction | ||||
|                 $this->hidden($k, $v); | ||||
|             } | ||||
|         } | ||||
|         $this->submit('form_action-no', _('No'), 'submit form_action-primary', 'no', _("Do not block this user from this group")); | ||||
|         $this->submit('form_action-yes', _('Yes'), 'submit form_action-secondary', 'yes', _('Block this user from this group')); | ||||
|         $this->submit('form_action-no', | ||||
|                       // TRANS: Button label on the form to block a user from a group. | ||||
|                       _m('BUTTON','No'), | ||||
|                       'submit form_action-primary', | ||||
|                       'no', | ||||
|                       // TRANS: Submit button title for 'No' when blocking a user from a group. | ||||
|                       _('Do not block this user from this group')); | ||||
|         $this->submit('form_action-yes', | ||||
|                       // TRANS: Button label on the form to block a user from a group. | ||||
|                       _m('BUTTON','Yes'), | ||||
|                       'submit form_action-secondary', | ||||
|                       'yes', | ||||
|                       // TRANS: Submit button title for 'Yes' when blocking a user from a group. | ||||
|                       _('Block this user from this group')); | ||||
|         $this->elementEnd('fieldset'); | ||||
|         $this->elementEnd('form'); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user