如何在 SilverStripe 上添加第二语言(前葡萄牙语)
是否有向 SilverStripe 网站添加第二语言(前葡萄牙语)的明确指南? 如果没有,我已经开始了 - 请参阅此处: http://217.198.108.87/哈姆/wordpress/?page_id=61 但是,一旦成功安装了扩展程序,我就看不到要做什么!
欢迎提出任何建议 - 我会将它们附加到我的安装说明中。 蒂姆
Is there a definitive guide to adding a second language (ex Portuguese) to a SilverStripe website?
If not, I have made a start on it - see here: http://217.198.108.87/hham/wordpress/?page_id=61
however I cannot see what to do once I have successfully installed the extension!
Any suggestions welcome - and I shall append them to my installation instructions.
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定你被困在哪里。
如果您在 _config.php 中添加
Object::add_extension('SiteTree', 'Translatable')
,那么也不要将$extensions
行添加到您的 Page 类中。Page继承自SiteTree。
如果您查看演示站点 (http://demo.silverstripe.org/admin),您应该会看到编辑时的每个页面都应该有一个“翻译”选项卡。
我猜你不明白这个?
请提供有关该问题的更多信息,看看我们是否可以解决它。
另外,试试这个指南?
http://www.ssbits.com /tutorials/2011/using-translatable-to-create-a-simple-multilingual-site
有时,SilverStripe 论坛的响应速度比 StackOverflow 更快,核心 SStr 团队可能会看到你的问题更快。
I'm not quite sure where you're stuck.
If you add
Object::add_extension('SiteTree', 'Translatable')
in your _config.php, then DONT also add the$extensions
line to your Page class.Page inherits from SiteTree.
If you look at the demo site (http://demo.silverstripe.org/admin) you should see that each page when you edit it should have a Translations tab.
I assume you're not getting this?
Please provide some more information about the problem and lets see if we can sort it out.
Also, try this guide?
http://www.ssbits.com/tutorials/2011/using-translatable-to-create-a-simple-multilingual-site
Sometimes the SilverStripe forum is more responsive than StackOverflow, as the core SStr team may see your question more quickly.