Lars Gullik Bjønnes wrote: > | So, let me ask why you think that users on such systems should have > | these messages output only in English? > > but this is done after main has run so the package stuff should have > been able to finish by the time the help text is outputted
What? Wrong! void LyX::priv_exec(int & argc, char * argv[]) { // Here's where we parse "lyx -help", etc bool const want_gui = easyParse(argc, argv); // Here's where the paths to the directories are ascertained. // We need to easyParse() first because we might need // "-sysdir foo -userdir bar" lyx::support::init_package(argv[0], cl_system_support, cl_user_support); // Only now do we initialise gettext. string const & locale_dir = package().locale_dir(); FileInfo fi(locale_dir); if (fi.isOK() && fi.isDir()) { // gettext_init(locale_dir); } // Finally we're in a position to output all messages // that have been stored to date and have these messages // displayed in <choose your language>. lazy::messages().flush(); // If LyX was invoked as "lyx -help" or if there is a // problem with the packaging, then now's the time to exit. if (package().unable_to_set_paths()) after_posting_messages = AfterMessages::EXIT_WITH_ERROR; switch (after_posting_messages) { case AfterMessages::EXIT_NO_ERROR: exit(0); case AfterMessages::EXIT_WITH_ERROR: exit(1); case AfterMessages::CONTINUE: break; } -- Angus