Oracle Magazine, July/August 2018
Mobile APPLICATION DEVELOPER 83 Note the different output message compared to the autotranslated ORACLE MAGAZINE JULY AUGUST 2018 65 message before 84 Reset the tester by clicking the Reset button 85 Type Montrez moi le menu into the Message field and click Send 86 Choose a pizza and a pizza size 87 Again note the changed output message for French compared to the autotranslated version earlier 88 Reset the tester by clicking Reset 89 Finally enter Show me the menu into the Message field and click Send This works as before but it also uses the resource bundle to print the order What you just did In this part of the hands on steps you used a resource bundle to control the bot response message for German and French when printing the order The English bundle which also is the default is used for all languages for which you did not define a language specific bundle and of course for English Note Setting the translate property on the System Output component of the printOrder state to true will autotranslate the printed message to the user language In this case if a resource bundle translated the output message no autotranslation will be performed If however you try a language for which you dont have a resource bundle defined the output message will be autotranslated to the user language ADDITIONAL CONSIDERATIONS As youve seen in this article autotranslation enables you to build a multilanguage bot from a single base language In Oracle Intelligent Bots this base language is English To control the tone wording and voice in bot responses and labels displayed to the user you use resource bundles So a first design decision for your bot
You must have JavaScript enabled to view digital editions.