Add workaround for localizing May and abbreviated May differently. Idea
authorPeter Eisentraut <[email protected]>
Tue, 28 Nov 2006 12:53:44 +0000 (12:53 +0000)
committerPeter Eisentraut <[email protected]>
Tue, 28 Nov 2006 12:53:44 +0000 (12:53 +0000)
of Dennis Björklund.

src/backend/utils/adt/formatting.c

index 0f78a0b6dd2ac0b68b7f245da1e02e3e95e3394b..5209af22246df7241e2593c14b0f4f158c38dd22 100644 (file)
@@ -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");