[Drupal] How to display the month in French words.

When trying to print the date with formate_date as below:

<?php
print format_date(time(), $type = 'custom', $format = 'd F Y', $timezone = NULL, $langcode = 'fr');

?> 

 I only can get this result:

 09 March 2011

The word "March" is in English, but not in French. It is not working for me. All results are formatted in English. 

 

Ok, the method i used is corrected. The reason why it still display the english word is that, the language patch is not right! I have to download the language patch and import it in the backend.

Here is the url of the language patch: http://ftp.drupal.org/files/translations/6.x/drupal/ 

 

Have fun with Drupal! 

 

 

posted @ 2011-03-09 11:21  DavidHHuan  阅读(313)  评论(0编辑  收藏  举报