Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16260

Don't use ts() in smarty templates

    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.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              colemanw Coleman Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: