From b64d2d21335f06760bfadc049f2027e464eb722e Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Tue, 28 Nov 2006 12:53:44 +0000
Subject: [PATCH] =?UTF-8?q?Add=20workaround=20for=20localizing=20May=20and?=
 =?UTF-8?q?=20abbreviated=20May=20differently.=20=20Idea=20of=20Dennis=20B?=
 =?UTF-8?q?j=C3=B6rklund.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/backend/utils/adt/formatting.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 5ce975e2fba..2e1a5ac3eb8 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
 /* -----------------------------------------------------------------------
  * formatting.c
  *
- * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.115 2006/11/24 22:25:56 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.116 2006/11/28 12:53:44 petere Exp $
  *
  *
  *	 Portions Copyright (c) 1999-2006, PostgreSQL Global Development Group
@@ -163,7 +163,6 @@ struct FormatNode
 
 /* ----------
  * Full months
- *	This needs to be NLS-localized someday.
  * ----------
  */
 static char *months_full[] = {
@@ -2928,7 +2927,13 @@ localize_month(int index)
 			m = _("Apr");
 			break;
 		case 4:
-			m = _("May");
+			/*------ 
+			  translator: Translate this as the abbreviation of "May".
+			  In English, it is both the full month name and the
+			  abbreviation, so this hack is needed to distinguish
+			  them.  The translation also needs to start with S:,
+			  which will be stripped at run time. */
+			m = _("S:May") + 2;
 			break;
 		case 5:
 			m = _("Jun");
-- 
GitLab