summaryrefslogtreecommitdiff
path: root/includes/locale.inc
blob: c295d23f4972601fadc8839d8365f6e1d91fb4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?

function locale_init() {
  global $languages, $user;
  return ($user->id && $user->language) ? $user->language : key($languages);
}

function t($string) {
  global $languages;
  return ($languages ? locale($string) : $string);
}

?>