Call 1-888-670-1652

 Spire CoreDB Connect Error (2002) Connection timed out

tooltip-format

The tooltip-format attribute, when added to the sys:lang-selector tag, allows you to determine what is displayed when users hold their cursors over individual languages within the list (and in what format).

In order to determine what is displayed and how, you can make use of any combination of text and the following format codes:

  • %L - language
  • %T - territory with preceding '_'
  • %C - codeset with preceding '.'
  • %M - modifier with preceding '@'
  • %P - priority with preceding ';q='
  • %l - language
  • %t - territory
  • %c - codeset
  • %m - modifier
  • %p - priority
  • %n - native language name ("cesky", "English" etc.)
  • %N - English language name ("Czech", "English" etc.)
  • %s - native country name ("Ceska republika", "Great Britain" etc.)
  • %S - English country name ("Czech Republic", "Great Britain" etc.)
  • %u - alias for "%n (%s)" - native language/country name ("cesky (Ceska republika)", "English (Great Britain)")
  • %U - alias for "%N (%S)" - English language/country name ("Czech (Czech Republic)", "English (Great Britain)")
  • %f - alias for "%L%T%C%M" (en_US.UTF-8@char)
  • %F - alias for "%L%T%C%M%P" (en_US.UTF-8@char;q=1.0)
  • %x - alias for "%L%T" (en_US, cs_CZ)

Simply enter the tag, along with the attribute and the desired combination of text and codes, into the HTML window, and the outcome should look something like this:

<sys:lang-selector tooltip-format="%n (%S)" />