diff -u b/core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php b/core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php --- b/core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php +++ b/core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php @@ -55,14 +55,15 @@ } /** - * Retrieve translations by given language. + * Retrieves translations for a given language. * * @param string $langcode * The langcode of the language. * * @return array - * Returns array of translations indexed by language and context or an empty - * array when no translations are available. + * A multidimensional array of translations indexed by the context the + * source string belongs to and the original string or an empty array when + * no translations are available. */ protected function getLanguage($langcode) { // This class is usually a base class but we do not declare as abstract