当前位置: 首页 > 知识库问答 >
问题:

使用分类属性值翻译器

夹谷星剑
2023-03-14

我正在尝试在一个反冲上使用分类属性值翻译。我有一些例子,类分类属性翻译工作,但不能使这个工作。

$productCatalog = myCatalog
$classificationCatalog = myClassification

$catalogVersion = catalogversion(catalog(id[default = $productCatalog]), version[default = 'Staged'])[unique = true, default = $productCatalog:Staged]
$clAttrModifiers = system = '$classificationCatalog', version = '1.0', translator = de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator, lang = es
//Q_1001 is the ClassAttributeAssignment ID
$feature1 = @Q_1001 [$clAttrModifiers];
//123012 is the product code and
INSERT_UPDATE  Product; code[unique = true]; $feature1; $catalogVersion
; 123012 ; TEST VALUE;

我得到了这个错误

INSERT_UPDATE  Product;code[unique = true];@Q_1001 [system = 'myClassification', version = '1.0', translator = de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator, lang = es];catalogversion(catalog(id[default = myCatalog]), version[default = 'Staged'])[unique = true, default = myCatalog:Staged];# invalid special value translator class 'de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator' - cannot create due to java.lang.InstantiationException: de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator
,,,,invalid special value translator class 'de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator' - cannot create due to java.lang.InstantiationException: de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeValueTranslator;123012;TEST VALUE;

共有1个答案

督辉
2023-03-14

你必须使用de.hybris.platform.catalog.jalo.classification.impex.分类属性翻译而不是de.hybris.platform.catalog.jalo.classification.impex.分类属性值翻译

 类似资料:
  • 本文向大家介绍Joomla语言翻译类Jtext用法分析,包括了Joomla语言翻译类Jtext用法分析的使用技巧和注意事项,需要的朋友参考一下 本文实例讲述了Joomla语言翻译类Jtext用法。分享给大家供大家参考,具体如下: 基本使用方法: Jtext是Joomla中实现多语言翻译的一个对象,最基本的使用方法如下: 如果是作为变量的话,则直接使用,如: 如果需要显示出来,可以用echo的命令让

  • 我已经实现了ngx-translate Angular-Cli 但是如何翻译HTML组件的属性呢?比如: (上面的代码不起作用) 提前感谢任何帮助提供… JB

  • 本文向大家介绍ThinkPHP调用百度翻译类实现在线翻译,包括了ThinkPHP调用百度翻译类实现在线翻译的使用技巧和注意事项,需要的朋友参考一下 要实现ThinkPHP在线翻译功能,需要先在百度开发者中心注册一个API key,具体实现代码如下: action代码部分: html代码部分:

  • 问题内容: 是否有Python模块可将文本从一种人类语言翻译成另一种语言?我打算使用Python脚本对文本进行前后处理。可以使用其他哪些Python集成方法? 问题答案: 如果您实际上想在两种语言之间翻译文本字符串,例如从英语“ Hello”到西班牙语“ Hola”,则可能需要研究Google Language API 。 由于Google API的免费版本最近被弃用,另一个替代方法是Bing T

  • 您可使用 Google Translate™ 应用程式翻译词组: 按下侧边电源按钮打开应用程式菜单,找到并轻触Translate(翻译)。 您将看到翻译源语言与目标语言这两种语言。您可通过轻触某一语言的名称来更改语言。 轻触“麦克风”图标并说出您想翻译的词组。 译文将显示在屏幕上。

  • 我不是在问AffineTransform是如何工作的,而是如何使用它的翻译方法。 我多次阅读API,但仍然不明白它是如何工作的。 公共空转换(双tx,双ty) 将此转换与翻译转换连接起来。这相当于调用concatenate(T),其中T是由以下矩阵表示的AffineTransform: 问题: