inc/i18n.inc.php
changeset 136 c795dd75a77e
parent 119 f74e4f88b680
equal deleted inserted replaced
135:3673b1c9246c 136:c795dd75a77e
    19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    20  */
    20  */
    21 
    21 
    22 include_once("inc/config.inc.php");
    22 include_once("inc/config.inc.php");
    23 
    23 
    24 $language = $LANG;
    24 setlocale(LC_ALL, $iface_lang);
    25 setlocale(LC_ALL, $language);
       
    26 $gettext_domain = 'messages';
    25 $gettext_domain = 'messages';
    27 bindtextdomain($gettext_domain, "./locale");
    26 bindtextdomain($gettext_domain, "./locale");
    28 textdomain($gettext_domain);
    27 textdomain($gettext_domain);
    29 @putenv('LANG='.$language);
    28 @putenv('LANG='.$iface_lang);
    30 @putenv('LANGUAGE='.$language);
    29 @putenv('LANGUAGE='.$iface_lang);
    31 ?>
    30 ?>