Localize with extbase static method


/ Published in: PHP
Save to your folder(s)

You can localize strings with the following static method. The first Parameter is the string you want to localize. It's the same string as in the locallang.xml-File defined as index. The second parameter is the extension key.


Copy this code and paste it in your HTML
  1. Tx_Extbase_Utility_Localization::translate("key", $_EXTKEY)

URL: http://api.typo3.org/typo3v4/current/html/class_tx___extbase___utility___localization.html#a84f339124cb1393a18c668fd3066511d

Report this snippet


Comments


You need to login to view comments.