NetTalk Central

Author Topic: where are the changing default prompts in a form template tab  (Read 2424 times)

stephen j ryan

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
where are the changing default prompts in a form template tab
« on: August 17, 2013, 04:30:08 PM »
Hi

where do i find the template tab that changes the following prompt.

many thanks

here where they seem to set in the templates

  #if(%StylesDir)
s_web._SitesQueue.Defaults.stylesdir  = %StylesDir
    #endif
s_web.MakeFolders()
!s_web._SitesQueue.defaults.AllowAjax = 1
s_web._SitesQueue.defaults._CheckForParseHeader = 1         ! Check for Parse Header String
s_web._SitesQueue.defaults._CheckForParseHeaderSize = 1000  ! Check for the Parse Header in the first x bytes
s_web._SitesQueue.defaults._CheckParseHeader = '<!-- NetWebServer --><13,10>'
s_web._SitesQueue.defaults.securedir = 'secure'
s_web._SitesQueue.defaults.loggedindir = 'loggedin'
s_web._SitesQueue.defaults.InsertPromptText = s_web.Translate('Insert')
s_web._SitesQueue.defaults.CopyPromptText = s_web.Translate('Copy')
s_web._SitesQueue.defaults.ChangePromptText = s_web.Translate('Change')
s_web._SitesQueue.defaults.ViewPromptText   = s_web.Translate('View')
s_web._SitesQueue.defaults.DeletePromptText = s_web.Translate('Delete')
s_web._SitesQueue.defaults.RequiredText = s_web.Translate('Required')
s_web._SitesQueue.defaults.NumericText = s_web.Translate('A Number')
s_web._SitesQueue.defaults.MoreThanText = s_web.Translate('More than or equal to')
s_web._SitesQueue.defaults.LessThanText = s_web.Translate('Less than or equal to')
s_web._SitesQueue.defaults.NotZeroText = s_web.Translate('Must not be Zero or Blank')
s_web._SitesQueue.defaults.OneOfText = s_web.Translate('Must be one of')
s_web._SitesQueue.defaults.InListText = s_web.Translate('Must be one of')
s_web._SitesQueue.defaults.InFileText = s_web.Translate('Must be in table')
s_web._SitesQueue.defaults.DuplicateText = s_web.Translate('Creates Duplicate Record on')
s_web._SitesQueue.defaults.RestrictText = s_web.Translate('Unable to Delete, Child records exist in table')
s_web._SitesQueue.Defaults.StoreDataAs = %netStoreAs
    #if(%WebDatePicture)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: where are the changing default prompts in a form template tab
« Reply #1 on: August 18, 2013, 10:14:25 PM »
I'm not sure understand the question, but I presume what you're tryig to do is translate the comments (not prompts) like
InsertPromptText = s_web.Translate('Insert')
?

The short answer is that you don't translate these at the template level, you translate them in the WebHandler procedure, Translate method. Using whatever translation engine you prefer.

cheers
Bruce