NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on September 26, 2014, 12:39:41 AM
-
Hallo,
I need to translate alert confirmation on forms like:
1.) Are you sure you want to delete this record?
2.) Are you sure you want to cancel the changes?
I see on form embed there is a new routine "ntForm" where I could change this confirmation text.
Do I have to go and change this on every form? or is there a global solution?
Thank you,
Robert
-
it goes through the Translate procedure in WebHandler.
So you can translate it globally there.
cheers
Bruce
-
Thanks Bruce!
And how to change this code to translate this:
p_web.SetOption(loc:options,'confirmDeleteMessage',p_web.translate('Are you sure you want to delete this record?'))
p_web.SetOption(loc:options,'yesDeleteText',p_web.translate('Delete'))
p_web.SetOption(loc:options,'noDeleteText',p_web.translate('No'))
Thank you,
Robert
-
I try this and it works. It's ok in this way?
CASE p_String
OF 'Are you sure you want to delete this record?'
RETURN 'Sunteti sigur ca doriti sa stergeti acesta introducere?'
OF 'Are you sure you want to cancel the changes?'
RETURN 'Sunteti sigur ca doriti sa renuntati la modificarile facute?'
END
thank you,
Robert
-
yes. exactly.