Author: ekohl
Date: Sun May 1 18:47:13 2011
New Revision: 51536
URL:
http://svn.reactos.org/svn/reactos?rev=51536&view=rev
Log:
[EVENTVWR]
Replace some hard-coded strings by resource strings.
Modified:
trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
trunk/reactos/base/applications/mscutils/eventvwr/lang/bg-BG.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/de-DE.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/el-GR.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/en-US.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/es-ES.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/fr-FR.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/it-IT.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/ja-JP.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/ko-KR.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/no-NO.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/pl-PL.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/ro-RO.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/ru-RU.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/sk-SK.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/sv-SE.rc
trunk/reactos/base/applications/mscutils/eventvwr/lang/uk-UA.rc
trunk/reactos/base/applications/mscutils/eventvwr/resource.h
Modified: trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] Sun May 1
18:47:13 2011
@@ -267,7 +267,7 @@
}
else
{
- wcscpy(CategoryName, L"None");
+ LoadStringW(hInst, IDS_NONE, CategoryName, MAX_PATH);
}
if (hLibrary != NULL)
@@ -281,7 +281,7 @@
}
}
- wcscpy(CategoryName, L"None");
+ LoadStringW(hInst, IDS_NONE, CategoryName, MAX_PATH);
return FALSE;
}
@@ -597,9 +597,9 @@
while (dwRead > 0)
{
- wcscpy(szUsername , L"N/A");
- wcscpy(szEventText , L"N/A");
- wcscpy(szCategory , L"None");
+ LoadStringW(hInst, IDS_NOT_AVAILABLE, szUsername, MAX_PATH);
+ LoadStringW(hInst, IDS_NOT_AVAILABLE, szEventText, MAX_PATH);
+ LoadStringW(hInst, IDS_NONE, szCategory, MAX_PATH);
// Get the event source name.
lpSourceName = (LPWSTR)((LPBYTE)pevlr + sizeof(EVENTLOGRECORD));
@@ -1142,6 +1142,7 @@
SetDlgItemTextW(hDlg, IDC_EVENTDATESTATIC, szDate);
SetDlgItemTextW(hDlg, IDC_EVENTTIMESTATIC, szTime);
+
SetDlgItemTextW(hDlg, IDC_EVENTUSERSTATIC, szUser);
SetDlgItemTextW(hDlg, IDC_EVENTSOURCESTATIC, szSource);
SetDlgItemTextW(hDlg, IDC_EVENTCOMPUTERSTATIC, szComputer);
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/bg-BG.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/bg-BG.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -108,3 +108,9 @@
IDS_COLUMNCOMPUTER "Êîìïþòúð"
IDS_COLUMNEVENTDATA "Äàííè çà ñúáèòèåòî"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/de-DE.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/de-DE.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Ereignisdaten"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "Keine"
+ IDS_NOT_AVAILABLE "Nicht verfügbar"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/el-GR.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/el-GR.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/en-US.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/en-US.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/es-ES.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/es-ES.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computadora"
IDS_COLUMNEVENTDATA "Datos del evento"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/fr-FR.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/fr-FR.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Ordinateur"
IDS_COLUMNEVENTDATA "Données"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/it-IT.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/it-IT.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Dati Evento"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/ja-JP.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/ja-JP.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/ko-KR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/ko-KR.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/ko-KR.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -111,3 +111,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/no-NO.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/no-NO.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/pl-PL.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/pl-PL.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -119,3 +119,9 @@
IDS_COLUMNCOMPUTER "Komputer"
IDS_COLUMNEVENTDATA "Dane zdarzenia"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/ro-RO.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/ro-RO.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/ru-RU.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/ru-RU.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/sk-SK.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/sk-SK.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -112,3 +112,9 @@
IDS_COLUMNCOMPUTER "Computer"
IDS_COLUMNEVENTDATA "Event Data"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/sv-SE.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/sv-SE.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Dator"
IDS_COLUMNEVENTDATA "Händelsedata"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/lang/uk-UA.rc [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/lang/uk-UA.rc [iso-8859-1] Sun May
1 18:47:13 2011
@@ -115,3 +115,9 @@
IDS_COLUMNCOMPUTER "Êîìï'þòåð"
IDS_COLUMNEVENTDATA "Äàí³ ïî䳿"
END
+
+STRINGTABLE
+BEGIN
+ IDS_NONE "None"
+ IDS_NOT_AVAILABLE "N/A"
+END
Modified: trunk/reactos/base/applications/mscutils/eventvwr/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/resource.h [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/resource.h [iso-8859-1] Sun May 1
18:47:13 2011
@@ -64,3 +64,6 @@
#define IDS_COLUMNCOMPUTER 307
#define IDS_COLUMNEVENTDATA 308
+#define IDS_NONE 320
+#define IDS_NOT_AVAILABLE 321
+