Answer the question
In order to leave comments, you need to log in
Ruby on Rails: localization of month and day names not working
Added translations of months and days to
the localization file config/locales/ru.yml
ru:
date:
formats:
default: "%d-%m-%Y"
short: "%b %d"
long: "%B %d, %Y"
day_names: [Воскресенье, Понедельник, Вторник, Среда, Четверг, Пятница, Суббота]
abbr_day_names: [Вос, Пон, Вт, Ср, Чет, Пят, Суб]
month_names: [~, Январь, Февраль, Март, Апрель, Маи, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь]
abbr_month_names: [~, Янв, Фев, Мар, Апр, Маи, Июн, Июл, Авг, Сен, Окт, Ноя, Дек]
time:
formats:
default: "%d-%m-%Y %H:%M:%S"
short: "%d %B %H:%M"
long: "%B %d, %Y %H:%M"
time now: <%= l Time.now, :format => :short %>
Answer the question
In order to leave comments, you need to log in
sl_bug, I already had the ru.date translation in the localization file, well, mine :)))))) Thank you all for your help and enlightenment :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question