Spelling and grammar fixes for AI Translate
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3557038. -->
Reported by: [erichomanchuk](https://www.drupal.org/user/299489)
Related to !1007 !9
>>>
<p>Fixing some spelling and grammar issues that where noted in Dries notes. Also removing redundant warning message about incomplete AI settings on the "User interface translation" form (/admin/config/regional/translate).</p>
<p>With current module when you do not set the default provider + model you get an error message and a warning message about the same thing. I am removing the warning message from ai_translate.module as the function call _ai_translate_check_default_provider_and_model() already provides an error message with the same message.</p>
<p>Before:</p>
<pre> if (!_ai_translate_check_default_provider_and_model()) {<br> $message = t('Please select a default provider and model for translation via the <a href="@ai_settings">AI settings</a> page.', [<br> '@ai_settings' => Url::fromRoute('ai.settings_form')->toString(),<br> ]);<br> \Drupal::messenger()->addWarning($message);<br> }</pre><p><img src="https://www.drupal.org/files/issues/2025-11-10/duplicate_error_message_before.png" width="2794" height="560" alt="Duplicate messages"></p>
<p>After:</p>
<pre> if (!_ai_translate_check_default_provider_and_model()) {<br> return;<br> }</pre><p><img src="https://www.drupal.org/files/issues/2025-11-10/duplicate_error_message_after.png" width="2838" height="1062" alt="Fix Duplicate messages"></p>
issue