X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Flocale.install;fp=web%2Fcore%2Fmodules%2Flocale%2Flocale.install;h=480545ad903353fa3bcdc5a4e092cb16f62f572b;hp=f85b8599f9e59abbbf94228a081bd1423ac503d5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/locale/locale.install b/web/core/modules/locale/locale.install index f85b8599f..480545ad9 100644 --- a/web/core/modules/locale/locale.install +++ b/web/core/modules/locale/locale.install @@ -260,7 +260,7 @@ function locale_requirements($phase) { if ($available_updates || $untranslated) { if ($available_updates) { $requirements['locale_translation'] = [ - 'title' => 'Translation update status', + 'title' => t('Translation update status'), 'value' => \Drupal::l(t('Updates available'), new Url('locale.translate_status')), 'severity' => REQUIREMENT_WARNING, 'description' => t('Updates available for: @languages. See the Available translation updates page for more information.', ['@languages' => implode(', ', $available_updates), ':updates' => \Drupal::url('locale.translate_status')]), @@ -268,7 +268,7 @@ function locale_requirements($phase) { } else { $requirements['locale_translation'] = [ - 'title' => 'Translation update status', + 'title' => t('Translation update status'), 'value' => t('Missing translations'), 'severity' => REQUIREMENT_INFO, 'description' => t('Missing translations for: @languages. See the Available translation updates page for more information.', ['@languages' => implode(', ', $untranslated), ':updates' => \Drupal::url('locale.translate_status')]), @@ -277,7 +277,7 @@ function locale_requirements($phase) { } else { $requirements['locale_translation'] = [ - 'title' => 'Translation update status', + 'title' => t('Translation update status'), 'value' => t('Up to date'), 'severity' => REQUIREMENT_OK, ]; @@ -285,7 +285,7 @@ function locale_requirements($phase) { } else { $requirements['locale_translation'] = [ - 'title' => 'Translation update status', + 'title' => t('Translation update status'), 'value' => \Drupal::l(t('Can not determine status'), new Url('locale.translate_status')), 'severity' => REQUIREMENT_WARNING, 'description' => t('No translation status is available. See the Available translation updates page for more information.', [':updates' => \Drupal::url('locale.translate_status')]), @@ -304,3 +304,15 @@ function locale_update_8300() { // the new key value collection. \Drupal::state()->delete('locale.translation_status'); } + +/** + * Update default server pattern value to use https. + */ +function locale_update_8500() { + $update_url = \Drupal::config('locale.settings')->get('translation.default_server_pattern'); + if ($update_url == 'http://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po') { + \Drupal::configFactory()->getEditable('locale.settings') + ->set('translation.default_server_pattern', 'https://ftp.drupal.org/files/translations/%core/%project/%project-%version.%language.po') + ->save(); + } +}