Revert "Didn't mean to include this"
[gitphp.git] / include / i18n.initlocale.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
 *  i18n.initlocale.php
 *  gitphp: A PHP git repository browser
 *  Component: i18n - load locale
 *
 *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
 */
 
require_once('i18n.lookupstring.php');
 
function initlocale($locale = "en_US")
{
        global $tpl;
 
        if (!include(GITPHP_LOCALE_DIR . $locale . ".php"))
                include(GITPHP_LOCALE_DIR . "en_US.php");
 
        if (isset($strings)) {
                $tpl->assign("localize",$strings);
        }
 
        return $strings;
}
 
?>
 
comments