Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我玩过 globalize 和 rails 3,但据我所知, globalize 仅适用于 ActiveRecord 实例。我还希望能够翻译数据库中的其他静态页面(例如页眉、页脚、公司详细信息等)。这可能与全球化有关吗?如果没有,请推荐我应该使用的宝石。
我设法使用i18n-active_record做到了这一点
如果您想翻译静态页面部分 - 您可以创建一个新模型(具有全球化翻译)并将其用于存储静态内容(或者只是将您的翻译放入 config/locales 文件夹)