Voting starts in March for the Drupal Association Board election.
- JS translation files are never added to Drupal pages => strings in JS are never translated.
- When parsing the JS files for source strings, singular and plural strings are stored separately. This is wrong, since Drupal 8 now stores these concatenated as one source string for easier lookup.
- The Drupal.formatPlural() logic then needs to be updated to look up the ETX character concatenated string (add an equivalent of LOCALE_PLURAL_DELIMITER in JS too).
- We now need to replace multiple occurrences of the placeholder, since @count will appear multiple times. If a placeholder appears more than once in a string then only the first occurrence gets replaced.
Theissue is cannot be solved without this fix.
- Add the JS to the page properly. That is a one line fix, the state name is wrong.
- Parse the JS file properly for singular/plural string pairs, and save them as one string like the .po parser / format_plural backend.
- Update the logic in Drupal.formatPlural() to use the single concatenated string lookup to find translations and split for the right index.
- Support replacing multiple instances of the same placeholder, so multiple instances of @count as with these strings will work.
User interface changes
JS translations will work again :)
None. This brings the JS parser and JS file generation in line with the rest of the locale system. If the structure of Drupal.locale.strings is to be considered an API, now singular+plural string pairs and their translations will appear as one string pair, not multiple string pairs. We don't believe this is an API though.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch locale-js-plural-2182265-59-D6.patch. Unable to apply patch. See the log in the details link for more information. View
PASSED: [[SimpleTest]]: [MySQL] 41,167 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 40,733 pass(es). View
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch locale-js-plural-2182265-45-D8.patch. Unable to apply patch. See the log in the details link for more information. View
PASSED: [[SimpleTest]]: [MySQL] 63,610 pass(es). View