Move courses language file to trad4all - refs #4467

1.10.x
Yannick Warnier 10 years ago
parent 6d4f1bcd4f
commit d484a132dc
  1. 2
      custompages/language.inc.php
  2. 2
      custompages/language.php
  3. 2
      index.php
  4. 2
      main/admin/career_dashboard.php
  5. 2
      main/admin/course_list.php
  6. 2
      main/admin/session_list.php
  7. 2
      main/admin/style_preview.php
  8. 2
      main/auth/courses.php
  9. 3
      main/auth/set_temp_password.php
  10. 2
      main/course_home/course_home.php
  11. 2
      main/session/index.php
  12. 2
      news_list.php
  13. 2
      plugin/ticket/src/download.php
  14. 2
      user_portal.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('courses', 'index', 'registration', 'admin','userInfo');
$language_file = array('index', 'registration', 'admin','userInfo');
// Let's find out which language to serve to this particular browser
$lang_match = $chamilo_langs[get_preferred_language($available_langs)];

@ -35,7 +35,7 @@ function custompages_get_lang($variable) {
return get_lang($variable, null, $_SESSION['user_language_choice']);
}
$language_file = array('courses', 'index', 'registration', 'admin', 'userInfo');
$language_file = array('index', '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)];

@ -8,7 +8,7 @@
use \ChamiloSession as Session;
define('CHAMILO_HOMEPAGE', true);
$language_file = array('courses', 'index', 'userInfo');
$language_file = array('index', '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();

@ -9,7 +9,7 @@
*/
// Language files that should be included.
$language_file = array('courses', 'index', 'admin');
$language_file = array('index', 'admin');
$cidReset = true;
require_once '../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);

@ -8,7 +8,7 @@
*/
// Language files that need to be included.
$language_file = array('admin', 'courses');
$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -4,7 +4,7 @@
* List sessions in an efficient and usable way
* @package chamilo.admin
*/
$language_file = array('admin', 'courses');
$language_file = array('admin');
$cidReset = true;
require_once '../inc/global.inc.php';

@ -10,7 +10,7 @@
// @deprecated This page is not used
exit;
$language_file = array('create_course', 'courses', 'admin');
$language_file = array('create_course', 'admin');
require_once '../inc/global.inc.php';

@ -9,7 +9,7 @@
*/
// Names of the language file that needs to be included.
$language_file = array ('courses', 'registration');
$language_file = array ('registration');
// Delete the globals['_cid'], we don't need it here.
$cidReset = true; // Flag forcing the 'current course' reset

@ -10,9 +10,6 @@
*/
use \ChamiloSession as Session;
// Language files that need to be included
$language_file = array('courses');
$cidReset = true;
require_once '../inc/global.inc.php';
$this_section = SECTION_COURSES;

@ -30,8 +30,6 @@
use \ChamiloSession as Session;
// Name of the language file that needs to be included.
$language_file = array('courses');
$use_anonymous = true;
// Inlcuding the global initialization file.

@ -12,7 +12,7 @@
use \ChamiloSession as Session;
// Language files that should be included.
$language_file = array('learnpath', 'courses', 'index','tracking','exercice', 'admin');
$language_file = array('learnpath', 'index', 'tracking', 'exercice', 'admin');
$cidReset = true;
require_once '../inc/global.inc.php';

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */
// name of the language file that needs to be included
$language_file = array ('admin','courses', 'index', 'group');
$language_file = array ('admin', 'index', 'group');
// including necessary files
require_once 'main/inc/global.inc.php';

@ -9,7 +9,7 @@ require_once '../config.php';
$plugin = TicketPlugin::create();
api_block_anonymous_users();
$language_file = array('courses', 'index', 'admin');
$language_file = array('index', 'admin');
$user_id = api_get_user_id();
if (!isset($_GET['file']) || !isset($_GET['title']) || !isset($_GET['ticket_id'])) {
api_not_allowed();

@ -16,7 +16,7 @@
*/
use \ChamiloSession as Session;
$language_file = array('courses', 'index', 'admin', 'userInfo');
$language_file = array('index', 'admin', 'userInfo');
/* Flag forcing the 'current course' reset, as we're not inside a course anymore */
$cidReset = true;

Loading…
Cancel
Save