Allow localization of the placement of percent signs in the zoom box
This commit is contained in:
parent
419ba54e58
commit
2505c8613b
4 changed files with 17 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue