add plural forms for pt to gtk2_ardour/po/pt.po
[ardour.git] / gtk2_ardour / splash.cc
index c2522472752988262abb18d77f93ef1657bd7016..1784ac8164584d7a78b59c1ee43cb2718e178d3e 100644 (file)
@@ -34,7 +34,7 @@
 #include "gui_thread.h"
 #include "splash.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace Gtk;
 using namespace Glib;
@@ -50,7 +50,10 @@ Splash::Splash ()
 
        std::string splash_file;
 
-       if (!find_file (ardour_data_search_path(), "splash.png", splash_file)) {
+       Searchpath rc (ARDOUR::ardour_data_search_path());
+       rc.add_subdirectory_to_paths ("resources");
+
+       if (!find_file (rc, PROGRAM_NAME "-splash.png", splash_file)) {
                 cerr << "Cannot find splash screen image file\n";
                throw failed_constructor();
        }
@@ -111,9 +114,9 @@ Splash::pop_back_for (Gtk::Window& win)
 
            So for OS X, we just hide ourselves.
 
-                                        Oct 2014: The Windows situation is similar, although it should be possible
-                                        to play tricks with gdk's set_type_hint() or directly hack things using
-                                        SetWindowLong() and UpdateLayeredWindow()
+           Oct 2014: The Windows situation is similar, although it should be possible
+           to play tricks with gdk's set_type_hint() or directly hack things using
+           SetWindowLong() and UpdateLayeredWindow()
         */
         (void) win;
         hide();