diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleXmlParserTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleXmlParserTest.php index e6f18b7..a1a1c3d 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleXmlParserTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleXmlParserTest.php @@ -13,6 +13,9 @@ class LocaleXmlParserTest extends UnitTestBase { ); } + /** + * Test processing of the translation server XML data to array format. + */ function testXmlParser() { module_load_include('inc', 'locale', 'locale.fetch'); diff --git a/core/modules/locale/locale.fetch.inc b/core/modules/locale/locale.fetch.inc index 7e00eb4..8efc726 100644 --- a/core/modules/locale/locale.fetch.inc +++ b/core/modules/locale/locale.fetch.inc @@ -7,6 +7,13 @@ /** * Get server information. + * + * The Localization Server provides available languages and server configuration + * in an XML format. + * + * @return + * Array of server configuration and available languages. FALSE if capturing + * the data failed. */ function locale_translation_get_server($server) { // Fetch up to date information if available. @@ -25,7 +32,8 @@ function locale_translation_get_server($server) { /** * Fetch remote server metadata from a server URL. * - * @param $server_url + * @param $url + * The URL of the translation server XML file. * * @return * Array of parsed data about available languages, or FALSE if there was an