Switching Custom Prompts - Using $LOC
"The previous example shows me how to let the user indicate the language they want. That applies to the default prompts of following call flow actions. ? But how do I switch my custom Entry Prompts for different languages as well"
Rather than have multiple return points from the Language Select module, one for each language, linking to separate Get Mail actions, each with an Entry Prompt in the right language we can still do it all with the one Get Mail action. This keeps our call flow creation and maintenance a lot simpler.
Through the Get Mail action's properties we recorded an Entry Prompt for US English users which we saved as enu\custom\getmail.wav. We then recorded similar prompt for French Canadian users and Latin Spanish users. Note how the file name was kept the same each time and only the language folder in which we save the file was changed.
We then deleted all except one of the entry prompt entries. Doing this doesn't actually delete the recorded prompts. For the remaining entry we changed the file path by inserting $LOC in place of the language folder name, ie. $LOC\custom\getmail.wav.