install/schemas/upgrade/migration/1.0-1.1.php
changeset 942 18db38c70a41
parent 418 322fa0c91303
child 1227 bdac73ed481e
equal deleted inserted replaced
941:9be6dba92adf 942:18db38c70a41
    29   // Install default language
    29   // Install default language
    30   $lang_id = 'eng';
    30   $lang_id = 'eng';
    31   $lang_data =& $languages[$lang_id];
    31   $lang_data =& $languages[$lang_id];
    32   $lang_dir = ENANO_ROOT . "/language/{$lang_data['dir']}/";
    32   $lang_dir = ENANO_ROOT . "/language/{$lang_data['dir']}/";
    33   // function install_language($lang_code, $lang_name_neutral, $lang_name_local, $lang_file = false)
    33   // function install_language($lang_code, $lang_name_neutral, $lang_name_local, $lang_file = false)
    34   install_language($lang_id, $lang_data['name_eng'], $lang_data['name'], $lang_dir . 'core.json');
    34   install_language($lang_id, $lang_data['name_eng'], false);
    35   $lang_local = new Language($lang_id);
    35   
    36   $lang_local->import($lang_dir . "tools.json");
    36   // Only import strings if the script isn't planning to do it again later
    37   $lang_local->import($lang_dir . "user.json");
    37   global $do_langimport;
    38   $lang_local->import($lang_dir . "admin.json");
    38   if ( !$do_langimport )
       
    39   {
       
    40     $lang_local = new Language($lang_id);
       
    41     $lang_local->import($lang_dir . "core.json");
       
    42     $lang_local->import($lang_dir . "tools.json");
       
    43     $lang_local->import($lang_dir . "user.json");
       
    44     $lang_local->import($lang_dir . "admin.json");
       
    45   }
    39   
    46   
    40   // This doesn't set to installer_enano_version() because it only
    47   // This doesn't set to installer_enano_version() because it only
    41   // migrates the database from 1.0.x to 1.1.x status and runs the
    48   // migrates the database from 1.0.x to 1.1.x status and runs the
    42   // core logic required to transform a 1.0.x installation into
    49   // core logic required to transform a 1.0.x installation into
    43   // a 1.1.x installation. Thus, when upgrading, the upgrade script
    50   // a 1.1.x installation. Thus, when upgrading, the upgrade script