summaryrefslogtreecommitdiff
path: root/includes/locale.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/locale.inc')
-rw-r--r--includes/locale.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 4962f2fd7..6ee5baa82 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -2425,7 +2425,7 @@ function _locale_rebuild_js($langcode = NULL) {
$data .= "'pluralFormula': function (\$n) { return Number({$language->formula}); }, ";
}
- $data .= "'strings': " . drupal_to_js($translations) . " };";
+ $data .= "'strings': " . drupal_json_encode($translations) . " };";
$data_hash = md5($data);
}