[EVENTVWR]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 1 May 2011 18:47:13 +0000 (18:47 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 1 May 2011 18:47:13 +0000 (18:47 +0000)
Replace some hard-coded strings by resource strings.

svn path=/trunk/; revision=51536

18 files changed:
reactos/base/applications/mscutils/eventvwr/eventvwr.c
reactos/base/applications/mscutils/eventvwr/lang/bg-BG.rc
reactos/base/applications/mscutils/eventvwr/lang/de-DE.rc
reactos/base/applications/mscutils/eventvwr/lang/el-GR.rc
reactos/base/applications/mscutils/eventvwr/lang/en-US.rc
reactos/base/applications/mscutils/eventvwr/lang/es-ES.rc
reactos/base/applications/mscutils/eventvwr/lang/fr-FR.rc
reactos/base/applications/mscutils/eventvwr/lang/it-IT.rc
reactos/base/applications/mscutils/eventvwr/lang/ja-JP.rc
reactos/base/applications/mscutils/eventvwr/lang/ko-KR.rc
reactos/base/applications/mscutils/eventvwr/lang/no-NO.rc
reactos/base/applications/mscutils/eventvwr/lang/pl-PL.rc
reactos/base/applications/mscutils/eventvwr/lang/ro-RO.rc
reactos/base/applications/mscutils/eventvwr/lang/ru-RU.rc
reactos/base/applications/mscutils/eventvwr/lang/sk-SK.rc
reactos/base/applications/mscutils/eventvwr/lang/sv-SE.rc
reactos/base/applications/mscutils/eventvwr/lang/uk-UA.rc
reactos/base/applications/mscutils/eventvwr/resource.h

index 658e4c2..7f0a5e5 100644 (file)
@@ -267,7 +267,7 @@ GetEventCategory(IN LPCWSTR KeyName,
             }
             else
             {
-                wcscpy(CategoryName, L"None");
+                LoadStringW(hInst, IDS_NONE, CategoryName, MAX_PATH);
             }
 
             if (hLibrary != NULL)
@@ -281,7 +281,7 @@ GetEventCategory(IN LPCWSTR KeyName,
         }
     }
 
-    wcscpy(CategoryName, L"None");
+    LoadStringW(hInst, IDS_NONE, CategoryName, MAX_PATH);
 
     return FALSE;
 }
@@ -597,9 +597,9 @@ QueryEventMessages(LPWSTR lpMachineName,
 
         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 @@ DisplayEvent(HWND hDlg)
 
         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);
index c8e9e67..638bd57 100644 (file)
@@ -108,3 +108,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Êîìïþòúð"
     IDS_COLUMNEVENTDATA "Äàííè çà ñúáèòèåòî"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 58dada9..a52269f 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Ereignisdaten"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "Keine"
+    IDS_NOT_AVAILABLE "Nicht verfügbar"
+END
index abbd792..48c8aa4 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index fc19d72..396bc14 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 2de3ec3..0bf199f 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computadora"
     IDS_COLUMNEVENTDATA "Datos del evento"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 54ad9ca..2c9eeac 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Ordinateur"
     IDS_COLUMNEVENTDATA "Données"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 6bfa290..3424097 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Dati Evento"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index ffd1e6a..2955290 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index ba1228a..843a231 100644 (file)
@@ -111,3 +111,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 3c6561b..3022d16 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 05c7c25..63a1e6a 100644 (file)
@@ -119,3 +119,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Komputer"
     IDS_COLUMNEVENTDATA "Dane zdarzenia"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 7014f5b..0d70d05 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 59dce43..e2c6cb2 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index a0a6817..8f57f62 100644 (file)
@@ -112,3 +112,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Computer"
     IDS_COLUMNEVENTDATA "Event Data"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 2de7899..7dbd971 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Dator"
     IDS_COLUMNEVENTDATA "Händelsedata"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index 55f31d9..8a703ae 100644 (file)
@@ -115,3 +115,9 @@ BEGIN
     IDS_COLUMNCOMPUTER  "Êîìï'þòåð"
     IDS_COLUMNEVENTDATA "Äàí³ ïî䳿"
 END
+
+STRINGTABLE
+BEGIN
+    IDS_NONE          "None"
+    IDS_NOT_AVAILABLE "N/A"
+END
index b6869b2..93f2a86 100644 (file)
@@ -64,3 +64,6 @@
 #define IDS_COLUMNCOMPUTER              307
 #define IDS_COLUMNEVENTDATA             308
 
+#define IDS_NONE                        320
+#define IDS_NOT_AVAILABLE               321
+