pg_isready: Missing translation macros.

Started by Mats Erik Anderssonabout 11 years ago2 messages
#1Mats Erik Andersson
bsd@gisladisker.se

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Fujii Masao
masao.fujii@gmail.com
In reply to: Mats Erik Andersson (#1)
Re: pg_isready: Missing translation macros.

On Thu, Nov 27, 2014 at 9:32 PM, Mats Erik Andersson <bsd@gisladisker.se> wrote:

Hello there,

the text response of pg_isready is hard coded in English.
These short snippets really ought to be localized as well.

Thanks for the patch! Committed.

Regards,

--
Fujii Masao

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers