Allow localization of the placement of percent signs in the zoom box

This commit is contained in:
Jonas Jenwald 2014-10-16 14:36:03 +02:00
parent 419ba54e58
commit 2505c8613b
4 changed files with 17 additions and 9 deletions

View file

@ -1927,7 +1927,9 @@ window.addEventListener('scalechange', function scalechange(evt) {
var predefinedValueFound = selectScaleOption('' + evt.scale);
if (!predefinedValueFound) {
customScaleOption.textContent = Math.round(evt.scale * 10000) / 100 + '%';
var customScale = Math.round(evt.scale * 10000) / 100;
customScaleOption.textContent =
mozL10n.get('page_scale_percent', { scale: customScale }, '{{scale}}%');
customScaleOption.selected = true;
}
updateViewarea();