From: Peter Eisentraut Date: Tue, 28 Nov 2006 12:53:44 +0000 (+0000) Subject: Add workaround for localizing May and abbreviated May differently. Idea X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=e30dd8e06ee5d272553348113a253ea2012d8040;p=users%2Fbernd%2Fpostgres.git Add workaround for localizing May and abbreviated May differently. Idea of Dennis Björklund. --- diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 0f78a0b6dd..5209af2224 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -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");