php - Drupal 7 date string block not translated to Arabic -



php - Drupal 7 date string block not translated to Arabic -

i have custom block standard arabic content using php input format, , tested below no avail @ windows:

setlocale(lc_all,'ar'); echo iconv('iso-8859-1', 'utf-8', strftime('%b', time())); // output july setlocale(lc_all,'ar'); echo date(t('f')); // output july, can not find string @ admin/config/regional/translate/translate setlocale(lc_all,'ar'); echo utf8_encode(strftime('%b')); // output july

i expected يوليو or equivalent @ arabic.

does have hint standard arabic date?

i ended using http://api.drupal.org/api/drupal/includes--common.inc/function/format_date/7, , resolved problem. no need screw set_locale. don't have translate string, either. love drupal.

php drupal

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -