title: What is the correct domain for a new translation in a PrestaShop class override?
body: <p>Can you help me with the use of the &quot;domain&quot; parameter in <code>$this-&gt;trans()</code> function ?</p>
  <p>In my own module I have an override for the CartRule class. My override works correctly - it is copied from my module to the override folder by Presta and the code functions.</p>
  <p>I have a new translated string inside, and I do not know what value to give for &quot;domain&quot;.</p>
  <p>My code:</p>
  <pre><code>$this-&gt;trans('Promotion codes cannot be combined', array(), 'Shop.Notifications.Error'); \\ ID, parameters, domain
  </code></pre>
  <p>For domain I have tried:</p>
  <ol>
  <li><p>&quot;Shop.Notifications.Error&quot; (same as the other strings): and then looked in BO &gt; Theme Translations &gt; My Theme (or classic theme) &gt; French (store language)</p>
  </li>
  <li><p>&quot;Modules.[Mymodule].Admin&quot; (for Mymodule I used a captialized short name): and then looked in BO &gt; Module Translations &gt; My Module &gt; French (store language). This approach follows the <a href="https://devdocs.prestashop.com/1.7/modules/creation/module-translation/new-system/#translation-domain" rel="nofollow noreferrer">PrestaShop rules</a>.</p>
  </li>
  </ol>
  <p>Each time I have not found my string.</p>
  <p>Do you have some ideas?</p>
  <p>N.B. other answers on SO make use of <code>$this-&gt;l</code> which is not available in this context.
  I have also tried <code>$this-&gt;module-&gt;trans()</code> but &quot;module&quot; is not available in this context.</p>