one-click link should show human name, not machine name
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3580314. -->
Reported by: [koppie](https://www.drupal.org/user/261840)
Related to !16
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The AI module works off of providers. Each provider defines models with both human name, and "machine name." The machine name usually avoids spaces and other "special" characters.</p>
<p>The problem: the "one click" link on the translate page uses the machine name, not the human name. This can be hard to read, and leads to a bad Editor Experience (EX).</p>
<p><img src="https://www.drupal.org/files/issues/2026-03-19/SCR-20260319-htam.png" alt="screenshot"></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Configure multiple languages</li>
<li>Enable the ai_translate module</li>
<li>Enable at least one provider (with a long machine name)</li>
<li>Create a node</li>
<li>Click on the "Translate" tab</li>
<li>Observe the machine name of the model (yikes)</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Simple patch to ContentTranslationControllerOverride.php: switch this:</p>
<p><code>$parts1[1]</code></p>
<p>to this:</p>
<p><code>$parts1[0]</code></p>
<p>Maybe add a fallback in case the human name doesn't exist, isn't readable, &c.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Submit MR</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>One-click translate link: Change from ugly "machine name" to beautiful "human name"</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None</p>
issue