Project

General

Profile

Bug #8324

Demo content in new courses is not translated

Added by Yannick Warnier about 5 years ago. Updated about 5 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Course settings
Target version:
Start date:
09/07/2016
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

  • As admin, put your portal in test mode and in English
  • Make sure your (admin user's) language is English
  • From the list of courses, go to the course creation form
  • Create a course in French with demo content
  • Enter the course
  • [=IntroductionText=] appears

The $IntroductionText variable is defined in main/lang/french/trad4all.inc.php, so I suppose there is an issue in the AddCourse::fill_db_course() method, given it takes a language as third parameter.
In particular, this must be related to line 459
https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/inc/lib/add_course.lib.inc.php#L459
or on line 999 (where IntroductionText is called)
https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/inc/lib/add_course.lib.inc.php#L999

I tried using the form get_lang('IntroductionText', null, $language) but without success so far (the $language is effectively 'french' on line 999).

Associated revisions

Revision 4f0bcda3 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix course creationg in other language - refs #8324

History

#1

Updated by Yannick Warnier about 5 years ago

  • Description updated (diff)
#2

Updated by Yannick Warnier about 5 years ago

  • Description updated (diff)
#3

Updated by Yannick Warnier about 5 years ago

  • Assignee changed from Yannick Warnier to Angel Quiroz
  • % Done changed from 0 to 10
#4

Updated by Angel Quiroz about 5 years ago

  • Status changed from Assigned to Needs testing
  • Assignee deleted (Angel Quiroz)
  • % Done changed from 10 to 80

Fixed

#5

Updated by Yannick Warnier about 5 years ago

  • Status changed from Needs testing to Bug resolved
  • Assignee set to Angel Quiroz
  • % Done changed from 80 to 100

Patch approved. Working very well now. No observed negative impact.

Also available in: Atom PDF