https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4328b858e50fc30c283a3…
commit 4328b858e50fc30c283a3cd80dd202fa7b794c6e
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Jul 1 15:32:47 2023 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Jul 1 15:32:47 2023 +0200
[IPCONFIG] Replace some DNS related strings by resources
---
base/applications/network/ipconfig/ipconfig.c | 11 ++++++++---
base/applications/network/ipconfig/lang/bg-BG.rc | 8 ++++++++
base/applications/network/ipconfig/lang/de-DE.rc | 8 ++++++++
base/applications/network/ipconfig/lang/el-GR.rc | 8 ++++++++
base/applications/network/ipconfig/lang/en-US.rc | 8 ++++++++
base/applications/network/ipconfig/lang/es-ES.rc | 8 ++++++++
base/applications/network/ipconfig/lang/fr-FR.rc | 8 ++++++++
base/applications/network/ipconfig/lang/id-ID.rc | 8 ++++++++
base/applications/network/ipconfig/lang/it-IT.rc | 8 ++++++++
base/applications/network/ipconfig/lang/no-NO.rc | 8 ++++++++
base/applications/network/ipconfig/lang/pl-PL.rc | 8 ++++++++
base/applications/network/ipconfig/lang/ro-RO.rc | 8 ++++++++
base/applications/network/ipconfig/lang/ru-RU.rc | 8 ++++++++
base/applications/network/ipconfig/lang/sk-SK.rc | 8 ++++++++
base/applications/network/ipconfig/lang/sq-AL.rc | 8 ++++++++
base/applications/network/ipconfig/lang/sv-SE.rc | 8 ++++++++
base/applications/network/ipconfig/lang/tr-TR.rc | 8 ++++++++
base/applications/network/ipconfig/lang/uk-UA.rc | 8 ++++++++
base/applications/network/ipconfig/lang/zh-CN.rc | 8 ++++++++
base/applications/network/ipconfig/lang/zh-TW.rc | 8 ++++++++
base/applications/network/ipconfig/resource.h | 7 ++++++-
21 files changed, 166 insertions(+), 4 deletions(-)
diff --git a/base/applications/network/ipconfig/ipconfig.c
b/base/applications/network/ipconfig/ipconfig.c
index a3db75726eb..43c7b89a531 100644
--- a/base/applications/network/ipconfig/ipconfig.c
+++ b/base/applications/network/ipconfig/ipconfig.c
@@ -927,9 +927,14 @@ FlushDns(VOID)
ConResPrintf(StdOut, IDS_HEADER);
if (DnsFlushResolverCache())
- _tprintf(_T("The DNS Resolver Cache has been deleted.\n"));
+ {
+ ConResPrintf(StdOut, IDS_DNSFLUSHSUCCESS);
+ }
else
+ {
+ ConResPrintf(StdOut, IDS_DNSFLUSHERROR);
DoFormatMessage(GetLastError());
+ }
}
VOID
@@ -965,11 +970,11 @@ DisplayDnsRecord(
{
if (Status == DNS_ERROR_RCODE_NAME_ERROR)
{
- _tprintf(_T("\tName does not exist\n\n"));
+ ConResPrintf(StdOut, IDS_DNSNONAME);
}
else if (Status == DNS_INFO_NO_RECORDS)
{
- _tprintf(_T("\tNo records of type %s\n\n"),
GetRecordTypeName(wType));
+ ConResPrintf(StdOut, IDS_DNSNORECORD, GetRecordTypeName(wType));
}
return;
}
diff --git a/base/applications/network/ipconfig/lang/bg-BG.rc
b/base/applications/network/ipconfig/lang/bg-BG.rc
index ebcbc711495..a91a4b04c10 100644
--- a/base/applications/network/ipconfig/lang/bg-BG.rc
+++ b/base/applications/network/ipconfig/lang/bg-BG.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/de-DE.rc
b/base/applications/network/ipconfig/lang/de-DE.rc
index 398c8aa8ecd..3ac1118752e 100644
--- a/base/applications/network/ipconfig/lang/de-DE.rc
+++ b/base/applications/network/ipconfig/lang/de-DE.rc
@@ -81,6 +81,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV-Eintrag . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tKeine Einträge vom Typ %ls\n\n"
+ IDS_DNSNONAME "\tName existiert nicht.\n\n"
+ IDS_DNSFLUSHERROR "Der DNS-Auflösungscache konnte nicht geleert werden:
"
+ IDS_DNSFLUSHSUCCESS "Der DNS-Auflösungscache wurde geleert.\n"
+END
+
STRINGTABLE
BEGIN
IDS_USAGE
diff --git a/base/applications/network/ipconfig/lang/el-GR.rc
b/base/applications/network/ipconfig/lang/el-GR.rc
index 64da46ab416..2278736e48d 100644
--- a/base/applications/network/ipconfig/lang/el-GR.rc
+++ b/base/applications/network/ipconfig/lang/el-GR.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/en-US.rc
b/base/applications/network/ipconfig/lang/en-US.rc
index b94319498f3..454e0ff118c 100644
--- a/base/applications/network/ipconfig/lang/en-US.rc
+++ b/base/applications/network/ipconfig/lang/en-US.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/es-ES.rc
b/base/applications/network/ipconfig/lang/es-ES.rc
index ddf0d3dfcc8..a1ee73c5a51 100644
--- a/base/applications/network/ipconfig/lang/es-ES.rc
+++ b/base/applications/network/ipconfig/lang/es-ES.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/fr-FR.rc
b/base/applications/network/ipconfig/lang/fr-FR.rc
index e5cc7ffa209..fdc4dbc2969 100644
--- a/base/applications/network/ipconfig/lang/fr-FR.rc
+++ b/base/applications/network/ipconfig/lang/fr-FR.rc
@@ -81,6 +81,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/id-ID.rc
b/base/applications/network/ipconfig/lang/id-ID.rc
index 089c52a8926..728c47ade57 100644
--- a/base/applications/network/ipconfig/lang/id-ID.rc
+++ b/base/applications/network/ipconfig/lang/id-ID.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/it-IT.rc
b/base/applications/network/ipconfig/lang/it-IT.rc
index fe17082f6e6..0e4e9e1c0e9 100644
--- a/base/applications/network/ipconfig/lang/it-IT.rc
+++ b/base/applications/network/ipconfig/lang/it-IT.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/no-NO.rc
b/base/applications/network/ipconfig/lang/no-NO.rc
index 3421238c16f..c117bc3407b 100644
--- a/base/applications/network/ipconfig/lang/no-NO.rc
+++ b/base/applications/network/ipconfig/lang/no-NO.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/pl-PL.rc
b/base/applications/network/ipconfig/lang/pl-PL.rc
index ecb98ed6201..920683fa194 100644
--- a/base/applications/network/ipconfig/lang/pl-PL.rc
+++ b/base/applications/network/ipconfig/lang/pl-PL.rc
@@ -58,6 +58,14 @@ BEGIN
IDS_WIFI "\nKarta bezprzewodowej sieci LAN: %ls\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
IDS_DNSNAME "\t%ls\n"
diff --git a/base/applications/network/ipconfig/lang/ro-RO.rc
b/base/applications/network/ipconfig/lang/ro-RO.rc
index 7295b605bfa..75f99443de1 100644
--- a/base/applications/network/ipconfig/lang/ro-RO.rc
+++ b/base/applications/network/ipconfig/lang/ro-RO.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tÎnregistrarea SRV . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/ru-RU.rc
b/base/applications/network/ipconfig/lang/ru-RU.rc
index de83c309f37..ad13270a593 100644
--- a/base/applications/network/ipconfig/lang/ru-RU.rc
+++ b/base/applications/network/ipconfig/lang/ru-RU.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV-запись . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/sk-SK.rc
b/base/applications/network/ipconfig/lang/sk-SK.rc
index d42a9aa4e90..3c50220c492 100644
--- a/base/applications/network/ipconfig/lang/sk-SK.rc
+++ b/base/applications/network/ipconfig/lang/sk-SK.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/sq-AL.rc
b/base/applications/network/ipconfig/lang/sq-AL.rc
index f50a4aa7416..9c2f193c1d0 100644
--- a/base/applications/network/ipconfig/lang/sq-AL.rc
+++ b/base/applications/network/ipconfig/lang/sq-AL.rc
@@ -79,6 +79,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/sv-SE.rc
b/base/applications/network/ipconfig/lang/sv-SE.rc
index d2e3de4ce88..379b5b7e01e 100644
--- a/base/applications/network/ipconfig/lang/sv-SE.rc
+++ b/base/applications/network/ipconfig/lang/sv-SE.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/tr-TR.rc
b/base/applications/network/ipconfig/lang/tr-TR.rc
index 1e917493a6b..bddb634ab9e 100644
--- a/base/applications/network/ipconfig/lang/tr-TR.rc
+++ b/base/applications/network/ipconfig/lang/tr-TR.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/uk-UA.rc
b/base/applications/network/ipconfig/lang/uk-UA.rc
index 1812be9d3d1..d75d697cef3 100644
--- a/base/applications/network/ipconfig/lang/uk-UA.rc
+++ b/base/applications/network/ipconfig/lang/uk-UA.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/zh-CN.rc
b/base/applications/network/ipconfig/lang/zh-CN.rc
index 98460251aff..a976f0e6af3 100644
--- a/base/applications/network/ipconfig/lang/zh-CN.rc
+++ b/base/applications/network/ipconfig/lang/zh-CN.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/lang/zh-TW.rc
b/base/applications/network/ipconfig/lang/zh-TW.rc
index afc38e013fa..53825808d57 100644
--- a/base/applications/network/ipconfig/lang/zh-TW.rc
+++ b/base/applications/network/ipconfig/lang/zh-TW.rc
@@ -80,6 +80,14 @@ BEGIN
IDS_DNSTYPESRV "\tSRV Record. . . . . . : %ls\n\t
%hu\n\t %hu\n\t %hu\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DNSNORECORD "\tNo records of type %ls\n\n"
+ IDS_DNSNONAME "\tName does not exist.\n\n"
+ IDS_DNSFLUSHERROR "Could not flush the DNS Resolver Cache: "
+ IDS_DNSFLUSHSUCCESS "Successfully flushed the DNS Resolver Cache.\n"
+END
+
STRINGTABLE
BEGIN
/* Please keep the spacing/formatting as per En.rc when translating */
diff --git a/base/applications/network/ipconfig/resource.h
b/base/applications/network/ipconfig/resource.h
index 216757465a4..5b356fa5f3c 100644
--- a/base/applications/network/ipconfig/resource.h
+++ b/base/applications/network/ipconfig/resource.h
@@ -65,4 +65,9 @@
#define IDS_DNSTYPEATMA 178
#define IDS_DNSTYPESRV 179
-#define IDS_USAGE 180
+#define IDS_USAGE 180
+
+#define IDS_DNSNORECORD 200
+#define IDS_DNSNONAME 201
+#define IDS_DNSFLUSHERROR 202
+#define IDS_DNSFLUSHSUCCESS 203