diff --git a/core/includes/locale.inc b/core/includes/locale.inc index 28d5dc7..85d2a8b 100644 --- a/core/includes/locale.inc +++ b/core/includes/locale.inc @@ -450,28 +450,28 @@ function locale_language_url_rewrite_url(&$path, &$options) { } /** - * Helper to read language prefixes, and use langcode if no prefix is set. + * Reads language prefixes and uses the langcode if no prefix is set. */ function locale_language_negotiation_url_prefixes() { return variable_get('locale_language_negotiation_url_prefixes', array()); } /** - * Helper to save language prefix settings. + * Saves language prefix settings. */ function locale_language_negotiation_url_prefixes_save(array $prefixes) { variable_set('locale_language_negotiation_url_prefixes', $prefixes); } /** - * Helper to read language domains. + * Reads language domains. */ function locale_language_negotiation_url_domains() { return variable_get('locale_language_negotiation_url_domains', array()); } /** - * Helper to save the language domain settings. + * Saves the language domain settings. */ function locale_language_negotiation_url_domains_save(array $domains) { variable_set('locale_language_negotiation_url_domains', $domains); diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install index 2d503cc..04e1c9c 100644 --- a/core/modules/locale/locale.install +++ b/core/modules/locale/locale.install @@ -266,7 +266,7 @@ function locale_update_8002() { } /** - * Remove prefix and domain columns from language table. + * Removes the prefix and domain columns from the language table. * * Load all prefixes and domains from the languages table, save the values in * two new variables. Then remove the prefix and domain columns from the diff --git a/core/modules/locale/locale.test b/core/modules/locale/locale.test index c23575a..fb5bb37 100644 --- a/core/modules/locale/locale.test +++ b/core/modules/locale/locale.test @@ -2364,7 +2364,6 @@ class LocaleUrlRewritingTest extends DrupalWebTestCase { $prefix = $segments[0]; $path = isset($segments[1]) ? $segments[1] : $prefix; - // If the rewritten URL has not a language prefix we pick a random prefix so // we can always check the prefixed URL. $prefixes = locale_language_negotiation_url_prefixes();