Making one string translatable
authorOlivier Humbert <trebmuh@users.noreply.github.com>
Fri, 2 Dec 2016 19:18:02 +0000 (20:18 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Dec 2016 19:18:02 +0000 (20:18 +0100)
It should allow this dialog window to be translatable : http://pix.toile-libre.org/upload/original/1480706219.png

I hope this is the correct way to do so. Please double-check what I've done before merging.

gtk2_ardour/ardour_ui_dependents.cc

index 8490643487ccf6753c35b6909b7baf8f6c26a895..b8d8ad8bfc1b78bb8bf03df0f5fcf021ecfe1de3 100644 (file)
@@ -187,7 +187,7 @@ ARDOUR_UI::idle_ask_about_quit ()
        } else {
                /* no session or session not dirty, but still ask anyway */
 
-               Gtk::MessageDialog msg (string_compose ("Quit %1?", PROGRAM_NAME),
+               Gtk::MessageDialog msg (string_compose (_("Quit %1?"), PROGRAM_NAME),
                                        false, /* no markup */
                                        Gtk::MESSAGE_INFO,
                                        Gtk::BUTTONS_YES_NO,