the problem about changing language!

Discussion in 'Installation/Configuration' started by fhawk, Jun 15, 2009.

  1. fhawk

    fhawk New Member

    If I change language,I must edit the file:/usr/local/ispconfig/interface/lib/app.inc.php
    change:
    if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/en.lng';
    to:
    if(!file_exists($lng_file)) $lng_file = ISPC_ROOT_PATH.'/web/'.$_SESSION['s']['module']['name'].'/lib/lang/cn.lng';

    otherwise,the language showed in ispconfig3 is English!
    I am sorry,my english is poor!!!
     
  2. fhawk

    fhawk New Member

    I use ispconfig 3.0.1.3!!!
     
  3. till

    till Super Moderator

    I will check that.
     
  4. fhawk

    fhawk New Member

    I guess the reason for this is the function:file_exits()
    I edit /lib/app.inc.php
    change: if(!file_exists($lng_file))
    to:if(!file_exists('/usr/local/ispconfig/interface'.$lng_file))
    It's OK!!!

    other:
    software_package_list.php and software_update_list.php:
    include_once('lib/lang/en_software_package_list.lng');
    and
    include_once('lib/lang/en_software_update_list.lng');
    should be changed:
    include_once('lib/lang/'.$_SESSION['s']['language'].'_software_package_list.lng');
    and
    include_once('lib/lang/'.$_SESSION['s']['language'].'_software_update_list.lng');
     
    Last edited: Jun 17, 2009
  5. fhawk

    fhawk New Member

Share This Page