mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Prevent infinite loop on generating plural examples #970

Closed mathjazz closed 3 years ago

mathjazz commented 3 years ago

This issue was created automatically with bugzilla2github.

Bug 1726219

Bug Reporter: @mathjazz

The getPluralExamples() function may loop infinitely if the locale plurals are not configured properly. See a related post on Discourse for more details.

mathjazz commented 3 years ago

Comment Author: GitHub Bugzilla PR Linker <pulgasaur@mozilla.bugs>

Created attachment 9236726 Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1984

Attached file: file_714532845.txt (text/x-github-pull-request, 44 bytes) Description: Link to GitHub pull-request: https://github.com/mozilla/pontoon/pull/1984