NetTalk Central

Author Topic: Translate problem  (Read 2606 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Translate problem
« 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



-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Translate problem
« Reply #1 on: April 28, 2014, 11:15:42 AM »
Ok, I solved it by do not pass the translated string through the transtale method if pAllowHtml=2
Any other way?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Translate problem
« Reply #2 on: April 28, 2014, 10:55:21 PM »
>> 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