[IPCONFIG] Replace some DNS related strings by resources

This commit is contained in:
Eric Kohl 2023-07-01 15:32:47 +02:00
parent edd332c952
commit 4328b858e5
21 changed files with 166 additions and 4 deletions

View file

@ -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;
}

View file

@ -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 */

View file

@ -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

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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"

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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