devicewidget: Mark Cancel and OK button texts translatable

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/merge_requests/50>
This commit is contained in:
Tanu Kaskinen 2020-12-03 18:21:07 +02:00
parent 75506a6b9c
commit f4279df637
1 changed files with 2 additions and 2 deletions

View File

@ -259,8 +259,8 @@ void DeviceWidget::renamePopup() {
x->get_widget("renameText", renameText); x->get_widget("renameText", renameText);
renameText->set_text(description); renameText->set_text(description);
dialog->add_button("_Cancel", Gtk::RESPONSE_CANCEL); dialog->add_button(_("_Cancel"), Gtk::RESPONSE_CANCEL);
dialog->add_button("_OK", Gtk::RESPONSE_OK); dialog->add_button(_("_OK"), Gtk::RESPONSE_OK);
dialog->set_default_response(Gtk::RESPONSE_OK); dialog->set_default_response(Gtk::RESPONSE_OK);
if (Gtk::RESPONSE_OK == dialog->run()) { if (Gtk::RESPONSE_OK == dialog->run()) {
pa_operation* o; pa_operation* o;