NetTalk Central

Author Topic: Avoid translation of session var  (Read 3812 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Avoid translation of session var
« on: June 12, 2013, 10:49:09 AM »
Hi

Is there a way to avoid <!-- Net:s:xxxxxx --> being translated?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Avoid translation of session var
« Reply #1 on: June 12, 2013, 10:21:18 PM »
is it specifically the language translation you are suppressing, or is it the encoding etc you are trying to suppress?

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Avoid translation of session var
« Reply #2 on: June 12, 2013, 11:02:02 PM »
The encoding....

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Avoid translation of session var
« Reply #3 on: June 12, 2013, 11:19:46 PM »
tell me more - why do you want to suppress the encoding? You understand if the encoding is not right then stuff gets "broken"?

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Avoid translation of session var
« Reply #4 on: June 14, 2013, 01:56:21 AM »
I have an app that uses multiple databases from different companies. Therefore I need to generate different headers.
The easiest way is to insert xhtml code, from a table, into a session variable.
But if it is not easy to do I just do it myself in embeded code.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Avoid translation of session var
« Reply #5 on: June 14, 2013, 02:40:11 AM »
Hi Neils,

try this - I think it'll work, but I haven't tested;

<!-- Net:x:SessionVariableName -->

instead of

<!-- Net:s:SessionVariableName -->

It stills goes through the .Translate method, but with the HTML parameter set.


Cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Avoid translation of session var
« Reply #6 on: June 14, 2013, 12:52:30 PM »
Yes - "X" did the magic.

Thanks!!