Total Text Localize

Hi everyone and Happy Holidays …
When I use the {Total Text} is in English with dollars.
Is it editable and if yes how can we localize it ?

Sorry, think you will be out of lick on that one for now.
Increased language support if on emres list.
Might be doable with scripts but cant spare time to test.
This is javascript but is generally very similar to jscript;


Unlikely to work as is but shows potential.

Thank you JTRTech, I’ll give a try :smile:
In case emre needs help for Greek language I volunteer …

I couldn’t resist having a go…

Is only quickly tested but;

function test(num){

	var ones				= new Array("", "one", "two", "three", "four", "five", "six", "severn", "eight", "nine");
	var teens				= new Array("ten", "eleven", "twelve", "therteen", "fourteen", "fifteen", "sixteen", "severnteen", "eightteen", "nineteen");
	var tens				= new Array("","", "twenty", "thirty", "fourty", "fifty", "sixty", "severnty", "eighty", "ninety");
	var response			= '';

	var origionalNumber			= num;
	var wholeOrigional			= parseInt(num);
	var stringOrigional			= wholeOrigional.toString();
	var wholenumberLength		= stringOrigional.length;
	var origionalOnesNumber		= stringOrigional.substr(stringOrigional.length - 1,1);
	var origionalTensNumber		= stringOrigional.substr(stringOrigional.length - 2,1);
	var origionalHundredsNumber	= stringOrigional.substr(stringOrigional.length - 3,1);
	
	if (wholenumberLength == 1)
	{ 
	var numberOnes			= ones[wholeOrigional];
	response				+= numberOnes;
	} else if (wholenumberLength == 2 && origionalTensNumber == 1)
	{
	var numberTeens			= teens[origionalOnesNumber];
	response				+= numberTeens;
	} else if (wholenumberLength == 2 && origionalTensNumber >= 2)
	{
	var numberTens			= tens[origionalTensNumber];
	var numberOnes			= ones[origionalOnesNumber];
	response				+= numberTens+' '+numberOnes;
	} else if (wholenumberLength == 3)
	{
	var numberTens			= tens[origionalTensNumber];
	var numberOnes			= ones[origionalOnesNumber];
	var numberHundreds		= ones[origionalHundredsNumber];
	response				+= numberHundreds+' hundred and '+numberTens+' '+numberOnes;
	}	

return response;

}

this will do the whole number of numbers between 1 and 999

This would give you the ability to specify the words using the arrays on the top.
Obviously this is based on English metric ‘teens’ not sure how other currencies/languages deal with teens etc

Its a very good start, to tell the truth its a little tricky for the Greek language but I think I got it … :smile:

Depends on the ‘grammar’ if you just wanted to define 123 and one two three it’s allot easier.
Hence why automated phone systems usually opt for the ‘phonetic’ style method.

Tell me if i’m wrong please, you can call a script with the {CALL:handler.function()} right ?

Can you call it inside a ticket ?
Can you call it in V4 ?

Yes, you would also in the script require the number variable inside the brackets.

V4 does not have script support that is only for v5.