X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Flocale%2Flocale.install;h=480545ad903353fa3bcdc5a4e092cb16f62f572b;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=f85b8599f9e59abbbf94228a081bd1423ac503d5;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website
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();
+ }
+}