| @@ 188-194 (lines=7) @@ | ||
| 185 | * @param string $locale |
|
| 186 | * @return string |
|
| 187 | */ |
|
| 188 | public function trans() |
|
| 189 | { |
|
| 190 | $args = func_get_args(); |
|
| 191 | $args[0] = $this->transName($args[0]); |
|
| 192 | ||
| 193 | return call_user_func_array([$this->app['translator'], 'trans'], $args); |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * Translates the given message based on a count. |
|
| @@ 206-212 (lines=7) @@ | ||
| 203 | * @param string $locale |
|
| 204 | * @return string |
|
| 205 | */ |
|
| 206 | public function transChoice() |
|
| 207 | { |
|
| 208 | $args = func_get_args(); |
|
| 209 | $args[0] = $this->transName($args[0]); |
|
| 210 | ||
| 211 | return call_user_func_array([$this->app['translator'], 'transChoice'], $args); |
|
| 212 | } |
|
| 213 | ||
| 214 | /** |
|
| 215 | * Get a view resource name |
|