[pulseaudio-commits] src/devicewidget.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 3 16:29:21 UTC 2020


 src/devicewidget.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f4279df6372ea5ada2a420446ddf51bff5b914e8
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Thu Dec 3 18:21:07 2020 +0200

    devicewidget: Mark Cancel and OK button texts translatable
    
    Part-of: <https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/50>

diff --git a/src/devicewidget.cc b/src/devicewidget.cc
index dd41487..e86cd20 100644
--- a/src/devicewidget.cc
+++ b/src/devicewidget.cc
@@ -259,8 +259,8 @@ void DeviceWidget::renamePopup() {
     x->get_widget("renameText", renameText);
 
     renameText->set_text(description);
-    dialog->add_button("_Cancel", Gtk::RESPONSE_CANCEL);
-    dialog->add_button("_OK", Gtk::RESPONSE_OK);
+    dialog->add_button(_("_Cancel"), Gtk::RESPONSE_CANCEL);
+    dialog->add_button(_("_OK"), Gtk::RESPONSE_OK);
     dialog->set_default_response(Gtk::RESPONSE_OK);
     if (Gtk::RESPONSE_OK == dialog->run()) {
         pa_operation* o;



More information about the pulseaudio-commits mailing list