- if (lyxrc.read(lyxrc_path) < 0) {
-#if USE_BOOST_FORMAT
- Alert::warning(_("Could not read preferences"),
- boost::io::str(boost::format(
- _("Error while reading the preferences file\n%1$s.\n"
- "LyX will use the built-in defaults.")) % lyxrc_path));
-#else
- Alert::warning(_("Could not read preferences"),
- string(_("Error while reading the preferences file\n"))
- + lyxrc_path + _("LyX will use the built-in defaults."));
-#endif
- return false;
- }
- return true;
- } else {
- lyxerr[Debug::INIT] << "Could not find " << name << endl;