@@ 54-61 (lines=8) @@ | ||
51 | * @param string $locale |
|
52 | * @return string |
|
53 | */ |
|
54 | protected function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null) { |
|
55 | /** |
|
56 | * |
|
57 | * @var TranslatorInterface $translator |
|
58 | */ |
|
59 | $translator = $this->getTranslator(); |
|
60 | return $translator->transChoice($id, $number, $parameters, $domain, $locale); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Proxy to use the transChoice method of the translator |
|
@@ 74-81 (lines=8) @@ | ||
71 | * @param string $locale |
|
72 | * @return string |
|
73 | */ |
|
74 | protected function trans($id, array $parameters = array(), $domain = null, $locale = null) { |
|
75 | /** |
|
76 | * |
|
77 | * @var TranslatorInterface $translator |
|
78 | */ |
|
79 | $translator = $this->getTranslator(); |
|
80 | return $translator->trans($id, $parameters, $domain, $locale); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Returns the translator service |