Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

{html_select_date} i ruskaya local daty ???

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian
View previous topic :: View next topic  
Author Message
DmitryMB
Smarty n00b


Joined: 30 May 2012
Posts: 1

PostPosted: Wed May 30, 2012 11:12 pm    Post subject: {html_select_date} i ruskaya local daty ??? Reply with quote

Как вывести дату в локале ru_RU?
Те чтоб в html генерировалось не January а Январь
Back to top
View user's profile Send private message
ZeRoLeVeL
Smarty Rookie


Joined: 13 May 2014
Posts: 6

PostPosted: Tue May 13, 2014 12:20 pm    Post subject: Reply with quote

Сделай у себя в коде любой массив с названиями как тебе надо, например:
Code:
$arr_rusmonth = array(1 =>'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь');

и добавь это в шаблон
Code:
$tpl->assign('month_names', $arr_rusmonth );
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Russian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP