I am kind of lost here for hours, trying to make a translated date format work for my content type(Drupal 7.22). There are the 2 configuration issues:
I want my formated date (say Apr 27) to be wrapped as following:
<span class=date> <span class=month> Apr </span> <span class=day> 27 </span> </span>
Although I create the date format I can't find the way to template it the way I want. The month and date shown in these spans is set when I create a content type (through a custom field populated with the help of date module), and so I should do sth like
<?php echo render($content['field_date']); ?>. Unfortunately this renders the date with a different markup than the one I want and so I believe I have to change sth in a preprocess function.
Say I have a date: Apr 27 and I want it to be in my language (greek) which would be Απρ 27.
I imported the greek http://localize.drupal.org/ successfully and inside this .po I can see
msgid "Apr" msgstr "Απρ"
After a very helpful answer and a good comment below I now understand that translation isn't the way to go, since I only want to change the values of the months, and not translate the whole site. So what I look for is a function to do this.
P.S. I could make 2 seperate questions but I feel that they fit well under the title: configuring date formats. Also I have been trying for hours to find clear(to me at least) solutions and it proved harder than I thought. Can anyone help?