CRM.ts() - Respect domains when selecting/transmitting strings
authorTim Otten <totten@civicrm.org>
Sat, 17 Jan 2015 11:42:54 +0000 (03:42 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 17 Jan 2015 11:50:17 +0000 (03:50 -0800)
commit3f3bba82744319094ba716a515b757d5af521b96
tree7e2c6df021083dfe534978fed744c70422bc7f44
parentfd7dc3f34a9605552866688ff9d3f8f75de70c3c
CRM.ts() - Respect domains when selecting/transmitting strings

Previousy, all strings from all JS files were translated in the default
'civicrm' domain, and they were transmitted via CRM.strings.

Now, strings from extension JS files are translated in their respective
domains, and they are transmitted via CRM['strings::'+domain].  If a string
is unavailable in the extension's domain, then it is translated using the
default 'civicrm' domain.

Strings from core JS files are still processed as before.
CRM/Core/I18n.php
CRM/Core/Resources.php
js/Common.js
tests/qunit/crm-translate/test.js
tests/qunit/crm-translate/test.php