mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-20 02:34:41 +10:00
Copy *L10N.ini files to output folder
So that they can be used during debugging.
This commit is contained in:
@@ -100,7 +100,9 @@
|
|||||||
<None Include="ClassicExplorer64.def" />
|
<None Include="ClassicExplorer64.def" />
|
||||||
<None Include="ExplorerBand.rgs" />
|
<None Include="ExplorerBand.rgs" />
|
||||||
<None Include="ExplorerBHO.rgs" />
|
<None Include="ExplorerBHO.rgs" />
|
||||||
<None Include="ExplorerL10N.ini" />
|
<None Include="ExplorerL10N.ini">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Include="ShareOverlay.rgs" />
|
<None Include="ShareOverlay.rgs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ static DWORD CALLBACK DllInitThread( void* )
|
|||||||
GetModuleFileName(g_Instance,path,_countof(path));
|
GetModuleFileName(g_Instance,path,_countof(path));
|
||||||
*PathFindFileName(path)=0;
|
*PathFindFileName(path)=0;
|
||||||
wchar_t fname[_MAX_PATH];
|
wchar_t fname[_MAX_PATH];
|
||||||
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"ExplorerL10N.ini",path);
|
Sprintf(fname,_countof(fname),L"%sExplorerL10N.ini",path);
|
||||||
CString language=GetSettingString(L"Language");
|
CString language=GetSettingString(L"Language");
|
||||||
ParseTranslations(fname,language);
|
ParseTranslations(fname,language);
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ using namespace ATL;
|
|||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
|
|
||||||
#ifdef BUILD_SETUP
|
#ifdef BUILD_SETUP
|
||||||
#define INI_PATH L""
|
|
||||||
#define DOC_PATH L""
|
#define DOC_PATH L""
|
||||||
#else
|
#else
|
||||||
#define INI_PATH L"..\\"
|
|
||||||
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -25,10 +25,8 @@
|
|||||||
using namespace ATL;
|
using namespace ATL;
|
||||||
|
|
||||||
#ifdef BUILD_SETUP
|
#ifdef BUILD_SETUP
|
||||||
#define INI_PATH L""
|
|
||||||
#define DOC_PATH L""
|
#define DOC_PATH L""
|
||||||
#else
|
#else
|
||||||
#define INI_PATH L"..\\"
|
|
||||||
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,9 @@
|
|||||||
<ClInclude Include="targetver.h" />
|
<ClInclude Include="targetver.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="StartMenuL10N.ini" />
|
<None Include="StartMenuL10N.ini">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Lib\Lib.vcxproj">
|
<ProjectReference Include="..\Lib\Lib.vcxproj">
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ static DWORD CALLBACK DllInitThread( void* )
|
|||||||
*PathFindFileName(path)=0;
|
*PathFindFileName(path)=0;
|
||||||
|
|
||||||
wchar_t fname[_MAX_PATH];
|
wchar_t fname[_MAX_PATH];
|
||||||
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"StartMenuL10N.ini",path);
|
Sprintf(fname,_countof(fname),L"%sStartMenuL10N.ini",path);
|
||||||
CString language=GetSettingString(L"Language");
|
CString language=GetSettingString(L"Language");
|
||||||
ParseTranslations(fname,language);
|
ParseTranslations(fname,language);
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,8 @@
|
|||||||
#include <atlwin.h>
|
#include <atlwin.h>
|
||||||
|
|
||||||
#ifdef BUILD_SETUP
|
#ifdef BUILD_SETUP
|
||||||
#define INI_PATH L""
|
|
||||||
#define DOC_PATH L""
|
#define DOC_PATH L""
|
||||||
#else
|
#else
|
||||||
#define INI_PATH L"..\\"
|
|
||||||
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
#define DOC_PATH L"..\\..\\Docs\\Help\\"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,9 @@
|
|||||||
<None Include="StartMenuHelper.rgs" />
|
<None Include="StartMenuHelper.rgs" />
|
||||||
<None Include="StartMenuHelper32.def" />
|
<None Include="StartMenuHelper32.def" />
|
||||||
<None Include="StartMenuHelper64.def" />
|
<None Include="StartMenuHelper64.def" />
|
||||||
<None Include="StartMenuHelperL10N.ini" />
|
<None Include="StartMenuHelperL10N.ini">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="dllmain.h" />
|
<ClInclude Include="dllmain.h" />
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ static DWORD CALLBACK DllInitThread( void* )
|
|||||||
}
|
}
|
||||||
|
|
||||||
wchar_t fname[_MAX_PATH];
|
wchar_t fname[_MAX_PATH];
|
||||||
Sprintf(fname,_countof(fname),L"%s" INI_PATH L"StartMenuHelperL10N.ini",path);
|
Sprintf(fname,_countof(fname),L"%sStartMenuHelperL10N.ini",path);
|
||||||
CString language=GetSettingString(L"Language");
|
CString language=GetSettingString(L"Language");
|
||||||
ParseTranslations(fname,language);
|
ParseTranslations(fname,language);
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,3 @@
|
|||||||
#include <atlstr.h>
|
#include <atlstr.h>
|
||||||
|
|
||||||
using namespace ATL;
|
using namespace ATL;
|
||||||
|
|
||||||
#ifdef BUILD_SETUP
|
|
||||||
#define INI_PATH L""
|
|
||||||
#else
|
|
||||||
#define INI_PATH L"..\\"
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user