Hi,
i've a problem with month name translation. May is the same in short and long name!
It's the same issue of http://drupal.org/node/306466 for drupal 6

may --> maggio (long version)
may --> mag (short version)

How I can fix it?

Comments

plach’s picture

Component: translation.module » locale.module
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Are you sure this is a core issue? Would you please report in which context the string to translate appear?

ts145nera’s picture

I've created a new date format: D, d M Y
this is the displayed date: Mer, 11 Maggio 2011

If I try to add this date format: D, d F Y
I've the same displayed date (Mer, 11 Maggio 2011)

plach’s picture

Status: Postponed (maintainer needs more info) » Active

Ok, we might want to use different string contexts here.

Damien Tournoud’s picture

plach’s picture

@Damien Tournoud: so it's just a translation issue, right?

ts145nera’s picture

yes, in .po files there's two entry:

msgid "May"
msgstr "Mag"

msgctxt "Long month name"
msgid "May"
msgstr "Maggio"

so I think that always take the second

Gábor Hojtsy’s picture

Status: Active » Closed (cannot reproduce)

Yes, this is already solved in Drupal core, as detailed above by multiple people. Drupal 7 uses contexts, Drupal 6 uses s !long-month-name special prefix on the string.

netdreamer’s picture

Status: Closed (cannot reproduce) » Active

Hi, I confirm that there is still something wrong with the translation of May.

I created a small view that pick a date field and show it using 'M' as date format, then I verified values at the end of function _format_date_callback (includes/common.inc), just before the "return", and got this:

What I got is:

$cache[$langcode][$code][$string]: "Maggio"

$matches: Array (
    [0] => �MMay�
    [1] => M
    [2] => May
)

$options: Array (
    [langcode] => it
)

As you can see, the $options array correctly doesn't contain the ['context'] = 'Long month name', so it should pick the standard short one... but the string that is picked is still the one with the context 'Long month name'!

It happens only for May, because it is the only month with the abbreviated form equal to the long one...

Version: 7.0 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.