[NETSTAT] pragma once, reorder, fix pl-PL.rc (#5407)

- add a pragma once into the header
- order -o options alphabetically also for the global variables, not only in usage-help
- pl-PL.rc: fix wrong alignment of IDS_ETHERNET_THEADER and its data
- pl-PL.rc: also don't pad the data with 2 spaces here in the beginning, which
            we don't do in any other locale, and MS netstat also doesn't do that here.
            pl-PL.rc most likely got this wrong because it was created while en-US wasn't finished yet.
This commit is contained in:
Joachim Henze 2023-07-06 18:19:30 +02:00 committed by GitHub
parent a9580fb95c
commit c1245a897f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -95,13 +95,13 @@ END
STRINGTABLE
BEGIN
IDS_ETHERNET_INTERFACE_STAT "Statystyki interfejsu\n\n"
IDS_ETHERNET_THEADER " Odebrano Wysłano\n\n"
IDS_ETHERNET_BYTES " Bajty %14lu %15lu\n"
IDS_ETHERNET_UNICAST_PACKET " Pakiety emisji pojedynczej %14lu %15lu\n"
IDS_ETHERNET_NON_UNICAST_PACKET " Pakiety inne niż emisji pojedynczej %14lu %15lu\n"
IDS_ETHERNET_DISCARD " Odrzucone %14lu %15lu\n"
IDS_ETHERNET_ERROR " Błędy %14lu %15lu\n"
IDS_ETHERNET_UNKNOWN " Nieznane protokoły %14lu\n"
IDS_ETHERNET_THEADER " Odebrano Wysłano\n\n"
IDS_ETHERNET_BYTES "Bajty %14lu %15lu\n"
IDS_ETHERNET_UNICAST_PACKET "Pakiety emisji pojedynczej %14lu %15lu\n"
IDS_ETHERNET_NON_UNICAST_PACKET "Pakiety inne niż emisji pojedynczej %14lu %15lu\n"
IDS_ETHERNET_DISCARD "Odrzucone %14lu %15lu\n"
IDS_ETHERNET_ERROR "Błędy %14lu %15lu\n"
IDS_ETHERNET_UNKNOWN "Nieznane protokoły %14lu\n"
END
STRINGTABLE

View file

@ -1,3 +1,4 @@
#pragma once
/* Maximum string lengths for ASCII ip address and port names */
#define HOSTNAMELEN 256
@ -10,10 +11,10 @@ BOOL bDoShowAllCons = FALSE; // -a
BOOL bDoShowProcName = FALSE; // -b
BOOL bDoShowEthStats = FALSE; // -e
BOOL bDoShowNumbers = FALSE; // -n
BOOL bDoShowProcessId = FALSE; // -o
BOOL bDoShowProtoCons = FALSE; // -p
BOOL bDoShowRouteTable = FALSE; // -r
BOOL bDoShowProtoStats = FALSE; // -s
BOOL bDoShowProcessId = FALSE; // -o
BOOL bDoDispSeqComp = FALSE; // -v
BOOL bLoopOutput = FALSE; // interval