它看起來像我的語言區域設置在heroku上無法正常工作。Heroku語言區域設置不起作用
On my local mashine : 1. maj
Heroku : 01 May 00:00
我的觀點:
<%= l vind.udtraekkes, :format => :short %>
區域設置:
en:
hello: "Hello world"
views:
pagination:
previous: "« Tilbage"
next: "Næste side »"
# active_support
date:
# See http://sproget.dk/svarbase/SV00000046/ and http://en.wikipedia.org/wiki/Date_formats
# either use traditional (2.10.03, 2. oktober 2003): "%e.%m.%y", "%e. %B %Y"
# or international ISO 8601 format (2003-10-20): "%Y-%m-%d"
# Note: some Windows distributions do not support %e - you may have to use %d instead
formats:
default: "%d.%m.%Y"
short: "%e. %b"
long: "%e. %B %Y"
day_names: [søndag, mandag, tirsdag, onsdag, torsdag, fredag, lørdag]
abbr_day_names: [sø, ma, ti, 'on', to, fr, lø] # Note: unescaped 'on' is parsed as true
month_names: [~, januar, februar, marts, april, maj, juni, juli, august, september, oktober, november, december]
abbr_month_names: [~, jan, feb, mar, apr, maj, jun, jul, aug, sep, okt, nov, dec]
order:
- :day
- :month
- :year
time:
formats:
default: "%e. %B %Y, %H:%M"
short: "%e. %B"
long: "%A, %e. %B %Y, %H:%M"
am: ""
pm: ""
我的問題清楚了嗎? – 2011-03-22 10:08:40