Skip to content

Commit

Permalink
Format playback rate in player toolbar locale aware
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Sep 11, 2023
1 parent 2944e16 commit f69eda2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions picard/ui/playertoolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


import locale
import os

from PyQt5 import (
Expand Down Expand Up @@ -371,7 +371,7 @@ def on_slider_value_changed(self, value):

def set_playback_rate(self, playback_rate):
self.playback_rate = playback_rate
label = _(self.rate_fmt) % playback_rate
label = locale.format_string(_(self.rate_fmt), playback_rate)
self.setText(label)

def wheelEvent(self, event):
Expand Down

0 comments on commit f69eda2

Please sign in to comment.