localize.php 261 B

123456789101112131415
  1. <?php
  2. // setup locale and translation
  3. setlocale(LC_ALL, $locale);
  4. require "lang/$language.php";
  5. function T($str)
  6. {
  7. global $L;
  8. if (isset($L[$str]))
  9. return $L[$str];
  10. else
  11. return $str;
  12. }
  13. ?>