void FarPlugin::InitLang() { String fn = GetMsg(0); if (fn != CurLocaleFile) { CurLocaleFile = fn; LoadLocale(GetDLLPath() + L"\\resource\\" + fn, locale); } }
void FarPlugin::Create() { InitLang(); if (!dialogs.Load(GetDLLPath() + L"\\resource\\dialogs.objd")) { FWError(L"Could not load dialogs.objd"); exit(0); } InitOptions(); LoadOptions(); descs.AddString(L"Descript.ion"); descs.AddString(L"Files.bbs"); UpdateConfiguration(); }
void FarPlugin::Create() { // bug #15 fixed by Ivanych InitLang(); if(!dialogs.Load(GetDLLPath() + "\\resource\\dialogs.objd")) { FWError("Could not load dialogs.objd"); exit(0); } InitOptions(); settings.create(); LoadOptions(); // XXX descs.LoadFromString(registry.GetString("\\Software\\Far2\\Descriptions", "ListNames", "Descript.ion,Files.bbs"), ','); // XXX Workaround descs.AddString("Descript.ion"); descs.AddString("Files.bbs"); }