function st

7.x misc.inc st($str, $vars = array())
6.x misc.inc st($str, $vars = array())
4.x misc.inc st($str, $vars = array())
5.x misc.inc st($str, $vars = array())

Provides translation functionality when database is not available.

Not implemented yet

4 calls to st()
install_check_requirements in ./install.php
Check for missing requirements of the system.
install_display_db_form in ./install.php
Displays the form to let a user set up a new database
install_display_requirements in ./install.php
Displays the requirements on screen for the user.
install_perform_install in ./install.php
Actually performs the installation of FlightPath

File

includes/misc.inc, line 831
This file contains misc functions for FlightPath

Code

function st($str, $vars = array()) {
  // Not implemented yet.  For now, just replicate t().
  if (is_array($vars) && count($vars) > 0) {
    foreach ($vars as $var => $val) {

      // If var begins with %, it means we want to italicize the val.
      if (strstr($var, "%")) {
        $val = "<em>$val</em>";
      }

      $str = str_replace($var, $val, $str);
    }
  }

  return $str;
}