Skip to content

Commit

Permalink
Translations added, imported Translator component to CongressTypeType
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiMaceri committed Dec 21, 2018
1 parent b47da00 commit 627e775
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Celsius3/CoreBundle/Form/Type/CongressTypeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,26 @@

use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Translation\Translator;

class CongressTypeType extends MaterialTypeType
{

public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);

$translator = new Translator('en_EN');
$builder
->add('place')
->add('communication',null ,array(
'attr' => array(
'placeholder' => 'Nombre de la ponencia'
'placeholder' => $translator->trans('congress_ponency_example')
)
) )

->add('title', null, array(
'attr' => array(
'placeholder' => 'Titulo del Congreso'
'placeholder' => $translator->trans('congress_title_example')
)
) )
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3882,6 +3882,14 @@
<source>downloadPending</source>
<target>Download pending</target>
</trans-unit>
<trans-unit id="congress_title_example" resname="congress_title_example">
<source>congress_title_example</source>
<target>Congress Title</target>
</trans-unit>
<trans-unit id="congress_ponency_example" resname="congress_ponency_example">
<source>congress_ponency_example</source>
<target>Enter the title of the paper</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -3883,6 +3883,14 @@
<source>downloadPending</source>
<target>Descarga pendiente</target>
</trans-unit>
<trans-unit id="congress_title_example" resname="congress_title_example">
<source>congress_title_example</source>
<target>Titulo del congreso</target>
</trans-unit>
<trans-unit id="congress_ponency_example" resname="congress_ponency_example">
<source>congress_ponency_example</source>
<target>Ingrese el titulo de la ponencia</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -3877,6 +3877,14 @@
<source>downloadPending</source>
<target>Download pending</target>
</trans-unit>
<trans-unit id="congress_ponency_example" resname="congress_ponency_example">
<source>congress_ponency_example</source>
<target>Digite o título do artigo</target>
</trans-unit>
<trans-unit id="congress_title_example" resname="congress_title_example">
<source>congress_title_example</source>
<target>Título do congresso</target>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit 627e775

Please sign in to comment.