NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Manuel on April 23, 2014, 03:40:13 PM

Title: Change browse column predefined header tooltip
Post by: Manuel on April 23, 2014, 03:40:13 PM
Hi

Is it possible  translate browse column  predefined  header tooltip globally?

NT 8.09

Regards
Manuel
Title: Re: Change browse column predefined header tooltip
Post by: Bruce 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
Title: Re: Change browse column predefined header tooltip
Post by: Manuel 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
Title: Re: Change browse column predefined header tooltip
Post by: Bruce 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

Title: Re: Change browse column predefined header tooltip
Post by: Manuel on May 21, 2014, 11:53:50 AM
Hi Bruce

It works.

Thank you.
Regards
Manuel