Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/translation/TranslatorInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
30 * | 30 * |
31 * @return string The translated string | 31 * @return string The translated string |
32 * | 32 * |
33 * @throws InvalidArgumentException If the locale contains invalid characters | 33 * @throws InvalidArgumentException If the locale contains invalid characters |
34 */ | 34 */ |
35 public function trans($id, array $parameters = array(), $domain = null, $locale = null); | 35 public function trans($id, array $parameters = [], $domain = null, $locale = null); |
36 | 36 |
37 /** | 37 /** |
38 * Translates the given choice message by choosing a translation according to a number. | 38 * Translates the given choice message by choosing a translation according to a number. |
39 * | 39 * |
40 * @param string $id The message id (may also be an object that can be cast to string) | 40 * @param string $id The message id (may also be an object that can be cast to string) |
41 * @param int $number The number to use to find the indice of the message | 41 * @param int $number The number to use to find the index of the message |
42 * @param array $parameters An array of parameters for the message | 42 * @param array $parameters An array of parameters for the message |
43 * @param string|null $domain The domain for the message or null to use the default | 43 * @param string|null $domain The domain for the message or null to use the default |
44 * @param string|null $locale The locale or null to use the default | 44 * @param string|null $locale The locale or null to use the default |
45 * | 45 * |
46 * @return string The translated string | 46 * @return string The translated string |
47 * | 47 * |
48 * @throws InvalidArgumentException If the locale contains invalid characters | 48 * @throws InvalidArgumentException If the locale contains invalid characters |
49 */ | 49 */ |
50 public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null); | 50 public function transChoice($id, $number, array $parameters = [], $domain = null, $locale = null); |
51 | 51 |
52 /** | 52 /** |
53 * Sets the current locale. | 53 * Sets the current locale. |
54 * | 54 * |
55 * @param string $locale The locale | 55 * @param string $locale The locale |