demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

make blocks get module's gui translation #846

Open demianturner opened 11 years ago

demianturner commented 11 years ago

so a block for e.g. weather can use the gui translation of the weather module on every page without the need to add specific words to the default lang file.

demianturner commented 11 years ago

[werner] This is what i use for a block inside a module called "wetter"

{{{ // get translations $aWetterLang = SGL_Translation::getTranslations('wetter',SGL_Translation::getLangID()); $GLOBALS['_SGL']['TRANSLATION'] = array_merge($GLOBALS['_SGL']['TRANSLATION'],$aWetterLang); }}}

Maybe it can be used for solving this ticket