[tz] [PATCH 1/2] I18nize zdump a bit better
Paul Eggert
eggert at cs.ucla.edu
Wed Jan 26 19:06:07 UTC 2022
* zdump.c (sumsize, show): Translate diagnostics that
were mistakenly untranslated.
---
zdump.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/zdump.c b/zdump.c
index be8ac30..dc3dca8 100644
--- a/zdump.c
+++ b/zdump.c
@@ -146,7 +146,7 @@ sumsize(size_t a, size_t b)
{
size_t sum = a + b;
if (sum < a) {
- fprintf(stderr, "%s: size overflow\n", progname);
+ fprintf(stderr, _("%s: size overflow\n"), progname);
exit(EXIT_FAILURE);
}
return sum;
@@ -813,7 +813,7 @@ show(timezone_t tz, char *zone, time_t t, bool v)
gmtmp = my_gmtime_r(&t, &gmtm);
if (gmtmp == NULL) {
printf(tformat(), t);
- printf(" (gmtime failed)");
+ printf(_(" (gmtime failed)"));
} else {
dumptime(gmtmp);
printf(" UT");
@@ -823,7 +823,7 @@ show(timezone_t tz, char *zone, time_t t, bool v)
tmp = my_localtime_rz(tz, &t, &tm);
if (tmp == NULL) {
printf(tformat(), t);
- printf(" (localtime failed)");
+ printf(_(" (localtime failed)"));
} else {
dumptime(tmp);
if (*abbr(tmp) != '\0')
--
2.34.1
More information about the tz
mailing list