summaryrefslogtreecommitdiffstats
path: root/core/modules/locale/src/Form/ImportForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/locale/src/Form/ImportForm.php')
-rw-r--r--core/modules/locale/src/Form/ImportForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/locale/src/Form/ImportForm.php b/core/modules/locale/src/Form/ImportForm.php
index a9f15f0..708a121 100644
--- a/core/modules/locale/src/Form/ImportForm.php
+++ b/core/modules/locale/src/Form/ImportForm.php
@@ -175,7 +175,7 @@ class ImportForm extends FormBase {
if (empty($language)) {
$language = ConfigurableLanguage::createFromLangcode($form_state->getValue('langcode'));
$language->save();
- drupal_set_message($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
+ $this->messenger()->addStatus($this->t('The language %language has been created.', ['%language' => $this->t($language->label())]));
}
$options = array_merge(_locale_translation_default_update_options(), [
'langcode' => $form_state->getValue('langcode'),