NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started 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
-
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
-
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
-
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
-
Hi Bruce
It works.
Thank you.
Regards
Manuel