CRM 2011 - 导出翻译问题 - 功能区中的 LocLabels 问题

发布于 2024-12-16 01:21:56 字数 2866 浏览 5 评论 0原文

我最近在导出实体的翻译时遇到一些问题。起初我认为问题不仅仅在于功能区。但经过一些测试,我发现是我的 LocLabels 导致了问题。按钮本身(+内嵌翻译)工作正常!我在 Ribbon-XML 中定义了 3 种使用的语言(“荷兰语”、“法语”和“英语”),并且所有内容似乎都已正确翻译。但是,当我想导出该特定实体的翻译时,似乎什么也没有发生...

如果我不使用“$LocLabels:”,而只使用纯文本,则一切似乎都有效,并且我可以导出该实体的翻译。

XML 如下所示:

CustomAction XML snippet

  <CustomAction Id="Sample.Grid.ave_student.CustomGroup.CustomAction" Location="Mscrm.HomepageGrid.ave_student.MainTab.Groups._children" Sequence="115">
    <CommandUIDefinition>
      <Group Id="Sample.Grid.ave_student.CustomGroup.Group" Command="Sample.Grid.ave_student.CustomGroup.Command" Title="$LocLabels:Sample.Grid.ave_student.CustomGroup.Title" Sequence="85" Template="Mscrm.Templates.3.3">
        <Controls Id="Sample.Grid.ave_student.CustomGroup.Controls">
          <Button Id="Sample.Grid.ave_student.CustomGroup.Button.A" Command="Sample.Grid.ave_student.CustomGroup.Button.A.Command" Sequence="10" LabelText="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.LabelText" ToolTipTitle="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.LabelText" ToolTipDescription="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.Description" TemplateAlias="o1" Image16by16="$webresource:ave_eid16x16" Image32by32="$webresource:ave_eid32x32" />
        </Controls>
      </Group>
    </CommandUIDefinition>
  </CustomAction>

LocLabels XML snippet

<LocLabels>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Title">
    <Titles>
      <Title languagecode="1043" description="HC" />
      <Title languagecode="1036" description="HC" />
  <Title languagecode="1033" description="HC" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.Description">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
  <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.LabelText">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
  <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.ToolTipDescription">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
      <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
<LocLabels>

有人遇到与我们相同的问题吗?

I recently have some problems when exporting the translations of an entity. At first I thought that the problem was lying much deeper than just the ribbon.. But with some testing, I found out that it were my LocLabels that caused the problem. The buttons itself (+ in-line translations) are working correctly! I define the 3 used languages ("Dutch", "French" and "English") in my Ribbon-XML and everything seems to be translated correctly. But when I want to export the translations for that particular entity, nothing seems to happen...

If instead of "$LocLabels:", I just use plain text, everything seems to work and I can export the translations for that entity.

The XML looks as following:

CustomAction XML snippet

  <CustomAction Id="Sample.Grid.ave_student.CustomGroup.CustomAction" Location="Mscrm.HomepageGrid.ave_student.MainTab.Groups._children" Sequence="115">
    <CommandUIDefinition>
      <Group Id="Sample.Grid.ave_student.CustomGroup.Group" Command="Sample.Grid.ave_student.CustomGroup.Command" Title="$LocLabels:Sample.Grid.ave_student.CustomGroup.Title" Sequence="85" Template="Mscrm.Templates.3.3">
        <Controls Id="Sample.Grid.ave_student.CustomGroup.Controls">
          <Button Id="Sample.Grid.ave_student.CustomGroup.Button.A" Command="Sample.Grid.ave_student.CustomGroup.Button.A.Command" Sequence="10" LabelText="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.LabelText" ToolTipTitle="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.LabelText" ToolTipDescription="$LocLabels:Sample.Grid.ave_student.CustomGroup.Button.A.Description" TemplateAlias="o1" Image16by16="$webresource:ave_eid16x16" Image32by32="$webresource:ave_eid32x32" />
        </Controls>
      </Group>
    </CommandUIDefinition>
  </CustomAction>

LocLabels XML snippet

<LocLabels>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Title">
    <Titles>
      <Title languagecode="1043" description="HC" />
      <Title languagecode="1036" description="HC" />
  <Title languagecode="1033" description="HC" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.Description">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
  <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.LabelText">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
  <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
  <LocLabel Id="Sample.Grid.ave_student.CustomGroup.Button.A.ToolTipDescription">
    <Titles>
      <Title languagecode="1043" description="Read eID" />
      <Title languagecode="1036" description="Read eID" />
      <Title languagecode="1033" description="Read eID" />
    </Titles>
  </LocLabel>
<LocLabels>

Is there someone who encountered the same problems as us?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

柠檬心 2024-12-23 01:21:56

我找到了解决这个问题的方法。导致该问题的是托管解决方案中的特定“Loclabels”。由于某种原因,托管解决方案的位置标签输入到我正常的实体“自定义”中,这就是我无法导出翻译的原因。它给了我一个“重复”翻译错误。删除 loclabel 后,我可以导出/导入翻译。

I found a solution for this problem. It were particular "Loclabels" from a managed solutions that caused the problem. For some reason the loclabels of the managed solution entered in my normal "customization" of the entity and that's why I couldn't export the translations. It gave me an "Duplicate" translation error. After removing the loclabel, I was able to export/import the translations.

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