I have date 6.2-dev, but I also checked this problem applies with cvs.

I have a type of content that includes a "datetime" field, and that field is set via the popup menus. However, in the "add" and "edit" pages for such contents, the popup menu for "month" is badly created, with the following code:

FebMarAprMagGiuLugAgoSettOttNovDic

you can notice that there is a shift, which adds an empty slot at the end - which however is associated to value "12" - and skips a month: "Gen", Italian abbreviation for January, is missing.

This is all localized in Italian, but the Italian translation itself seems OK, from /translations/date_api.it.po :

#: date_api.module:628
msgid "!month-abbreviation |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec"
msgstr "!month-abbreviation |Gen|Feb|Mar|Apr|Mag|Giu|Lug|Ago|Sett|Ott|Nov|Dic"

Giving the exact steps to reproduce would be quite long... but I did verify that adding a "datetime" field to a new content type it is reproduced.

Comments

toobaz’s picture

Now only I notice the html code was stripped, I'm sorry, here it is:

<div class="date-month"><div class="form-item" id="edit-field-data-0-value-month-wrapper">
 <label for="edit-field-data-0-value-month">Mese: </label>
 <select name="field_data[0][value][month]" class="form-select  date-month" id="edit-field-data-0-value-month" ><option value=""></option><option value="1">Feb</option><option value="2">Mar</option><option value="3">Apr</option><option value="4">Mag</option><option value="5">Giu</option><option value="6">Lug</option><option value="7">Ago</option><option value="8">Sett</option><option value="9">Ott</option><option value="10">Nov</option><option value="11">Dic</option><option value="12" selected="selected"></option></select>

</div>

Notice that months are shifted and the first, "Gen" (="Jan"), is missing totally.

Please feel free to contact me should you need further debugging: toobaz [at] email [dot] it .

toobaz’s picture

Status: Active » Closed (fixed)

The problem was with the Italian translation: a "|" was missing in some old version, and though I updated the module, the old strings in the database were unchanged.