CRM-15832 - CRM_Core_Resources - Move translateScript to class. Add HTML support.
authorTim Otten <totten@civicrm.org>
Fri, 16 Jan 2015 04:05:40 +0000 (20:05 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 17 Jan 2015 03:38:15 +0000 (19:38 -0800)
commitfd7dc3f34a9605552866688ff9d3f8f75de70c3c
tree5a7f8c10de41686219b02c2deecc5d00b228e8b3
parent3cb25298dcfaebdf396395e2180747c5c4d71cf9
CRM-15832 - CRM_Core_Resources - Move translateScript to class. Add HTML support.

For the moment, it looks like the existing JS string-extractor actually
works for Angular-style HTML partials.  This is not entirely a coincidence
(since our Angular convention was purposefully derived from our JS
convention), but luck/circumstance is a big factor, and this may not work in
the long-run.  This commit makes it easy to use different string-extractors
for different file-types.
CRM/Core/Resources.php
CRM/Core/Resources/Strings.php [new file with mode: 0644]
tests/phpunit/CRM/Core/Resources/StringsTest.php [new file with mode: 0644]
tests/phpunit/CRM/Utils/HTMLTest.php [new file with mode: 0644]