NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on April 28, 2014, 06:28:23 AM
-
I use to send a mail for the user to confirm its registration.
I translate the Subject like:
EmailSubject = p_web.Translate('Doctor Any Place Registration')
My translation routine just look for the string in a table
get the translated string and return the result of p_web.Translate('translatedstring',p_AllowHtml)
What I need the transtale to Return is:
'Registración en Doctor any place'
instead of it I receive:
'Registración en Doctor any place'
I´ve tried with p_AllowHtml=0 and p_AllowHtml=1 and get the same result.
How to get the plain trensleted string?
Thanks
-
Ok, I solved it by do not pass the translated string through the transtale method if pAllowHtml=2
Any other way?
-
>> get the translated string and return the result of p_web.Translate('translatedstring',p_AllowHtml)
what is AllowHTML set to?
>> What I need the transtale to Return is:
'Registración en Doctor any place'
>> instead of it I receive:
'Registración en Doctor any place'
They are exactly the same thing. The second form is the correct form for HTML. (If this is indeed what the function is returning.)
cheers
Bruce