diff --git a/core/modules/editor/editor.admin.inc b/core/modules/editor/editor.admin.inc index 9dc6a30464572c83785bf20d9688e61df6188bbb..911accc8f2986b27c55e5364b2fa69875e1f4100 100644 --- a/core/modules/editor/editor.admin.inc +++ b/core/modules/editor/editor.admin.inc @@ -109,7 +109,7 @@ function editor_image_upload_settings_form(Editor $editor) { '#maxlength' => 8, '#min' => 1, '#max' => 99999, - '#placeholder' => 'width', + '#placeholder' => t('width'), '#field_suffix' => ' x ', '#states' => $show_if_image_uploads_enabled, ); @@ -122,8 +122,8 @@ function editor_image_upload_settings_form(Editor $editor) { '#maxlength' => 8, '#min' => 1, '#max' => 99999, - '#placeholder' => 'height', - '#field_suffix' => 'pixels', + '#placeholder' => t('height'), + '#field_suffix' => t('pixels'), '#states' => $show_if_image_uploads_enabled, ); diff --git a/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php b/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php index 2f9a78d43444b937ff0ca0644f43f48b43e99a07..5eb787cf08c1c13367b789f008868aab1e2ec91c 100644 --- a/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php +++ b/core/modules/editor/lib/Drupal/editor/Form/EditorImageDialog.php @@ -112,7 +112,7 @@ public function buildForm(array $form, array &$form_state, FilterFormat $filter_ '#maxlength' => 8, '#min' => 1, '#max' => 99999, - '#placeholder' => 'width', + '#placeholder' => $this->t('width'), '#field_suffix' => ' x ', '#parents' => array('attributes', 'width'), ); @@ -125,8 +125,8 @@ public function buildForm(array $form, array &$form_state, FilterFormat $filter_ '#maxlength' => 8, '#min' => 1, '#max' => 99999, - '#placeholder' => 'height', - '#field_suffix' => 'pixels', + '#placeholder' => $this->t('height'), + '#field_suffix' => $this->t('pixels'), '#parents' => array('attributes', 'height'), );