Unverified Commit 412c7567 authored by larowlan's avatar larowlan

Issue #2848085 by snehi, rkoller, Sutharsan, Gábor Hojtsy: "Translation update...

Issue #2848085 by snehi, rkoller, Sutharsan, Gábor Hojtsy: "Translation update status" in locale.install is not translated
parent c8054435
...@@ -260,7 +260,7 @@ function locale_requirements($phase) { ...@@ -260,7 +260,7 @@ function locale_requirements($phase) {
if ($available_updates || $untranslated) { if ($available_updates || $untranslated) {
if ($available_updates) { if ($available_updates) {
$requirements['locale_translation'] = [ $requirements['locale_translation'] = [
'title' => 'Translation update status', 'title' => t('Translation update status'),
'value' => \Drupal::l(t('Updates available'), new Url('locale.translate_status')), 'value' => \Drupal::l(t('Updates available'), new Url('locale.translate_status')),
'severity' => REQUIREMENT_WARNING, 'severity' => REQUIREMENT_WARNING,
'description' => t('Updates available for: @languages. See the <a href=":updates">Available translation updates</a> page for more information.', ['@languages' => implode(', ', $available_updates), ':updates' => \Drupal::url('locale.translate_status')]), 'description' => t('Updates available for: @languages. See the <a href=":updates">Available translation updates</a> page for more information.', ['@languages' => implode(', ', $available_updates), ':updates' => \Drupal::url('locale.translate_status')]),
...@@ -268,7 +268,7 @@ function locale_requirements($phase) { ...@@ -268,7 +268,7 @@ function locale_requirements($phase) {
} }
else { else {
$requirements['locale_translation'] = [ $requirements['locale_translation'] = [
'title' => 'Translation update status', 'title' => t('Translation update status'),
'value' => t('Missing translations'), 'value' => t('Missing translations'),
'severity' => REQUIREMENT_INFO, 'severity' => REQUIREMENT_INFO,
'description' => t('Missing translations for: @languages. See the <a href=":updates">Available translation updates</a> page for more information.', ['@languages' => implode(', ', $untranslated), ':updates' => \Drupal::url('locale.translate_status')]), 'description' => t('Missing translations for: @languages. See the <a href=":updates">Available translation updates</a> page for more information.', ['@languages' => implode(', ', $untranslated), ':updates' => \Drupal::url('locale.translate_status')]),
...@@ -277,7 +277,7 @@ function locale_requirements($phase) { ...@@ -277,7 +277,7 @@ function locale_requirements($phase) {
} }
else { else {
$requirements['locale_translation'] = [ $requirements['locale_translation'] = [
'title' => 'Translation update status', 'title' => t('Translation update status'),
'value' => t('Up to date'), 'value' => t('Up to date'),
'severity' => REQUIREMENT_OK, 'severity' => REQUIREMENT_OK,
]; ];
...@@ -285,7 +285,7 @@ function locale_requirements($phase) { ...@@ -285,7 +285,7 @@ function locale_requirements($phase) {
} }
else { else {
$requirements['locale_translation'] = [ $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')), 'value' => \Drupal::l(t('Can not determine status'), new Url('locale.translate_status')),
'severity' => REQUIREMENT_WARNING, 'severity' => REQUIREMENT_WARNING,
'description' => t('No translation status is available. See the <a href=":updates">Available translation updates</a> page for more information.', [':updates' => \Drupal::url('locale.translate_status')]), 'description' => t('No translation status is available. See the <a href=":updates">Available translation updates</a> page for more information.', [':updates' => \Drupal::url('locale.translate_status')]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment