Upon creating a new module, how could one access from within a Template file the class instances returned by the oxRegistry getter methods (getLang, getConfig, etc)?
Supposedly one would want to access the translateString function from oxLang:
oxRegistry::getLang()->translateString('MY_TRANS', 'MY_LANG');
Is there a way to do it directly from the Template file without having to write a wrapper in the controller?
public function translateString($sStringToTranslate, $iLang = null) {
return oxRegistry::getLang()->translateString($sStringToTranslate, $iLang);
}
…and without having to use the [{php}] tags in the Template?
Thank you in advance for any help/advice on this.