$domain = NULL;
}
+ $raw = !empty($params['raw']);
+ unset($params['raw']);
+
if (!empty($domain)) {
// It might be prettier to cast to an array, but this is high-traffic stuff.
if (is_array($domain)) {
}
// replace the numbered %1, %2, etc. params if present
- if (count($params)) {
+ if (count($params) && !$raw) {
$text = $this->strarg($text, $params);
}
foreach ((array) $text as $str) {
$translated = ts($str, array(
'domain' => ($domain == 'civicrm') ? NULL : array($domain, NULL),
+ 'raw' => TRUE,
));
// We only need to push this string to client if the translation