Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [vtp-dev] How to change Default Language in Callflow

Title: How to change Default Language in Callflow
Hi Wolfgang--

Setting the language at runtime is pretty simple.  You'll need a script block for this:
     SelectedLanguage.value = Languages.getLanguage("English");

The language specified in the call to getLanguage should be the name used in that project's configuration (i.e., this is the name of the language in the project, not the name of the Voice project associated with that language).

Regarding #2, I'm not quite sure what you're asking — can you clarify?


Randy



From: ECKHART Wolfgang <wolfgang.eckhart@xxxxxxxxxx>
Reply-To: Voice Tools general developers <vtp-dev@xxxxxxxxxxx>
To: "'vtp-dev@xxxxxxxxxxx'" <vtp-dev@xxxxxxxxxxx>
Subject: [vtp-dev] How to change Default Language in Callflow

Hello VTP-Developer Team!

i have a Question related to the Language that well be used at VoiceBlocks, e.g. at the PlayPrompt-Block.
At the BeginBlock of an Application, it's possible to select the Default Language - that's O.K..

1.) How can i change the DefaultLanguage during Application Execution?
      Do i have to change a Variable?

2.) Independent of Default Language, the DefaultLanguage of Tomcat (in my case "de-AT") will always be sent in vxml-Code

      e.g.:
                <block name="OutputMessageBlock">
                        <prompt bargein="true" xml:lang="de-AT">Hello in English 2 </prompt>
                        <goto next="/tl1/-/next?236845d436c14222b38cac19da00405c=success.filled" />
                </block>


Thanks in advance for any comments,
Wolfgang


Wolfgang Eckhart               
Sonorys Technology GmbH
Brünner Straße 85
Eingang: Lundenburgergasse 6
1210 Wien

tel:               + 43 1 294 00 94 - 290
email:           wolfgang.eckhart@sonorys.at



Back to the top