Commit ae62524d authored by Aurimas Fišeras's avatar Aurimas Fišeras Committed by Alexandre Julliard

taskmgr: Make remaining strings translatable.

parent fe1cc327
......@@ -556,3 +556,17 @@ BEGIN
IDS_AFFINITY_ERROR_TITLE "Invalid Option"
IDS_AFFINITY_UNABLE2ACCESS "Unable to Access or Set Process Affinity"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SYSTEM_IDLE_PROCESS "System Idle Process"
IDS_APPLICATION_NOT_RESPONDING "Not Responding"
IDS_APPLICATION_RUNNING "Running"
IDS_APPLICATION_TASK "Task"
IDS_APPLICATION_STATUS "Status"
IDS_DEBUG_CHANNEL "Debug Channels"
IDS_DEBUG_CHANNEL_FIXME "Fixme"
IDS_DEBUG_CHANNEL_ERR "Err"
IDS_DEBUG_CHANNEL_WARN "Warn"
IDS_DEBUG_CHANNEL_TRACE "Trace"
END
......@@ -547,4 +547,18 @@ BEGIN
IDS_AFFINITY_UNABLE2ACCESS "Nepavyko prieiti prie ar nustatyti proceso atitikimo"
END
STRINGTABLE DISCARDABLE
BEGIN
IDS_SYSTEM_IDLE_PROCESS "Sistemos neveikos procesas"
IDS_APPLICATION_NOT_RESPONDING "Neatsako"
IDS_APPLICATION_RUNNING "Vykdoma"
IDS_APPLICATION_TASK "Užduotis"
IDS_APPLICATION_STATUS "Būsena"
IDS_DEBUG_CHANNEL "Derinimo kanalai"
IDS_DEBUG_CHANNEL_FIXME "Fixme (pataisyk)"
IDS_DEBUG_CHANNEL_ERR "Err (klaida)"
IDS_DEBUG_CHANNEL_WARN "Warn (įspėjimas)"
IDS_DEBUG_CHANNEL_TRACE "Trace (pėdsakas)"
END
#pragma code_page(default)
......@@ -417,9 +417,11 @@ static void ApplicationPageOnNotify(WPARAM wParam, LPARAM lParam)
LV_DISPINFOW* pnmdi;
LPAPPLICATION_PAGE_LIST_ITEM pAPLI;
static const WCHAR wszNotResponding[] = {'N','o','t',' ','R','e','s','p','o','n','d','i','n','g',0};
static const WCHAR wszRunning[] = {'R','u','n','n','i','n','g',0};
WCHAR wszNotResponding[255];
WCHAR wszRunning[255];
LoadStringW(hInst, IDS_APPLICATION_NOT_RESPONDING, wszNotResponding, sizeof(wszNotResponding)/sizeof(WCHAR));
LoadStringW(hInst, IDS_APPLICATION_RUNNING, wszRunning, sizeof(wszRunning)/sizeof(WCHAR));
idctrl = (int) wParam;
pnmh = (LPNMHDR) lParam;
......@@ -837,9 +839,11 @@ ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
int cx, cy;
LVCOLUMNW column;
static const WCHAR wszTasks[] = {'T','a','s','k','s',0};
static WCHAR wszTask[] = {'T','a','s','k',0};
static WCHAR wszStatus[] = {'S','t','a','t','u','s',0};
WCHAR wszTask[255];
WCHAR wszStatus[255];
LoadStringW(hInst, IDS_APPLICATION_TASK, wszTask, sizeof(wszTask)/sizeof(WCHAR));
LoadStringW(hInst, IDS_APPLICATION_STATUS, wszStatus, sizeof(wszStatus)/sizeof(WCHAR));
switch (message) {
case WM_INITDIALOG:
......@@ -858,8 +862,6 @@ ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
hApplicationPageSwitchToButton = GetDlgItem(hDlg, IDC_SWITCHTO);
hApplicationPageNewTaskButton = GetDlgItem(hDlg, IDC_NEWTASK);
SetWindowTextW(hApplicationPageListCtrl, wszTasks);
/* Initialize the application page's controls */
column.mask = LVCF_TEXT|LVCF_WIDTH;
column.pszText = wszTask;
......
......@@ -224,11 +224,17 @@ static void DebugChannels_OnCreate(HWND hwndDlg)
HWND hLV = GetDlgItem(hwndDlg, IDC_DEBUG_CHANNELS_LIST);
LVCOLUMNW lvc;
static WCHAR debug_channelW[] = {'D','e','b','u','g',' ','C','h','a','n','n','e','l',0},
fixmeW[] = {'F','i','x','m','e',0},
errW[] = {'E','r','r',0},
warnW[] = {'W','a','r','n',0},
traceW[] = {'T','r','a','c','e',0};
WCHAR debug_channelW[255];
WCHAR fixmeW[255];
WCHAR errW[255];
WCHAR warnW[255];
WCHAR traceW[255];
LoadStringW(hInst, IDS_DEBUG_CHANNEL, debug_channelW, sizeof(debug_channelW)/sizeof(WCHAR));
LoadStringW(hInst, IDS_DEBUG_CHANNEL_FIXME, fixmeW, sizeof(fixmeW)/sizeof(WCHAR));
LoadStringW(hInst, IDS_DEBUG_CHANNEL_ERR, errW, sizeof(errW)/sizeof(WCHAR));
LoadStringW(hInst, IDS_DEBUG_CHANNEL_WARN, warnW, sizeof(warnW)/sizeof(WCHAR));
LoadStringW(hInst, IDS_DEBUG_CHANNEL_TRACE, traceW, sizeof(traceW)/sizeof(WCHAR));
lvc.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
lvc.fmt = LVCFMT_LEFT;
......
......@@ -253,7 +253,8 @@ void PerfDataRefresh(void)
lstrcpyW(pPerfData[Idx].ImageName, pSPI->Name.Buffer);
else
{
static const WCHAR idleW[] = {'S','y','s','t','e','m',' ','I','d','l','e',' ','P','r','o','c','e','s','s',0};
WCHAR idleW[255];
LoadStringW(hInst, IDS_SYSTEM_IDLE_PROCESS, idleW, sizeof(idleW)/sizeof(WCHAR));
lstrcpyW(pPerfData[Idx].ImageName, idleW );
}
......
......@@ -466,9 +466,8 @@ ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
hProcessPageShowAllProcessesButton = GetDlgItem(hDlg, IDC_SHOWALLPROCESSES);
/*
* Set the title and extended window styles for the list control
* Set the extended window styles for the list control
*/
SetWindowText(hProcessPageListCtrl, _T("Processes"));
SendMessage(hProcessPageListCtrl, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, ListView_GetExtendedListViewStyle(hProcessPageListCtrl) | LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);
AddColumns();
......
......@@ -233,6 +233,16 @@
#define IDS_AFFINITY_ERROR_MESSAGE 32864
#define IDS_AFFINITY_ERROR_TITLE 32865
#define IDS_AFFINITY_UNABLE2ACCESS 32866
#define IDS_SYSTEM_IDLE_PROCESS 32867
#define IDS_APPLICATION_NOT_RESPONDING 32868
#define IDS_APPLICATION_RUNNING 32869
#define IDS_APPLICATION_TASK 32870
#define IDS_APPLICATION_STATUS 32871
#define IDS_DEBUG_CHANNEL 32872
#define IDS_DEBUG_CHANNEL_FIXME 32873
#define IDS_DEBUG_CHANNEL_ERR 32874
#define IDS_DEBUG_CHANNEL_WARN 32875
#define IDS_DEBUG_CHANNEL_TRACE 32876
#define IDC_STATIC -1
/*
......
......@@ -142,7 +142,9 @@ BOOL TrayIcon_ShellAddTrayIcon(void)
NOTIFYICONDATAW nid;
HICON hIcon = NULL;
BOOL bRetVal;
WCHAR wszCPU_Usage[] = {'C','P','U',' ','U','s','a','g','e',':',' ','%','d','%','%',0};
WCHAR wszCPU_Usage[255];
LoadStringW(hInst, IDS_STATUS_BAR_CPU_USAGE, wszCPU_Usage, sizeof(wszCPU_Usage)/sizeof(WCHAR));
memset(&nid, 0, sizeof(NOTIFYICONDATAW));
......@@ -187,7 +189,9 @@ BOOL TrayIcon_ShellUpdateTrayIcon(void)
NOTIFYICONDATAW nid;
HICON hIcon = NULL;
BOOL bRetVal;
WCHAR wszCPU_Usage[] = {'C','P','U',' ','U','s','a','g','e',':',' ','%','d','%','%',0};
WCHAR wszCPU_Usage[255];
LoadStringW(hInst, IDS_STATUS_BAR_CPU_USAGE, wszCPU_Usage, sizeof(wszCPU_Usage)/sizeof(WCHAR));
memset(&nid, 0, sizeof(NOTIFYICONDATAW));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment