HomePhabricator

Fix: Translation percentage sometimes goes beyond 100

Authored by santhosh.

Description

Fix: Translation percentage sometimes goes beyond 100

A missing parseInt was causing 0s appended to numbers instead of
adding, causing wrong calculation

Testplan:
Translate
Special:ContentTranslation&page=Before+This+World&from=en&to=vi
Click the section "Background". Without this patch, you will see the
progressbar growing beyond the limits. With this patch, it should
never go beyond 100%

Bug: T98419
Change-Id: I5186c47ee52fea1ecc14bb4e4d522099ec8784d0

Details

Committed
santhoshJun 29 2015, 9:34 AM
Parents
rECTXfedd833edaee: Merge "Credit for the Chart.js library"
Branches
Unknown
Tags
Unknown
References
refs/changes/90/221590/2
ChangeId
I5186c47ee52fea1ecc14bb4e4d522099ec8784d0