Add workaround for localizing May and abbreviated May differently. Idea
of Dennis Björklund.
This commit is contained in:
parent
09309df9a2
commit
b64d2d2133
@ -1,7 +1,7 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
* formatting.c
|
* 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
|
* Portions Copyright (c) 1999-2006, PostgreSQL Global Development Group
|
||||||
@ -163,7 +163,6 @@ struct FormatNode
|
|||||||
|
|
||||||
/* ----------
|
/* ----------
|
||||||
* Full months
|
* Full months
|
||||||
* This needs to be NLS-localized someday.
|
|
||||||
* ----------
|
* ----------
|
||||||
*/
|
*/
|
||||||
static char *months_full[] = {
|
static char *months_full[] = {
|
||||||
@ -2928,7 +2927,13 @@ localize_month(int index)
|
|||||||
m = _("Apr");
|
m = _("Apr");
|
||||||
break;
|
break;
|
||||||
case 4:
|
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;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
m = _("Jun");
|
m = _("Jun");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user