X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapplicationeditform.php;h=4b4356e72184e26b5f0fc98a9b8e7049c46be958;hb=817e1507edacc925cca67705ddb0589cca9eb64c;hp=224b6eaa1b62de73ebe71ddd4a7feabbd9a50553;hpb=0f1fc36a05c8d858827718255bef20e8d0c0d3f6;p=quix0rs-gnu-social.git diff --git a/lib/applicationeditform.php b/lib/applicationeditform.php index 224b6eaa1b..4b4356e721 100644 --- a/lib/applicationeditform.php +++ b/lib/applicationeditform.php @@ -168,6 +168,10 @@ class ApplicationEditForm extends Form $this->out->element('img', array('src' => $icon)); } + $this->out->element('input', array('name' => 'MAX_FILE_SIZE', + 'type' => 'hidden', + 'id' => 'MAX_FILE_SIZE', + 'value' => ImageFile::maxFileSizeInt())); $this->out->element('label', array('for' => 'app_icon'), // TRANS: Form input field label for application icon. _('Icon')); @@ -176,10 +180,6 @@ class ApplicationEditForm extends Form 'id' => 'app_icon')); // TRANS: Form guide. $this->out->element('p', 'form_guide', _('Icon for this application')); - $this->out->element('input', array('name' => 'MAX_FILE_SIZE', - 'type' => 'hidden', - 'id' => 'MAX_FILE_SIZE', - 'value' => ImageFile::maxFileSizeInt())); $this->out->elementEnd('li'); $this->out->elementStart('li'); @@ -197,7 +197,8 @@ class ApplicationEditForm extends Form $maxDesc = Oauth_application::maxDesc(); if ($maxDesc > 0) { // TRANS: Form input field instructions. - $descInstr = sprintf(_('Describe your application in %d characters'), + // TRANS: %d is the number of available characters for the description. + $descInstr = sprintf(_m('Describe your application in %d character','Describe your application in %d characters',$maxDesc), $maxDesc); } else { // TRANS: Form input field instructions. @@ -349,10 +350,10 @@ class ApplicationEditForm extends Form // TRANS: Button label in the "Edit application" form. $this->out->submit('cancel', _m('BUTTON','Cancel'), 'submit form_action-primary', // TRANS: Submit button title. - 'cancel', _('Cancel')); + 'cancel', _('Cancel application changes.')); // TRANS: Button label in the "Edit application" form. $this->out->submit('save', _m('BUTTON','Save'), 'submit form_action-secondary', // TRANS: Submit button title. - 'save', _('Save')); + 'save', _('Save application changes.')); } }