Skip to content
Snippets Groups Projects
Commit f48995ed authored by gayatri chahar's avatar gayatri chahar Committed by João Mauricio
Browse files

Issue #3345404 by gayatri chahar: Fix typo error

parent 5be3782b
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ class MyMemoryTranslationApi implements TranslationApiInterface {
}
catch (BadResponseException $e) {
$link = Url::fromRoute('auto_node_translate.config_form', [], ['absolute' => TRUE])->toString();
\Drupal::messenger()->addStatus($this->t('The translation cota or maximum requests/day have been exceded for MyMemory. Try changing the default translation Api in <a href="@link">@link</a>', ['@link' => $link]));
\Drupal::messenger()->addStatus($this->t('The translation cota or maximum requests/day have been exceeded for MyMemory. Try changing the default translation Api in <a href="@link">@link</a>', ['@link' => $link]));
return $text;
}
$data = (string) $response->getBody();
......@@ -56,7 +56,7 @@ class MyMemoryTranslationApi implements TranslationApiInterface {
else {
$translatedText = $text;
$link = Url::fromRoute('auto_node_translate.config_form', [], ['absolute' => TRUE])->toString();
\Drupal::messenger()->addStatus($this->t('The translation cota has been exceded for MyMemory try changing the default Api in <a href=@link>@link</a>'), ['@link' => $link]);
\Drupal::messenger()->addStatus($this->t('The translation cota has been exceeded for MyMemory try changing the default Api in <a href=@link>@link</a>'), ['@link' => $link]);
}
return $translatedText;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment