summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-03-06 23:55:44 (GMT)
committerNathaniel Catchpole2016-03-06 23:55:44 (GMT)
commite1d1a0545283d7ed95b00e7394ba744c957573f5 (patch)
treea42ac106504d67770e8132d1cf14aa6813cb66d5
parent6315ac4392a497fc00bbe0c82fe2828b2731f5f0 (diff)
Issue #2668008 by dimaro, kannan@kiluvai.com, rakesh.gectcr, felribeiro, jhodgdon, eojthebrave, xjm, mobaid: Internationalization topic refers to format_plural() function that does not exist
-rw-r--r--core/lib/Drupal/Core/Language/language.api.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/lib/Drupal/Core/Language/language.api.php b/core/lib/Drupal/Core/Language/language.api.php
index eb56b59..1ac4b08 100644
--- a/core/lib/Drupal/Core/Language/language.api.php
+++ b/core/lib/Drupal/Core/Language/language.api.php
@@ -111,8 +111,8 @@ use Drupal\Core\Language\LanguageInterface;
* @code
* // PHP code
* t('May', array(), array('context' => 'Long month name');
- * format_plural($count, '1 something', '@count somethings',
- * array(), array('context' => 'My context'));
+ * \Drupal::translation()->formatPlural($count, '1 something',
+ * '@count somethings', array(), array('context' => 'My context'));
*
* // JavaScript code
* Drupal.t('May', {}, {'context': 'Long month name'});
@@ -147,7 +147,6 @@ use Drupal\Core\Language\LanguageInterface;
*
* @see transliteration
* @see t()
- * @see format_plural()
* @}
*/