2.X commits up to and including 7519
[ardour.git] / libs / ardour / globals.cc
index 3aa6d6990d4d8bf42204e457825aef330d4fc8e5..2ecea550b5c400e02bf19738cd4260251d52b5b3 100644 (file)
@@ -283,8 +283,7 @@ ARDOUR::init (bool use_vst, bool try_optimization)
        if (Config->load_state ()) {
                return -1;
        }
-
-       
+        
        Config->set_use_vst (use_vst);
 
        Profile = new RuntimeProfile;
@@ -527,3 +526,15 @@ ARDOUR::coverage (framepos_t sa, framepos_t ea,
        return OverlapNone;
 }
 
+string
+ARDOUR::translation_kill_path ()
+{
+        return Glib::build_filename (user_config_directory().to_string(), ".love_is_the_language_of_audio");
+}
+
+bool
+ARDOUR::translations_are_disabled ()
+{
+        /* if file does not exist, we don't translate (bundled ardour only) */
+        return Glib::file_test (translation_kill_path(), Glib::FILE_TEST_EXISTS) == false;
+}