Exemplo n.º 1
0
void FarPlugin::InitLang()
{
    String fn = GetMsg(0);
    if (fn != CurLocaleFile)
    {
        CurLocaleFile = fn;
        LoadLocale(GetDLLPath() + L"\\resource\\" + fn, locale);
    }
}
Exemplo n.º 2
0
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();
}
Exemplo n.º 3
0
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");
}