Large nasty commit in the form of a 5000 line patch chock-full of completely
[ardour.git] / libs / ardour / audio_library.cc
index 37f558445b14605c1546b721e96a2e6f10c14846..7f421e86c817dc4074aa19cdbfed9e29bc98a55d 100644 (file)
@@ -42,6 +42,7 @@
 
 using namespace std;
 using namespace ARDOUR;
+using namespace PBD;
 
 static char* SOUNDFILE = "http://ardour.org/ontology/Soundfile";
 
@@ -49,11 +50,11 @@ AudioLibrary::AudioLibrary ()
 {
 //     sfdb_paths.push_back("/Users/taybin/sounds");
 
-       src = "file:" + Config->get_user_ardour_path() + "sfdb";
+       src = "file:" + get_user_ardour_path() + "sfdb";
 
        // workaround for possible bug in raptor that crashes when saving to a
        // non-existant file.
-       touch_file(Config->get_user_ardour_path() + "sfdb");
+       touch_file(get_user_ardour_path() + "sfdb");
 
        lrdf_read_file(src.c_str());
 
@@ -88,10 +89,10 @@ AudioLibrary::initialize_db ()
        lrdf_add_triple(src.c_str(), SOUNDFILE, RDF_TYPE, RDFS_CLASS, lrdf_uri);
 
        // add intergral fields
-       add_field("channels");
-       add_field("samplerate");
-       add_field("resolution");
-       add_field("format");
+       add_field(_("channels"));
+       add_field(_("samplerate"));
+       add_field(_("resolution"));
+       add_field(_("format"));
 }
 
 void