Skip to content

Commit

Permalink
audqt: Make volume button tooltip translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Dec 5, 2023
1 parent fcdb46d commit 356cf68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libaudqt/volumebutton.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
#include <QWheelEvent>
#include <QWidgetAction>

#include <libaudcore/audstrings.h>
#include <libaudcore/drct.h>
#include <libaudcore/hook.h>
#include <libaudcore/i18n.h>
#include <libaudcore/runtime.h>

namespace audqt
Expand Down Expand Up @@ -122,7 +124,7 @@ void VolumeButton::updateIcon(int val)
else
setIcon(QIcon::fromTheme("audio-volume-high"));

setToolTip(QString("%1 %").arg(val));
setToolTip(QString(str_printf(_("%d%%"), val)));
}

void VolumeButton::updateVolume()
Expand Down

0 comments on commit 356cf68

Please sign in to comment.