+// Read the languages file `name'
+void LyX::ReadLangugesFile(string const & name)
+{
+ lyxerr[Debug::INIT] << "About to read " << name << "..." << endl;
+
+ string lang_path = LibFileSearch(string(), name);
+ if (lang_path.empty()) {
+ lyxerr[Debug::INIT] << "Could not find " << name << endl;
+ languages.setDefaults();
+ return;
+ }
+ languages.read(lang_path);
+}
+
+
+// Read the encodings file `name'
+void LyX::ReadEncodingsFile(string const & name)
+{
+ lyxerr[Debug::INIT] << "About to read " << name << "..." << endl;
+
+ string enc_path = LibFileSearch(string(), name);
+ if (enc_path.empty()) {
+ lyxerr[Debug::INIT] << "Could not find " << name << endl;
+ return;
+ }
+ encodings.read(enc_path);
+}
+
+