use a "while" loop to allow multiple "{{PLURAL}}" paths to work correctly within "translate"
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

TridevGuha/pywikibot-core,Darkdadaah/pywikibot-core,valhallasw/pywikibot-core,npdoty/pywikibot,hasteur/g13bot_tools_new,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,h4ck3rm1k3/pywikibot-core,h4ck3rm1k3/pywikibot-core,wikimedia/pywikibot-core,magul/pywikibot-core,magul/pywikibot-core,Darkdadaah/pywikibot-core,darthbhyrava/pywikibot-local,wikimedia/pywikibot-core,VcamX/pywikibot-core,happy5214/pywikibot-core,PersianWikipedia/pywikibot-core,hasteur/g13bot_tools_new,npdoty/pywikibot,xZise/pywikibot-core,jayvdb/pywikibot-core,trishnaguha/pywikibot-core,happy5214/pywikibot-core,smalyshev/pywikibot-core,icyflame/batman,emijrp/pywikibot-core