From: | Mats Erik Andersson <bsd(at)gisladisker(dot)se> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | pg_isready: Missing translation macros. |
Date: | 2014-11-27 12:32:44 |
Message-ID: | 20141127123244.GC15163@mail.gisladisker.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello there,
the text response of pg_isready is hard coded in English.
These short snippets really ought to be localized as well.
Best regards,
Mats Erik Andersson
From eca5f0d8b72b7ae5508af2850977d999a0f2bca4 Mon Sep 17 00:00:00 2001
From: Mats Erik Andersson <bsd(at)gisladisker(dot)se>
Date: Thu, 27 Nov 2014 11:58:34 +0100
Subject: [PATCH] pg_isready: Missing translation macro.
Mark also response messages as translatable
text snippets.
---
src/bin/scripts/pg_isready.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/bin/scripts/pg_isready.c b/src/bin/scripts/pg_isready.c
index 7707bf1..9da3971 100644
--- a/src/bin/scripts/pg_isready.c
+++ b/src/bin/scripts/pg_isready.c
@@ -196,19 +196,19 @@ main(int argc, char **argv)
switch (rv)
{
case PQPING_OK:
- printf("accepting connections\n");
+ printf(_("accepting connections\n"));
break;
case PQPING_REJECT:
- printf("rejecting connections\n");
+ printf(_("rejecting connections\n"));
break;
case PQPING_NO_RESPONSE:
- printf("no response\n");
+ printf(_("no response\n"));
break;
case PQPING_NO_ATTEMPT:
- printf("no attempt\n");
+ printf(_("no attempt\n"));
break;
default:
- printf("unknown\n");
+ printf(_("unknown response\n"));
}
}
--
1.7.3.2
From | Date | Subject | |
---|---|---|---|
Next Message | Sameer Kumar | 2014-11-27 12:39:12 | Using pg_rewind for differential backup |
Previous Message | Mats Erik Andersson | 2014-11-27 12:28:38 | initdb: Improve error recovery. |