Skip to content

Commit

Permalink
FO: Fix translations error from module with sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineMille committed Jan 12, 2017
1 parent bba8ed5 commit 25a2213
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/smartyfront.config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ function smartyTranslate($params, &$smarty)
}
}

if (($translation = Context::getContext()->getTranslator()->trans($params['s'], $params['sprintf'], $params['d'])) !== $params['s']) {
if (($translation = Context::getContext()->getTranslator()->trans($params['s'], $params['sprintf'], $params['d'])) !== $params['s']
&& $params['mod'] === false) {
return $translation;
}

Expand Down

0 comments on commit 25a2213

Please sign in to comment.