Ticket #846 (new enhancement)

Opened 8 years ago

Last modified 8 years ago

make blocks get module's gui translation

Reported by: werner Assigned to: somebody
Priority: normal Milestone:
Component: module - blocks Severity: not categorised
Keywords: Cc:

Description

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.

Change History

04/04/06 12:33:28 changed by 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