Fix display of remaining time
When there is less than an hour remaining, there was a format() call missing which made the power status menu display "%d minutes remaining". https://bugzilla.gnome.org/show_bug.cgi?id=635728
This commit is contained in:
parent
43d479c786
commit
7b73df78c6
@ -122,7 +122,7 @@ Indicator.prototype = {
|
|||||||
timestring = template.format (hours, Gettext.ngettext("hour", "hours", hours), minutes, Gettext.ngettext("minute", "minutes", minutes));
|
timestring = template.format (hours, Gettext.ngettext("hour", "hours", hours), minutes, Gettext.ngettext("minute", "minutes", minutes));
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
timestring = Gettext.ngettext("%d minute remaining", "%d minutes remaining", minutes);
|
timestring = Gettext.ngettext("%d minute remaining", "%d minutes remaining", minutes).format(minutes);
|
||||||
this._batteryItem.label.text = timestring;
|
this._batteryItem.label.text = timestring;
|
||||||
this._primaryPercentage.text = Math.round(percentage) + '%';
|
this._primaryPercentage.text = Math.round(percentage) + '%';
|
||||||
this._batteryItem.actor.show();
|
this._batteryItem.actor.show();
|
||||||
|
Loading…
Reference in New Issue
Block a user