silverstripe - silverstripe 4 可翻译模块
问题描述
我正在尝试了解如何使用 SilverStripe4 设置多语言网站。我可以为 SilverStripe3 找到这个: https ://userhelp.silverstripe.org/en/3/optional_features/working_with_translations/about-translatable
但我找不到 SilverStripe 4 的可翻译模块的任何文档。
SilverStripe 4不支持构建多语言网站吗?或者现在有其他方法可以使网站多语言吗?
解决方案
Silverstripe CMS 本身已经可以通过将 i18n 文件添加到您的 mysite 或模块文件夹中的 lang 来进行翻译。
为了通过语言切换、正确链接等为最终用户实现可靠的站点翻译,我建议使用https://github.com/tractorcow/silverstripe-fluent,正如@RobbieAverill 所述。
推荐阅读
- birt - 数据类型为十进制时如何在表格中将空值显示为 N/A
- read-the-docs - readthedocs.org 中的“私人”权限设置 - 它是如何工作的?
- c# - 如何在不复制的情况下剪切原始数组
- swift - 如何手动释放 CMSampleBuffer
- h2o - 是否有可能从 H2O 中的拟合 GLM 模型中获得惩罚似然?
- docker - docker容器中的ActiveMQ Artemis GUI Jolokia访问
- android - 让 MediaPlayer 结束时自动选择一个随机文件
- javascript - 如何允许用户在小数点前输入一定数量的输入值和小数点后的一定数量的输入值
- kotlin - 在 Espresso 中模拟 ViewModel
- python - 从 Bing 中提取 WordPress 网站