Skip to content

Commit

Permalink
locale mom date
Browse files Browse the repository at this point in the history
  • Loading branch information
ilstar committed Mar 19, 2012
1 parent 12d67cf commit 6ae2b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/order_items/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h2><%= Time.now.strftime("%a %m/%d/%Y") %></h2>
<h2><%= l @mom.created_at, format: :date %></h2>
<br/>
<% if @today_order_items.blank? %>
今天还没有用户订餐
Expand Down
3 changes: 3 additions & 0 deletions config/locales/zh.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
zh-CN:
time:
formats:
date: "%Y年%m月%d日"
nav:
home: 主页
mom: 今日菜单
Expand Down

0 comments on commit 6ae2b45

Please sign in to comment.