<div dir="ltr">I don't see any reason they needed to do it that way that I'm aware of. Everyone writes code differently so maybe it made more sense to them to do it that way.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 2:43 PM, Erick Wellnitz <span dir="ltr"><<a href="mailto:ewellnitzvoip@gmail.com" target="_blank">ewellnitzvoip@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm working on someone else's script today and was wondering because they duplicated logic for each language.</div><div><br></div><div>So I'm clear, I can still do it the following way.</div><div><br></div><div>promptVariableString = "P[" + langVariable + "/promptname.wav]"</div><div>promptVariablePrompt = promptVariableString</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 12:24 PM, Brian Meade <span dir="ltr"><<a href="mailto:bmeade90@vt.edu" target="_blank">bmeade90@vt.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That should work if you have the prompts stored in the EN and SP folders. What issue are you seeing?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 1:24 PM, Erick Wellnitz <span dir="ltr"><<a href="mailto:ewellnitzvoip@gmail.com" target="_blank">ewellnitzvoip@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Been a while since I have had to do much with CCX.</div><div><br></div><div>I remember back in the day we could set up some string variables, concatenate them and have a nice clean way to cut our script in half when doing two different languages. </div><div><br></div><div>For instance:</div><div>1 - English (set language string to EN)</div><div>2 - Spanish (set language string to SP)</div><div><br></div><div>Then we could concatenate EN + "/" + promptname.wav</div><div><br></div><div>There must be a way that I'm just not seeing.</div><div><br></div><div>Any advice would be great!</div><div><br></div><div>Thanks!</div></div>
<br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>