Skip to content

Commit

Permalink
[Global] Translation fix (#1115)
Browse files Browse the repository at this point in the history
* Form translations clean + typofix

* Fix js autocollapse "More" label translation

* Fix twig untranslated texts

* Translation fix tabs

* Bugfixes

* Bugfix

* Bugfix

* Modal translations
  • Loading branch information
fchris82 authored and Kristof Jochmans committed Apr 22, 2016
1 parent 38c9877 commit 5dc092e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Form/TextWithLocaleAdminType.php
Expand Up @@ -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
));

Expand Down
8 changes: 8 additions & 0 deletions Resources/translations/messages.en.yml
Expand Up @@ -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

0 comments on commit 5dc092e

Please sign in to comment.