diff --git a/SOURCES/0001-Added-Russian-translation.patch b/SOURCES/0001-Added-Russian-translation.patch index 7a94854..5186810 100644 --- a/SOURCES/0001-Added-Russian-translation.patch +++ b/SOURCES/0001-Added-Russian-translation.patch @@ -1,14 +1,51 @@ -From 8a4f35f1b38d57a8585fd91bf3a7d23ab8ca98e1 Mon Sep 17 00:00:00 2001 +From 288fc8681cd3904b64f91bcce00fce56d92cfc5a Mon Sep 17 00:00:00 2001 From: Sergey Cherevko -Date: Thu, 25 Apr 2024 18:09:50 +0300 +Date: Sat, 27 Apr 2024 11:17:14 +0300 Subject: [PATCH] Added Russian translation --- - po/LINGUAS | 1 + - po/ru.po | 1764 ++++++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 1765 insertions(+) + ping/ping_common.c | 11 +- + po/LINGUAS | 1 + + po/ru.po | 1773 ++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 1779 insertions(+), 6 deletions(-) create mode 100644 po/ru.po +diff --git a/ping/ping_common.c b/ping/ping_common.c +index 33e6003..8137b26 100644 +--- a/ping/ping_common.c ++++ b/ping/ping_common.c +@@ -42,7 +42,7 @@ static uid_t euid; + + void usage(void) + { +- fprintf(stderr, ++ fprintf(stderr, _( + "\nUsage\n" + " ping [options] \n" + "\nOptions:\n" +@@ -83,8 +83,7 @@ void usage(void) + " -6 use IPv6\n" + " -F define flow label, default is random\n" + " -N use icmp6 node info query, try as argument\n" +- "\nFor more details see ping(8).\n" +- ); ++ "\nFor more details see ping(8).\n")); + exit(2); + } + +@@ -886,9 +885,9 @@ int finish(struct ping_rts *rts) + printf(_(", +%ld errors"), rts->nerrors); + + if (rts->ntransmitted) { +-#ifdef USE_IDN +- setlocale(LC_ALL, "C"); +-#endif ++//#ifdef USE_IDN ++// setlocale(LC_ALL, "C"); ++//#endif + printf(_(", %g%% packet loss"), + (float)((((long long)(rts->ntransmitted - rts->nreceived)) * 100.0) / rts->ntransmitted)); + printf(_(", time %ldms"), 1000 * tv.tv_sec + (tv.tv_nsec + 500000) / 1000000); diff --git a/po/LINGUAS b/po/LINGUAS index 65fbf6a..b02de47 100644 --- a/po/LINGUAS @@ -23,10 +60,10 @@ index 65fbf6a..b02de47 100644 zh_CN diff --git a/po/ru.po b/po/ru.po new file mode 100644 -index 0000000..5ae6831 +index 0000000..f5027a7 --- /dev/null +++ b/po/ru.po -@@ -0,0 +1,1764 @@ +@@ -0,0 +1,1773 @@ +# Russian translation for iputils +# Copyright (c) 2020 iputils developers +# This file is distributed under the same license as the iputils package. @@ -113,9 +150,11 @@ index 0000000..5ae6831 +#: ping/ping_common.c:58 +#, c-format +msgid "" -+"\nUsage\n" ++"\n" ++"Usage\n" +" ping [options] \n" -+"\nOptions:\n" ++"\n" ++"Options:\n" +" dns name or ip address\n" +" -a use audible ping\n" +" -A use adaptive ping\n" @@ -128,7 +167,8 @@ index 0000000..5ae6831 +" -I either interface name or address\n" +" -i seconds between sending each packet\n" +" -L suppress loopback of multicast packets\n" -+" -l send number of packages while waiting replies\n" ++" -l send number of packages while waiting " ++"replies\n" +" -m tag the packets going out\n" +" -M define mtu discovery, can be one of \n" +" -n no dns name resolution\n" @@ -144,20 +184,26 @@ index 0000000..5ae6831 +" -V print version and exit\n" +" -w reply wait in seconds\n" +" -W time to wait for response\n" -+"\nIPv4 options:\n" ++"\n" ++"IPv4 options:\n" +" -4 use IPv4\n" +" -b allow pinging broadcast\n" +" -R record route\n" -+" -T define timestamp, can be one of \n" -+"\nIPv6 options:\n" ++" -T define timestamp, can be one of \n" ++"\n" ++"IPv6 options:\n" +" -6 use IPv6\n" +" -F define flow label, default is random\n" +" -N use icmp6 node info query, try as argument\n" -+"\nFor more details see ping(8).\n" ++"\n" ++"For more details see ping(8).\n" +msgstr "" -+"\nИспользование\n" ++"\n" ++"Использование\n" +" ping [options] \n" -+"\nОпции:\n" ++"\n" ++"Опции:\n" +" DNS-имя или IP-адрес\n" +" -a использовать звуковой сигнал\n" +" -A использовать адаптивный пинг\n" @@ -544,7 +590,7 @@ index 0000000..5ae6831 +#: ping/ping_common.c:800 +#, c-format +msgid "%d bytes from %s:" -+msgstr "%d байт из %s:" ++msgstr "%d байт от %s:" + +#: arping.c:290 +#, c-format diff --git a/SPECS/iputils.spec b/SPECS/iputils.spec index c6c670a..f1e6b62 100644 --- a/SPECS/iputils.spec +++ b/SPECS/iputils.spec @@ -3,7 +3,7 @@ Summary: Network monitoring tools including ping Name: iputils Version: 20210202 -Release: 9%{?dist}.inferit +Release: 9%{?dist}.inferit.1 # some parts are under the original BSD (ping.c) # some are under GPLv2+ (tracepath.c) License: BSD and GPLv2+ @@ -132,6 +132,9 @@ install -cp ifenslave.8 ${RPM_BUILD_ROOT}%{_mandir}/man8/ %attr(644,root,root) %{_mandir}/man8/ninfod.8.gz %changelog +* Sat Apr 27 2024 Sergey Cherevko - 20210202-9.inferit.1 +- Fixed translation + * Thu Apr 25 2024 Sergey Cherevko - 20210202-9.inferit - Added Russian translation - Rebuilt for MSVSphere 9.4-beta