[TYPO3-dev] ext developer: please convert locallang.php to locallang.xml!
Rupert Germann
rupi at gmx.li
Tue Apr 18 18:32:27 CEST 2006
Hi,
In the new tt_news version I uploaded yesterday the locallang files are
converted to XML.
there was only one problem that might happen with other extensions, too:
tt_news adds a wizard icon to the new-content-element wizard. The script
which adds this icon (class.tx_ttnews_wizicon.php) had a hardcoded
reference to a locallang.php file in it. I had to change some lines to make
it work again with XML files:
old:
function includeLocalLang() {
include(t3lib_extMgm::extPath("tt_news")."locallang.php");
return $LOCAL_LANG;
}
new:
function includeLocalLang() {
$llFile = t3lib_extMgm::extPath('tt_news').'locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
return $LOCAL_LANG;
}
greets
rupert
stefano cecere wrote:
> since TER2 hans't anymore the integrated translation engine, all we
> translators are working with our local llxml installations.
>
> it works very well, but extensions need to be updated to use the
> locallang.xml!
>
> if everybody takes care about this topic in next ext revision, in a few
> weeks we could keep going well with the translations.
>
> thanks everybody and good typo3ing! :)
>
> stefano cecere
More information about the TYPO3-dev
mailing list