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>&nbsp; if (!_ai_translate_check_default_provider_and_model()) {<br>&nbsp;&nbsp;&nbsp; $message = t('Please select a default provider and model for translation via the &lt;a href="@ai_settings"&gt;AI settings&lt;/a&gt; page.', [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '@ai_settings' =&gt; Url::fromRoute('ai.settings_form')-&gt;toString(),<br>&nbsp;&nbsp;&nbsp; ]);<br>&nbsp;&nbsp;&nbsp; \Drupal::messenger()-&gt;addWarning($message);<br>&nbsp; }</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>&nbsp; if (!_ai_translate_check_default_provider_and_model()) {<br>&nbsp;&nbsp;&nbsp; return;<br>&nbsp; }</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