@@ 182-188 (lines=7) @@ | ||
179 | * @param string $locale |
|
180 | * @return string |
|
181 | */ |
|
182 | public function trans() |
|
183 | { |
|
184 | $args = func_get_args(); |
|
185 | $args[0] = $this->transName($args[0]); |
|
186 | ||
187 | return call_user_func_array([$this->app['translator'], 'trans'], $args); |
|
188 | } |
|
189 | ||
190 | /** |
|
191 | * Translates the given message based on a count. |
|
@@ 200-206 (lines=7) @@ | ||
197 | * @param string $locale |
|
198 | * @return string |
|
199 | */ |
|
200 | public function transChoice() |
|
201 | { |
|
202 | $args = func_get_args(); |
|
203 | $args[0] = $this->transName($args[0]); |
|
204 | ||
205 | return call_user_func_array([$this->app['translator'], 'transChoice'], $args); |
|
206 | } |
|
207 | ||
208 | /** |
|
209 | * Get a view resource name |