|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
DmitryMB Smarty n00b
Joined: 30 May 2012 Posts: 1
|
Posted: Wed May 30, 2012 11:12 pm Post subject: {html_select_date} i ruskaya local daty ??? |
|
|
Как вывести дату в локале ru_RU?
Те чтоб в html генерировалось не January а Январь |
|
Back to top |
|
ZeRoLeVeL Smarty Rookie
Joined: 13 May 2014 Posts: 6
|
Posted: Tue May 13, 2014 12:20 pm Post subject: |
|
|
Сделай у себя в коде любой массив с названиями как тебе надо, например:
Code: | $arr_rusmonth = array(1 =>'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'); |
и добавь это в шаблон Code: | $tpl->assign('month_names', $arr_rusmonth ); |
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|