function cacheLangs($tpl_source, &$smarty)
{
    return AppTemplateLiteView::preFilterLang($tpl_source);
}
 public static function preFilterLang($templateContent)
 {
     self::$translate = Translate::getInstance(Config::get("language"));
     $templateContent = str_replace('|objurl', '|@objurl', $templateContent);
     $pattern = '#\\{\'([^\']+)\'\\|lang\\}#';
     $templateContent = preg_replace_callback($pattern, array("AppTemplateLiteView", "preFilterLangMatchCallback"), $templateContent);
     return $templateContent;
 }