复合C1控制台编辑按钮可用于非翻译数据 [英] Composite C1 console edit button available for non translated data

查看:100
本文介绍了复合C1控制台编辑按钮可用于非翻译数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将Composite C1版本2.1.1与静态C#数据一起使用.此数据是可本地化的(ILocalizedControlled),并显示在数据树的顶部(TreeDefinitions \ GlobalData.xml).用户可以将数据转换为他们选择的语言,但是可以通过某种方式在转换数据之前对其进行编辑".这意味着当他们做错了时(即代替首先选择翻译数据"然后选择编辑",而是直接选择编辑"),翻译后的数据将出现在源语言网站上.这很烦人,因为源数据也会丢失. 似乎在选择数据项时只能使用翻译数据",但是现在显示了四个按钮(翻译数据,编辑,添加和删除).因此,我希望能够更改此行为,但似乎找不到在何处或如何影响此行为.

We are using Composite C1 version 2.1.1 with static C# data. This data is localizable (ILocalizedControlled) and is shown on top of the data tree (TreeDefinitions\GlobalData.xml). Users are able to translate the data to their selected language, but somehow it is possible to "Edit" the data before translating it. This means that when they do it wrong (i.e. in stead of first choosing "Translate Data" and then "Edit", choose "Edit" directly) translated data will appear on the source language site. Which is very annoying because the source data is lost as well. Seems that when choosing a data item only "Translate Data" should be possible, but now four buttons are shown (Translate Data, Edit, Add and Delete). So I would like to be able to change this behavior, but can't seem to find where or how to influence this.

希望任何人都可以提供帮助.

Hope anyone can help.

推荐答案

以某种方式可以在翻译之前编辑"数据.

somehow it is possible to "Edit" the data before translating it.

这是因为在树定义(TreeDefinitions \ GlobalData.xml)中,您明确使用

This is because in your tree definition (TreeDefinitions\GlobalData.xml), you explicitly use EditDataAction, which does what it is supposed to do: allow editing an item using the standard edit workflow.

我建议您创建并使用

I suggest that instead, you create and use a custom workflow for editing items, which might have a logic to allow editing only if the data item is translated in the current language.

我没有为此准备的代码,但是您可以检查自定义工作流程的示例这里.

I don't have a ready-to-use code for that but you can check samples for custom workflows here.

此外,在即将发布的Composite C1版本4.1(当前为beta)中,您无需为静态数据类型创建树定义.它们在开箱即用的C1控制台中可用.并且您可以在那里添加,编辑和删除这些类型的项目,并且本地化类型的翻译"功能可以按预期工作.

Also, in the upcoming version 4.1 of Composite C1 (currently beta), you don't need to create tree definitions for static data types. They are available in the C1 Console out of the box. And you can add, edit and delete items of these types there, and the Translation feature on localized types works as expected.

比较:

通过树定义"显示的项目(您提到的问题)

The item exposed via a Tree Definition (the issue you mentioned)

与静态数据类型"(4.1中的新功能)下可用的相同项目

And the same item available under "Static Datatypes" (a new feature in 4.1)

这篇关于复合C1控制台编辑按钮可用于非翻译数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆