locale.inc 254 Bytes
Newer Older
Dries's avatar
 
Dries committed
1 2 3
<?

function t($string) {
Dries's avatar
 
Dries committed
4 5
  $result = db_query("SELECT id FROM locales WHERE english = '". addslashes($string) ."'");
  if (!db_fetch_object($result)) db_query("INSERT INTO locales (english) VALUES ('". addslashes($string) ."')");
Dries's avatar
 
Dries committed
6 7 8 9
  return $string;
}

?>