// Fix sprintf translation for theme and modules

This commit is contained in:
lLefevre
2012-05-02 16:07:45 +00:00
parent 5a41715956
commit 2788d1b2a6
4 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function smartyTranslate($params, &$smarty)
// If the template is part of a module
if (!empty($params['mod']))
return Translate::getModuleTranslation($params['mod'], $params['s'], basename($filename, '.tpl'));
return Translate::getModuleTranslation($params['mod'], $params['s'], basename($filename, '.tpl'), $sprintf);
// If the tpl is at the root of the template folder
if (dirname($filename) == '.')