Skip to content

Commit b64d2d2

Browse files
committed
Add workaround for localizing May and abbreviated May differently. Idea
of Dennis Björklund.
1 parent 09309df commit b64d2d2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.115 2006/11/24 22:25:56 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.116 2006/11/28 12:53:44 petere Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2006, PostgreSQL Global Development Group
@@ -163,7 +163,6 @@ struct FormatNode
163163

164164
/* ----------
165165
* Full months
166-
* This needs to be NLS-localized someday.
167166
* ----------
168167
*/
169168
static char *months_full[] = {
@@ -2928,7 +2927,13 @@ localize_month(int index)
29282927
m = _("Apr");
29292928
break;
29302929
case 4:
2931-
m = _("May");
2930+
/*------
2931+
translator: Translate this as the abbreviation of "May".
2932+
In English, it is both the full month name and the
2933+
abbreviation, so this hack is needed to distinguish
2934+
them. The translation also needs to start with S:,
2935+
which will be stripped at run time. */
2936+
m = _("S:May") + 2;
29322937
break;
29332938
case 5:
29342939
m = _("Jun");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy