这是这样做的最佳方案吗?

发布于 2024-12-04 09:23:00 字数 228 浏览 2 评论 0原文

我正在尝试实现多语言或双语内容,我注意到以下内容:

  • 从用户配置文件创建内容
  • 更改内容语言过滤器。
  • 使用首选语言更新内容

现在,内容是双语或多语言,这是露天场景,是否还有其他场景可以执行此操作?还有其他方式内联吗?还有其他方法使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枕梦 2024-12-11 09:23:00

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文