如何翻译Bot Framework Composer中的选择? [英] How to translate choices in bot framework composer?

查看:48
本文介绍了如何翻译Bot Framework Composer中的选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MS Bot Framework Composer 1.1.1版

我希望用户通过键入(或选择)是"或是"来回答问题.或否"-但我需要支持多种语言(因此,德语为"ja"和"nein").当然,我只想拥有一个能够处理所有语言的机器人.机器人启动时,将选择(工作)当前语言.我现在想做的是显示以活动语言显示的问题,要求输入是/否,并根据输入内容显示另一个文本.我认为这不太困难,也不是非常特殊的要求.

我可以添加询问问题->"确认"或问问题->"多选"但是只能用英语.在这两种情况下,我都可以翻译问题,但不能翻译选择(建议),也不能翻译验证,也不可以通过if-check评估答案.要在选项以及验证和评估表达式中插入诸如$ {AnswerYes()}之类的翻译文本,我该怎么办?

在我的教学中插入翻译后的文本(类似于$ {Greeting()})似乎对我来说是正确的方法,但我无法使其正常工作:无论如何,我总是得到"AnswerYes没有评估者,但是内置函数或自定义函数",尽管我用该名称创建了翻译文本.您知道如何实现该目标吗?或者还有另一种方法可以得到所需的结果吗?

解决方案

看来,Bot Framework作曲家的R13现在正在解决此问题请参阅仅在7天前更新的问题:作曲家Github问题

R12目前处于预览状态,因此可能要等几个月后团队才能完成R13.

I'm using MS bot framework composer version 1.1.1

I'd like the user to answer a question by typing (or picking) either "yes" or "no" - but I need to support multiple languages (so in German it would be "ja" and "nein"). Of course I want to have only one bot that can handle all the languages. When the bot starts, the current language gets chosen (works). What I want to do now is that in the active language a question is displayed, the input yes/no is requested and depending on the input another text is shown. Not too difficult and not a very special requirement, I think.

I can get this to work adding either "Ask a question -> Confirmation" or "Ask a question -> Multi-choice" BUT only in English. In both cases I can translate the question but not the choices (suggestions) nor the validation nor the if-check evaluating the answer. What do I have to do to insert a translated text such as ${AnswerYes()} into the choices and the validation and evaluation expressions?

Inserting a translated text (similar to ${Greeting()} in the tutorials seems the correct approach to me but I cannot get it to work: Whatever I do I always get "AnswerYes does not have an evaluator, it’s not a built-in function or a custom function" although I created a translation text with that name. Any idea how to achieve that or is there another way how I can get the desired result?

解决方案

It appears that this is now being addressed in R13 of Bot Framework composer see this issue which was only updated 7 days ago : Composer Github Issue

R12 is currently in preview so it may be another few months before the team complete R13.

这篇关于如何翻译Bot Framework Composer中的选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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