数据库的 Globalize3 模块翻译
我遇到了 Globalize3 的问题,我构建了一个模块来在首选项用户的管理中添加翻译,
我按她的 ID 和区域设置显示每个翻译。但我不明白为什么当我想显示页面时没有定义区域设置。
更好展示的要点:https://gist.github.com/266562670cd8dab28548#gistcomment-43681
感谢您的帮助
已修复。
I got an issue with Globalize3, i have build a module to add translations in Admin for Preferences User
I display each translation by her ID and her locale. But i don't understand why the locale is not define when i want to display the page.
The gist for better show : https://gist.github.com/266562670cd8dab28548#gistcomment-43681
Thanks for your help
Fixed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看了在偏好主题翻译的更新操作中获得的参数(只需提高 params[:preference_topic_translation])。您会注意到您可能有
preference_topic_option_translation
作为模型中不存在的属性之一。您需要更新表格中的第 12 行:
它应为:
If you have a look at the params you are getting in the update action for the perference topic translation (just raise params[:preference_topic_translation]). You'll notice you probably have
preference_topic_option_translation
coming through as one of the attributes which doesn't exist on the model.You need to update line #12 in the form:
It should read: