Issue #504506 by andypost, Gábor Hojtsy: Fixed Drupal.formatPlural incorrectly handle complex plural rules.
parent
b2cf5cc90b
commit
82419788d3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue