mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
[SHELLFIND] Localize column names
This commit is contained in:
parent
641988a386
commit
6c6fd6d989
2 changed files with 10 additions and 6 deletions
|
@ -345,4 +345,8 @@ BEGIN
|
||||||
IDS_SEARCHINVALID "'%1' is not a valid folder."
|
IDS_SEARCHINVALID "'%1' is not a valid folder."
|
||||||
IDS_SEARCH_FOLDER "Searching %s"
|
IDS_SEARCH_FOLDER "Searching %s"
|
||||||
IDS_SEARCH_FILES_FOUND "%u files found"
|
IDS_SEARCH_FILES_FOUND "%u files found"
|
||||||
|
IDS_SEARCH_OPEN_FOLDER "Open Containing &Folder"
|
||||||
|
IDS_COL_NAME "Name"
|
||||||
|
IDS_COL_LOCATION "In Folder"
|
||||||
|
IDS_COL_RELEVANCE "Relevance"
|
||||||
END
|
END
|
||||||
|
|
|
@ -20,7 +20,7 @@ SHOpenFolderAndSelectItems(LPITEMIDLIST pidlFolder,
|
||||||
|
|
||||||
struct FolderViewColumns
|
struct FolderViewColumns
|
||||||
{
|
{
|
||||||
LPCWSTR wzColumnName;
|
int iResource;
|
||||||
DWORD dwDefaultState;
|
DWORD dwDefaultState;
|
||||||
int fmt;
|
int fmt;
|
||||||
int cxChar;
|
int cxChar;
|
||||||
|
@ -28,9 +28,9 @@ struct FolderViewColumns
|
||||||
|
|
||||||
static FolderViewColumns g_ColumnDefs[] =
|
static FolderViewColumns g_ColumnDefs[] =
|
||||||
{
|
{
|
||||||
{L"Name", SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_LEFT, 30},
|
{IDS_COL_NAME, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_LEFT, 30},
|
||||||
{L"In Folder", SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_LEFT, 30},
|
{IDS_COL_LOCATION, SHCOLSTATE_TYPE_STR | SHCOLSTATE_ONBYDEFAULT, LVCFMT_LEFT, 30},
|
||||||
{L"Relevance", SHCOLSTATE_TYPE_STR, LVCFMT_LEFT, 0}
|
{IDS_COL_RELEVANCE, SHCOLSTATE_TYPE_STR, LVCFMT_LEFT, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
CFindFolder::CFindFolder() :
|
CFindFolder::CFindFolder() :
|
||||||
|
@ -366,7 +366,7 @@ STDMETHODIMP CFindFolder::GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, SHELL
|
||||||
pDetails->fmt = g_ColumnDefs[iColumn].fmt;
|
pDetails->fmt = g_ColumnDefs[iColumn].fmt;
|
||||||
|
|
||||||
if (!pidl)
|
if (!pidl)
|
||||||
return SHSetStrRet(&pDetails->str, g_ColumnDefs[iColumn].wzColumnName);
|
return SHSetStrRet(&pDetails->str, _AtlBaseModule.GetResourceInstance(), g_ColumnDefs[iColumn].iResource);
|
||||||
|
|
||||||
if (iColumn == 1)
|
if (iColumn == 1)
|
||||||
{
|
{
|
||||||
|
@ -550,7 +550,7 @@ STDMETHODIMP CFindFolder::CallBack(IShellFolder *psf, HWND hwndOwner, IDataObjec
|
||||||
{
|
{
|
||||||
QCMINFO *pqcminfo = (QCMINFO *) lParam;
|
QCMINFO *pqcminfo = (QCMINFO *) lParam;
|
||||||
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_SEPARATOR, NULL, 0);
|
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_SEPARATOR, NULL, 0);
|
||||||
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_STRING, L"Open Containing Folder", MFS_ENABLED);
|
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_STRING, MAKEINTRESOURCEW(IDS_SEARCH_OPEN_FOLDER), MFS_ENABLED);
|
||||||
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_SEPARATOR, NULL, 0);
|
_InsertMenuItemW(pqcminfo->hmenu, pqcminfo->indexMenu++, TRUE, pqcminfo->idCmdFirst++, MFT_SEPARATOR, NULL, 0);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue