CRM-13580 - ts - Set the default translation domain based on $extensionKey
authorTim Otten <totten@civicrm.org>
Fri, 11 Oct 2013 17:59:44 +0000 (18:59 +0100)
committerTim Otten <totten@civicrm.org>
Fri, 11 Oct 2013 17:59:44 +0000 (18:59 +0100)
commitd9aa1c6bc28d8a000cb52f66b62b7d7b7ed39955
treed12492a7a2ed2aaf3cf576e2eaa8232fa7a37088
parent9915ae361034d3c30d7a3e4623675fd00b382114
CRM-13580 - ts - Set the default translation domain based on $extensionKey

Reset $extensionKey when loading each file. This puts the onus on developers
to set the extensionKey once in each file using {assign} or {tsScope}, but
it prevents the extension key from leaking unintentionally to other files,
and it allows developers to handle weird situations explicitly.

(Example weird situation -- using one extension to override another
extension's template; or having multiple extensions share a common
translation key.)

----------------------------------------
* CRM-13580: Set translation domain implicitly in extensions
  http://issues.civicrm.org/jira/browse/CRM-13580
CRM/Core/Smarty.php
CRM/Core/Smarty/plugins/block.ts.php
CRM/Core/Smarty/plugins/prefilter.resetExtScope.php [new file with mode: 0644]