[英]I18n::MissingInterpolationArgument with I18n.l
I get this error I18n::MissingInterpolationArgument
when running this code 运行此代码时出现此错误
I18n::MissingInterpolationArgument
<%= l Date.today, :format => :short %>
It has worked before, but now, at Ubuntu, with Rails 2.3.5
and Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
it doesn't work anymore ... 它以前曾经工作过,但现在在Ubuntu上使用
Rails 2.3.5
和Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
不再起作用了...
Anyone to help? 有人帮忙吗?
Okey, got a quickfix for myself. Okey,为自己准备了一个快速修复程序。 Not the way I would have it, but it works
不是我想要的方式,但是它有效
Added this to the en.yml file 将此添加到en.yml文件
date:
formats:
default: "%d.%m.%Y"
short: "%b %e"
long: "%e. %B %Y"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.