From 1d2ed5ae6af9c1f25188a0a8f9867aeb0e40b157 Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Tue, 7 Jun 2011 20:09:52 -0400 Subject: [PATCH] Issue #504506 by andypost, pillarsdotnet: Drupal.formatPlural followup. --- includes/locale.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/includes/locale.inc b/includes/locale.inc index 0ca9944f51bff06006cb6deb957aae2850d30980..3fb4707d2553d679b263afc538adc182c05efbab 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -1863,7 +1863,7 @@ function _locale_rebuild_js($langcode = NULL) { // Construct the array for JavaScript translations. // Only add strings with a translation to the translations array. - $result = db_query("SELECT s.lid, s.source, t.translation FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.location LIKE '%.js%' AND s.textgroup = :textgroup AND t.translation IS NOT NULL", array(':language' => $language->language, ':textgroup' => 'default')); + $result = db_query("SELECT s.lid, s.source, t.translation FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.location LIKE '%.js%' AND s.textgroup = :textgroup", array(':language' => $language->language, ':textgroup' => 'default')); $translations = array(); foreach ($result as $data) { -- 1.7.4.1