TYPO3 TypoScript: Language file with arguments
<p>how can I render a locallang key with arguments in TypoScript? (replace the %s with a value)  </p>

<pre><code>&lt;trans-unit id="author"&gt;
    &lt;source&gt;created by %s&lt;/source&gt;
&lt;/trans-unit&gt;
</code></pre>

<p>In Fluid it's done the following: </p>

<pre><code>&lt;f:translate key="author" arguments="{0:authorName}"/&gt;
</code></pre>

<p>And now via TypoScript? I tried the following:</p>

<pre><code>page.10 = TEXT    
page.10.dataWrap = {LLL:EXT:my_ext/Resources/Private/Language/locallang.xlf:author|'Me'}
</code></pre>

<p>=====<br>
Solution 1 via UserFunc:</p>

<pre><code>page.10 = USER_INT
page.10 {
    userFunc = FluidTranslate-&gt;main
    extensionName = my_ext
    key = tx_myext_domain_model_mymodel.author
    arguments.0 = Me
}
</code></pre>

<p>PHP:  </p>

<pre><code>&lt;?php
class FluidTranslate
{
  public function main($content, $conf)
  {
    $extensionName = $conf['extensionName'];
    $key = $conf['key'];
    $arguments = $conf['arguments.'];

    $value = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, $extensionName, $arguments);
    return $value;
  }
}
</code></pre>