From 5dc092ee2e250df6d687a1a1be2ec19ab142b88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Ferenczi?= Date: Fri, 22 Apr 2016 09:23:06 +0200 Subject: [PATCH] [Global] Translation fix (#1115) * Form translations clean + typofix * Fix js autocollapse "More" label translation * Fix twig untranslated texts * Translation fix tabs * Bugfixes * Bugfix * Bugfix * Modal translations --- Form/TextWithLocaleAdminType.php | 5 ++++- Resources/translations/messages.en.yml | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Form/TextWithLocaleAdminType.php b/Form/TextWithLocaleAdminType.php index e07f77b..3c627fb 100644 --- a/Form/TextWithLocaleAdminType.php +++ b/Form/TextWithLocaleAdminType.php @@ -18,8 +18,11 @@ class TextWithLocaleAdminType extends AbstractType */ public function buildForm(FormBuilderInterface $builder, array $options) { - $builder->add('locale', HiddenType::class); + $builder->add('locale', HiddenType::class, array( + 'label' => 'kuma_translator.form.text_with_locale.locale.label', + )); $builder->add('text', TextareaType::class, array( + 'label' => 'kuma_translator.form.text_with_locale.text.label', 'required' => false )); diff --git a/Resources/translations/messages.en.yml b/Resources/translations/messages.en.yml index 82858d3..8ae3942 100644 --- a/Resources/translations/messages.en.yml +++ b/Resources/translations/messages.en.yml @@ -19,3 +19,11 @@ settings: choose_language: "Choose a language" succesful_added: "Translation succesfully created" succesful_edited: "Translation succesfully edited" + +kuma_translator: + form: + text_with_locale: + locale: + label: Locale + text: + label: Text