这是这样做的最佳方案吗?
我正在尝试实现多语言或双语内容,我注意到以下内容:
- 从用户配置文件创建内容
- 更改内容语言过滤器。
- 使用首选语言更新内容
现在,内容是双语或多语言,这是露天场景,是否还有其他场景可以执行此操作?还有其他方式内联吗?还有其他方法使用 Alfresco API 吗?
任何帮助或指导将不胜感激。
谢谢。 穆罕默德·阿米尔
I'm trying to implement the multi language or bilingual content and i notice the follwoing:
- create a content
- change content language filter from user profile.
- update content with the preferred language
Now, the content is bilingual or muli language this is the alfresco scenario, is there any other scenario for doing this ? is there any other way inline ? is there any other way using Alfresco API ?
Any help or guidance will be highly appreciated.
Thanks.
Mohammed amr
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
API 方面,这稍微取决于您想要做什么。
一种选择是将属性定义为“多语言”,然后设置多个值(每个区域设置一个值)。有关建模和使用的详细信息,请参阅 Alfresco wiki 上的多语言文档支持。
或者,您可以为每种语言设置一个节点,并将它们作为翻译链接在一起。这是由多语言内容提供的服务
如果您想在 UI 中将某些内容标记为翻译,请在资源管理器中转到节点的文档详细信息。在右侧,点击“制作多语言”,然后指定它所使用的语言。然后您可以添加它的翻译为您想要的其他语言。
API wise, it depends slightly on what you're trying to do.
One option is to define properties to be Multilingual, and then set multiple values (one value per locale). See Multilingual Document Support on the Alfresco wiki for details of the modelling and use of this.
Alternately, you can have one node per language, and link them together as translations. This is provided by the Multilingual Content Service
If you want to mark something as a translation in the UI, then in Explorer go to the document details of a node. On the right hand side, hit "Make Multilingual", and then specify the language it's in. You can then add translations of it for the additional languages you want for it.