Skip to content

Commit

Permalink
Move survey, gradebook, wiki, learnpath, tracking, document, exercice…
Browse files Browse the repository at this point in the history
…, help and admin language files to trad4all - refs #4467
  • Loading branch information
ywarnier committed Mar 26, 2015
1 parent 4f76160 commit d575fa4
Show file tree
Hide file tree
Showing 964 changed files with 91,921 additions and 106,987 deletions.
2 changes: 0 additions & 2 deletions 404.php
Expand Up @@ -2,8 +2,6 @@
// HTTP404 page with neat styling
// 2011, Jean-Karim Bockstael <jeankarim@cblue.be>
// ErrorDocument 404 /404/

$language_file = array('document');
require_once '../main/inc/global.inc.php';

$msg = get_lang('FileNotFound');
Expand Down
2 changes: 0 additions & 2 deletions certificates/index.php
Expand Up @@ -9,8 +9,6 @@
* Initialization
*/

$language_file= array('admin', 'gradebook', 'document');

require_once '../main/inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'certificate.lib.php';

Expand Down
3 changes: 0 additions & 3 deletions custompages/language.inc.php
Expand Up @@ -58,9 +58,6 @@ function cp_get_lang($variable) {
// Which of these can we actually pick from ?
$available_langs = array('en','fr');

// Which language files will we need ?
$language_file = array('admin');

// Let's find out which language to serve to this particular browser
$lang_match = $chamilo_langs[get_preferred_language($available_langs)];

Expand Down
1 change: 0 additions & 1 deletion custompages/language.php
Expand Up @@ -35,7 +35,6 @@ function custompages_get_lang($variable) {
return get_lang($variable, null, $_SESSION['user_language_choice']);
}

$language_file = array('admin');
$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)];
Expand Down
3 changes: 0 additions & 3 deletions main/admin/access_url_add_courses_to_url.php
Expand Up @@ -7,9 +7,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down
3 changes: 0 additions & 3 deletions main/admin/access_url_add_usergroup_to_url.php
Expand Up @@ -7,9 +7,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
Expand Down
3 changes: 0 additions & 3 deletions main/admin/access_url_add_users_to_url.php
Expand Up @@ -7,9 +7,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
Expand Down
3 changes: 0 additions & 3 deletions main/admin/access_url_check_user_session.php
Expand Up @@ -5,9 +5,6 @@
* @package chamilo.admin
*/
/* INIT SECTION */

// name of the language file that needs to be included
$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down
2 changes: 0 additions & 2 deletions main/admin/access_url_edit.php
Expand Up @@ -4,8 +4,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
Expand Down
4 changes: 0 additions & 4 deletions main/admin/access_url_edit_course_category_to_url.php
Expand Up @@ -4,10 +4,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/access_url_edit_courses_to_url.php
Expand Up @@ -4,10 +4,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/access_url_edit_usergroup_to_url.php
Expand Up @@ -4,10 +4,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/

// name of the language file that needs to be included
$language_file = 'admin';

// resetting the course id
$cidReset = true;

Expand Down
3 changes: 0 additions & 3 deletions main/admin/access_url_edit_users_to_url.php
Expand Up @@ -4,9 +4,6 @@
* @package chamilo.admin
* @author Julio Montoya <gugli100@gmail.com>
*/
// name of the language file that needs to be included
$language_file = 'admin';

// resetting the course id
$cidReset = true;

Expand Down
2 changes: 0 additions & 2 deletions main/admin/access_urls.php
Expand Up @@ -6,8 +6,6 @@
* @author Julio Montoya <gugli100@gmail.com>
* @author Yannick Warnier <yannick.warnier@beeznest.com>
*/
// name of the language file that needs to be included
$language_file = 'admin';
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_courses_to_session.php
Expand Up @@ -5,10 +5,6 @@
* @package chamilo.admin
* @todo use formvalidator
*/

// name of the language file that needs to be included.
$language_file = 'admin';

// resetting the course id.
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_courses_to_usergroup.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// Name of the language file that needs to be included.
$language_file = array('admin');

// Resetting the course id.
$cidReset = true;

Expand Down
3 changes: 0 additions & 3 deletions main/admin/add_many_session_to_category.php
Expand Up @@ -4,9 +4,6 @@
* @package chamilo.admin
* @todo use formvalidator
*/

// name of the language file that needs to be included
$language_file='admin';
// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_sessions_to_promotion.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_sessions_to_usergroup.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file=array('admin');

// resetting the course id
$cidReset=true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_students_to_session.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_teachers_to_session.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_users_to_group.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_users_to_session.php
Expand Up @@ -4,10 +4,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/add_users_to_usergroup.php
Expand Up @@ -3,10 +3,6 @@
/**
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
3 changes: 0 additions & 3 deletions main/admin/archive_cleanup.php
Expand Up @@ -3,9 +3,6 @@
/**
* @package chamilo.admin
*/

$language_file = array('admin');

// resetting the course id
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/calendar.php
Expand Up @@ -5,10 +5,6 @@
* @author Carlos Vargas
* This file is the calendar/agenda.php
*/

// name of the language file that needs to be included
$language_file[] = 'admin';

// resetting the course id
$cidReset=true;
// including some necessary files
Expand Down
3 changes: 0 additions & 3 deletions main/admin/career_dashboard.php
Expand Up @@ -7,9 +7,6 @@
/**
* Code
*/

// Language files that should be included.
$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
Expand Down
4 changes: 0 additions & 4 deletions main/admin/careers.php
Expand Up @@ -4,10 +4,6 @@
/**
* @package chamilo.admin
*/

// Language files that need to be included.
$language_file = array('admin');

$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down
3 changes: 0 additions & 3 deletions main/admin/class_add.php
Expand Up @@ -6,9 +6,6 @@
/**
* Code
*/
// Language files that should be included.
$language_file = 'admin';

// Resetting the course id.
$cidReset = true;

Expand Down
3 changes: 0 additions & 3 deletions main/admin/class_edit.php
Expand Up @@ -6,9 +6,6 @@
/**
* Code
*/
// Language files that should be included.
$language_file = 'admin';

// Resetting the course id.
$cidReset = true;

Expand Down
3 changes: 0 additions & 3 deletions main/admin/class_import.php
Expand Up @@ -46,9 +46,6 @@ function save_data($classes) {
return $number_of_added_classes;
}

// Language files that should be included.
$language_file = array ('admin');

// Resetting the course id.
$cidReset = true;

Expand Down
4 changes: 0 additions & 4 deletions main/admin/class_information.php
Expand Up @@ -7,10 +7,6 @@
* Code
* @author Bart Mollet
*/

// Language files that should be included.
$language_file = 'admin';

$cidReset = true;

require_once '../inc/global.inc.php';
Expand Down
2 changes: 0 additions & 2 deletions main/admin/class_list.php
Expand Up @@ -6,8 +6,6 @@
/**
* Code
*/
$language_file = 'admin';

$cidReset = true;
require '../inc/global.inc.php';

Expand Down
1 change: 0 additions & 1 deletion main/admin/class_user_import.php
Expand Up @@ -131,7 +131,6 @@ function parse_csv_data($file) {
return $courses;
}

$language_file = array('admin');
$cidReset = true;

require_once '../inc/global.inc.php';
Expand Down
2 changes: 0 additions & 2 deletions main/admin/cli.php
Expand Up @@ -9,8 +9,6 @@
/**
* Init section
*/
// name of the language file that needs to be included
$language_file = 'admin';
// we are in the admin area so we do not need a course id
$cidReset = true;
// include global script
Expand Down
3 changes: 0 additions & 3 deletions main/admin/configure_extensions.php
Expand Up @@ -4,9 +4,6 @@
* Edition of extensions configuration
* @package chamilo.admin
*/

// name of the language file that needs to be included
$language_file='admin';
$cidReset=true;
require_once '../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
Expand Down
1 change: 0 additions & 1 deletion main/admin/configure_homepage.php
Expand Up @@ -48,7 +48,6 @@ function home_tabs($file_logged_in)
}
}

$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down
2 changes: 0 additions & 2 deletions main/admin/configure_inscription.php
Expand Up @@ -5,8 +5,6 @@
* This script displays a form for registering new users.
* @package chamilo.admin
*/

$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down
2 changes: 0 additions & 2 deletions main/admin/configure_plugin.php
Expand Up @@ -7,8 +7,6 @@
*/
use \ChamiloSession as Session;

// name of the language file that needs to be included
$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';

Expand Down

0 comments on commit d575fa4

Please sign in to comment.