Changeset 172

Show
Ignore:
Timestamp:
09/03/07 20:26:45 (16 months ago)
Author:
jonas
Message:

i18n support

Location:
trunk
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r171 r172  
    77        o Added: new config value for "display mailbox size" 
    88        o Added: domain_view.tpl mailbox size 
     9        o Added: check if php-imap is enabled 
    910        o Improved: removed reload to domain show on save emailaddress 
    1011        o Fixed: autoresponder.pl. UTF-8 problems in body 
  • trunk/includes/func.inc.php

    r171 r172  
    217217 
    218218function list_imap_folders($imap_server, $email,$password, $stati) { 
     219        if (!function_exists('imap_open')) { 
     220                die("CpVES needs PHP IMAP Support. Please install php-imap!"); 
     221        } 
    219222        $mbox=@imap_open("{".$imap_server.":143/imap/notls}",$email,$password); 
    220223        if (! $mbox) { 
  • trunk/includes/sites/login.php

    r169 r172  
    8181                        $_SESSION['forwarding']=$daten['p_forwarding']; 
    8282                        $_SESSION['p_mailfilter']=$data_domain['p_mailfilter']; 
     83                        $_SESSION['lang']=get_email_options($_SESSION['uid'],'lang', 'en_US'); 
    8384                         
    8485                                 
  • trunk/web/index.php

    r169 r172  
    3838        $_SESSION['ad_user']='n'; 
    3939} 
     40$_SESSION['lang']="de_DE"; 
     41if (is_file(ROOT ."/includes/localization/". $_SESSION['lang'] . "/LC_MESSAGES/cpves.mo" )) { 
     42        setlocale(LC_MESSAGES, $_SESSION['lang']); 
     43} 
     44$lc_path= ROOT ."/includes/localization/"; 
     45bindtextdomain("cpves", $lc_path); 
     46textdomain("cpves"); 
    4047 
    4148$site="";