NetTalk Central

Author Topic: Change browse column predefined header tooltip  (Read 4029 times)

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Change browse column predefined header tooltip
« on: April 23, 2014, 03:40:13 PM »
Hi

Is it possible  translate browse column  predefined  header tooltip globally?

NT 8.09

Regards
Manuel

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Change browse column predefined header tooltip
« Reply #1 on: April 24, 2014, 01:25:19 AM »
Hi Manual,

yes.

All the tip text flows through the .Translate method in the WebHandler procedure.

Are you doing translations here already? Or is the whole idea of translation in the web server new to you?

Cheers
Bruce

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Change browse column predefined header tooltip
« Reply #2 on: April 24, 2014, 07:18:43 AM »
Hi Bruce


I translate dateoptions at webhandler embed and buttons and locators at web server settings.

I would like to translate browse field header tooltip at IDE 'Click here to order by..". + field name. Almost always I have to modify header (field name)

Regards
Manuel

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Change browse column predefined header tooltip
« Reply #3 on: May 20, 2014, 12:10:54 AM »
Hi Manuel,

Because of the way the template system works, and the way that tip is generated, it's not really possible to split it into 2 parts, and have the parts translated separately. So I recommend that you do a simple bit of code in the .Translate method which catches this and splits it for translation. So something like;

if sub(p_String,1,21) = 'Click here to sort by'
  Return Parent.Translate( 'Click here to sort by') & ' ' & Parent.Translate(sub(p_string,23,255),p_AllowHTML)
end


Cheers
Bruce


Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Change browse column predefined header tooltip
« Reply #4 on: May 21, 2014, 11:53:50 AM »
Hi Bruce

It works.

Thank you.
Regards
Manuel