{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TYPO3: Translate string in PHP code","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/753 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"753\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Keywords: typo3 php translate languages locallang<\/p>\n<p>Load from <tt class=\"docutils literal\">Resources\/Private\/Language\/locallang.xlf<\/tt> (and language-specific files like <tt class=\"docutils literal\">de.locallang.xlf<\/tt>):<\/p>\n<pre class=\"literal-block\">\n$degree = \\TYPO3\\CMS\\Extbase\\Utility\\LocalizationUtility::translate(\n    'teammember.degree.foo', 'myextname'\n);\n<\/pre>\n<p>See <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\">https:\/\/docs.typo3.org\/m\/typo3\/book-extbasefluid\/10.4\/en-us\/9-CrosscuttingConcerns\/1-localizing-and-internationalizing-an-extension.html<\/a><\/p>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/753\/rev-raw\/1dab5389f9c87c6e9798aadfb4fb73b7f29e77d2\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/753#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
