diff --git a/404.php b/404.php index 9e7ead269a..668b6db347 100755 --- a/404.php +++ b/404.php @@ -3,7 +3,7 @@ // 2011, Jean-Karim Bockstael // ErrorDocument 404 /404/ -$language_file = array('document', 'index'); +$language_file = array('document'); require_once '../main/inc/global.inc.php'; $msg = get_lang('FileNotFound'); diff --git a/custompages/language.inc.php b/custompages/language.inc.php index 7124c22e66..98e1893fc3 100755 --- a/custompages/language.inc.php +++ b/custompages/language.inc.php @@ -59,7 +59,7 @@ $chamilo_langs = array(null => 'english', 'en' => 'english', 'fr' => 'french', ' $available_langs = array('en','fr'); // Which language files will we need ? -$language_file = array('index', 'registration', 'admin','userInfo'); +$language_file = array('registration', 'admin','userInfo'); // Let's find out which language to serve to this particular browser $lang_match = $chamilo_langs[get_preferred_language($available_langs)]; diff --git a/custompages/language.php b/custompages/language.php index 4402a6ad2d..d33ad33dbf 100755 --- a/custompages/language.php +++ b/custompages/language.php @@ -35,7 +35,7 @@ function custompages_get_lang($variable) { return get_lang($variable, null, $_SESSION['user_language_choice']); } -$language_file = array('index', 'registration', 'admin', 'userInfo'); +$language_file = array('registration', 'admin', 'userInfo'); $available_langs = array('en', 'fr', 'es'); $chamilo_langs = array(null => 'english', 'en' => 'english', 'fr' => 'french', 'nl' => 'dutch', 'de' => 'german', 'es' => 'spanish'); $lang_match = $chamilo_langs[get_preferred_language($available_langs)]; diff --git a/index.php b/index.php index 0ee1fd9db3..21329c8dd2 100755 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ use \ChamiloSession as Session; define('CHAMILO_HOMEPAGE', true); -$language_file = array('index', 'userInfo'); +$language_file = array('userInfo'); /* Flag forcing the 'current course' reset, as we're not inside a course anymore. */ // Maybe we should change this into an api function? an example: CourseManager::unset(); diff --git a/main/admin/career_dashboard.php b/main/admin/career_dashboard.php index 77f95d6a00..1cdcd9a166 100755 --- a/main/admin/career_dashboard.php +++ b/main/admin/career_dashboard.php @@ -9,7 +9,7 @@ */ // Language files that should be included. -$language_file = array('index', 'admin'); +$language_file = array('admin'); $cidReset = true; require_once '../inc/global.inc.php'; $libpath = api_get_path(LIBRARY_PATH); diff --git a/main/admin/configure_homepage.php b/main/admin/configure_homepage.php index fd17e46824..4454f1bd7d 100755 --- a/main/admin/configure_homepage.php +++ b/main/admin/configure_homepage.php @@ -48,7 +48,7 @@ function home_tabs($file_logged_in) } } -$language_file = array('index', 'admin'); +$language_file = array('admin'); $cidReset = true; require_once '../inc/global.inc.php'; diff --git a/main/admin/user_information.php b/main/admin/user_information.php index cac91dbfd8..44d2fa6ddc 100755 --- a/main/admin/user_information.php +++ b/main/admin/user_information.php @@ -7,7 +7,7 @@ */ // name of the language file that needs to be included -$language_file = array('registration', 'index', 'tracking', 'exercice', 'admin', 'gradebook'); +$language_file = array('registration', 'tracking', 'exercice', 'admin', 'gradebook'); $cidReset = true; require_once '../inc/global.inc.php'; $this_section = SECTION_PLATFORM_ADMIN; diff --git a/main/auth/lostPassword.php b/main/auth/lostPassword.php index 51448fa487..030fc75caf 100755 --- a/main/auth/lostPassword.php +++ b/main/auth/lostPassword.php @@ -18,7 +18,7 @@ * Code */ // name of the language file that needs to be included -$language_file = array('registration', 'index'); +$language_file = array('registration'); require_once '../inc/global.inc.php'; diff --git a/main/cron/lang/langstats.php b/main/cron/lang/langstats.php index 33297b160c..9e6025ae43 100755 --- a/main/cron/lang/langstats.php +++ b/main/cron/lang/langstats.php @@ -16,7 +16,7 @@ $language_file = array( 'gradebook', 'registration', 'admin', 'group', 'help', 'reservation', 'hotspot', 'scormdocument', -'index', 'install', 'shibboleth', +'install', 'shibboleth', 'learnpath', 'course_info', 'survey', 'tracking', 'create_course', 'trad4all', 'document', 'userInfo', 'dropbox', diff --git a/main/cron/lang/langstats_file_builder.php b/main/cron/lang/langstats_file_builder.php index 0f7830c4a4..1ebb327ec8 100755 --- a/main/cron/lang/langstats_file_builder.php +++ b/main/cron/lang/langstats_file_builder.php @@ -24,7 +24,6 @@ $language_file = array( 'group', 'help', 'hotspot', -'index', 'install', 'learnpath', 'registration', diff --git a/main/dashboard/index.php b/main/dashboard/index.php index dbd20ab5ec..60a570e227 100755 --- a/main/dashboard/index.php +++ b/main/dashboard/index.php @@ -6,7 +6,7 @@ * @package chamilo.dashboard */ // name of the language file that needs to be included -$language_file = array('index', 'tracking', 'userInfo', 'admin', 'gradebook'); +$language_file = array('tracking', 'userInfo', 'admin', 'gradebook'); $cidReset = true; // including files diff --git a/main/inc/email_editor.php b/main/inc/email_editor.php index 702ec31664..afd6a03afa 100755 --- a/main/inc/email_editor.php +++ b/main/inc/email_editor.php @@ -13,7 +13,7 @@ use \ChamiloSession as Session; -$language_file = array('index', 'admin', 'registration'); +$language_file = array('admin', 'registration'); require_once '../inc/global.inc.php'; diff --git a/main/metadata/update_indexabletext.php b/main/metadata/update_indexabletext.php index 4a9ca5a4ef..0a90243757 100755 --- a/main/metadata/update_indexabletext.php +++ b/main/metadata/update_indexabletext.php @@ -17,8 +17,6 @@ define('TPLEN', strlen(EID_TYPE) + 1); require('md_' . strtolower(EID_TYPE) . '.php'); -// name of the language file that needs to be included -$language_file = 'md_' . strtolower(EID_TYPE); include('../inc/global.inc.php'); $this_section=SECTION_COURSES; diff --git a/main/mySpace/access_details.php b/main/mySpace/access_details.php index ba9f95b96c..fcbc432b14 100755 --- a/main/mySpace/access_details.php +++ b/main/mySpace/access_details.php @@ -16,7 +16,7 @@ * Code */ // name of the language file that needs to be included -$language_file = array ('registration', 'index', 'tracking'); +$language_file = array ('registration', 'tracking'); require_once '../inc/global.inc.php'; diff --git a/main/mySpace/admin.php b/main/mySpace/admin.php index 6cde089b74..fdba320e9c 100755 --- a/main/mySpace/admin.php +++ b/main/mySpace/admin.php @@ -10,7 +10,7 @@ ob_start(); // name of the language file that needs to be included -$language_file = array('registration', 'index', 'trad4all', 'tracking'); +$language_file = array('registration', 'trad4all', 'tracking'); $cidReset = true; require_once '../inc/global.inc.php'; diff --git a/main/mySpace/admin_view.php b/main/mySpace/admin_view.php index 455e5812b0..4fb1bc1b7f 100644 --- a/main/mySpace/admin_view.php +++ b/main/mySpace/admin_view.php @@ -1,7 +1,7 @@