use a "while" loop to allow multiple "{{PLURAL}}" paths to work correctly within "translate"

With the previous code, the result of the first occurrence of "{{PLURAL}}" was used
as replacement for all occurrences; a one-by-one regex replacement solves the issue.

Change-Id: I3c6e28316f7ca667ba9a3e95332301520b86dd97