Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.6.1
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
There is apparently some confusion about when to use ts() vs
{ts} in javascript.Although the javascript ts() function may seem to work when used in a template, it isn't actually going to pull the necessary translation because the js isn't being added via CRM_Core_Resources::addScriptFile (which is responsible for parsing js files for ts()). Smarty templates should always use the smarty {ts}
function for translating strings.