jnunemaker-validatable - 国际化选项?
我正在通过 mongomapper 使用 jnunemaker-validatable gem,似乎没有出现错误消息通过映射到 Activerecord 的 i18n 文件中使用的标准键 。我不能 100% 确定 jnunemaker-validable 是这里的问题,只是似乎是一个可能的候选者。有人以多语言方式成功使用过这个宝石吗?
谢谢, 汤姆
I am using the jnunemaker-validatable gem by way of mongomapper, and it seems that the error messages are not coming through mapped to the standard keys used in Activerecord's i18n file. I'm not 100% sure that jnunemaker-validatable is the issue here, just seems a likely candidate. Has anyone used this gem in a multi-lingual way with success?
Thanks,
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里找到了答案:
http://groups.google.com/group/mongomapper/browse_thread/thread/ab1a99f472d51847 简短的
回答似乎是,目前它还不是一项功能,但有多种解决方法可以帮助您实现这一目标,而且 Gem 看起来很有前途: com/jmonteiro/mongomapper_i18n" rel="nofollow">https://github.com/jmonteiro/mongomapper_i18n
Found the answer here:
http://groups.google.com/group/mongomapper/browse_thread/thread/ab1a99f472d51847
Short answer appears to be that it's not a feature at this time, but there are various workarounds to get you part of the way there, and a Gem that looks promising: https://github.com/jmonteiro/mongomapper_i18n