Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb64d2d2

Browse files
committed
Add workaround for localizing May and abbreviated May differently. Idea
of Dennis Björklund.
1 parent09309df commitb64d2d2

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
staticchar*months_full[]= {
@@ -2928,7 +2927,13 @@ localize_month(int index)
29282927
m=_("Apr");
29292928
break;
29302929
case4:
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
case5:
29342939
m=_("Jun");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp