diff options
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index ca2432eda7..2ecea550b5 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -526,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; +} |