\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 {
\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]);