<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>TYPO3: Translate string in PHP code</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/753 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="753"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Keywords: typo3 php translate languages locallang&lt;/p&gt;
&lt;p&gt;Load from &lt;tt class="docutils literal"&gt;Resources/Private/Language/locallang.xlf&lt;/tt&gt; (and language-specific files like &lt;tt class="docutils literal"&gt;de.locallang.xlf&lt;/tt&gt;):&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$degree = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate(
    'teammember.degree.foo', 'myextname'
);
&lt;/pre&gt;
&lt;p&gt;See &lt;a class="reference external" href="https://docs.typo3.org/m/typo3/book-extbasefluid/10.4/en-us/9-CrosscuttingConcerns/1-localizing-and-internationalizing-an-extension.html"&gt;https://docs.typo3.org/m/typo3/book-extbasefluid/10.4/en-us/9-CrosscuttingConcerns/1-localizing-and-internationalizing-an-extension.html&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/753/rev-raw/1dab5389f9c87c6e9798aadfb4fb73b7f29e77d2/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/753#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
