Browse Source

Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

Angel Fernando Quiroz Campos 6 years ago
parent
commit
18d422d7e3
27 changed files with 115 additions and 80 deletions
  1. 25 25
      main/inc/lib/course.lib.php
  2. 26 18
      main/lang/arabic/trad4all.inc.php
  3. 12 0
      main/lang/brazilian/trad4all.inc.php
  4. 3 0
      main/lang/english/trad4all.inc.php
  5. 4 1
      main/lang/french/trad4all.inc.php
  6. 7 4
      main/lang/spanish/trad4all.inc.php
  7. 7 2
      main/session/resume_session.php
  8. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php
  9. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php
  10. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php
  11. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php
  12. 2 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php
  13. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php
  14. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php
  15. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php
  16. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php
  17. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php
  18. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php
  19. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php
  20. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php
  21. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php
  22. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php
  23. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php
  24. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestMatching.php
  25. 1 1
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php
  26. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php
  27. 2 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php

+ 25 - 25
main/inc/lib/course.lib.php

@@ -1084,7 +1084,7 @@ class CourseManager
                 return false;
             }
             $courseId = $courseInfo['real_id'];
-            $condition_course = ' AND c_id = '.$courseId;
+            $condition_course = " AND c_id = $courseId";
         }
 
         $sql = "SELECT * FROM ".Database::get_main_table(TABLE_MAIN_COURSE_USER)."
@@ -1106,22 +1106,22 @@ class CourseManager
         }
 
         $tableSessionCourseUser = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
-        $sql = 'SELECT 1 FROM '.$tableSessionCourseUser.'
-                WHERE user_id = '.$user_id.' AND session_id = '.$session_id.' '.$condition_course;
+        $sql = "SELECT 1 FROM $tableSessionCourseUser
+                WHERE user_id = $user_id AND session_id = $session_id $condition_course";
 
         if (Database::num_rows(Database::query($sql)) > 0) {
             return true;
         }
 
-        $sql = 'SELECT 1 FROM '.$tableSessionCourseUser.'
-                WHERE user_id = '.$user_id.' AND session_id = '.$session_id.' AND status = 2 '.$condition_course;
+        $sql = "SELECT 1 FROM $tableSessionCourseUser
+                WHERE user_id = $user_id AND session_id = $session_id AND status = 2 $condition_course";
 
         if (Database::num_rows(Database::query($sql)) > 0) {
             return true;
         }
 
         $sql = 'SELECT 1 FROM '.Database::get_main_table(TABLE_MAIN_SESSION).
-              ' WHERE id = '.$session_id.' AND id_coach='.$user_id;
+              " WHERE id = $session_id AND id_coach = $user_id";
 
         if (Database::num_rows(Database::query($sql)) > 0) {
             return true;
@@ -1292,7 +1292,7 @@ class CourseManager
         // we have to check if it is a valid field that can be sorted on
         if (!strstr($order_by, 'ORDER BY')) {
             if (!empty($order_by)) {
-                $order_by = 'ORDER BY '.$order_by;
+                $order_by = "ORDER BY $order_by";
             } else {
                 $order_by = '';
             }
@@ -1325,7 +1325,7 @@ class CourseManager
             if (!empty($courseCodeList)) {
                 $courseCodeListForSession = array_map(['Database', 'escape_string'], $courseCodeList);
                 $courseCodeListForSession = implode('","', $courseCodeListForSession);
-                $courseCondition = ' course.code IN ("'.$courseCodeListForSession.'")  ';
+                $courseCondition = " course.code IN ('$courseCodeListForSession')  ";
             }
 
             $sql .= ' FROM '.Database::get_main_table(TABLE_MAIN_USER).' as user ';
@@ -1380,7 +1380,7 @@ class CourseManager
                        ON course_rel_user.c_id = course.id ";
 
             if (!empty($course_code)) {
-                $sql .= ' AND course_rel_user.c_id = "'.$courseId.'"';
+                $sql .= " AND course_rel_user.c_id = $courseId";
             }
             $where[] = ' course_rel_user.c_id IS NOT NULL ';
 
@@ -1402,17 +1402,17 @@ class CourseManager
                 $extraFieldInfo = UserManager::get_extra_field_information_by_name($extraField);
                 if (!empty($extraFieldInfo)) {
                     $fieldValuesTable = Database::get_main_table(TABLE_EXTRA_FIELD_VALUES);
-                    $sql .= ' LEFT JOIN '.$fieldValuesTable.' as ufv
+                    $sql .= " LEFT JOIN $fieldValuesTable as ufv
                             ON (
                                 user.id = ufv.item_id AND
-                                (field_id = '.$extraFieldInfo['id'].' OR field_id IS NULL)
-                            )';
+                                (field_id = ".$extraFieldInfo['id']." OR field_id IS NULL)
+                            )";
                     $extraFieldWasAdded = true;
                 }
             }
         }
 
-        $sql .= ' WHERE '.$filter_by_status_condition.' '.implode(' OR ', $where);
+        $sql .= " WHERE $filter_by_status_condition ".implode(' OR ', $where);
 
         if ($multiple_access_url) {
             $current_access_url_id = api_get_current_access_url_id();
@@ -1439,7 +1439,7 @@ class CourseManager
 
         if (isset($filterByActive)) {
             $filterByActive = (int) $filterByActive;
-            $sql .= ' AND user.active = '.$filterByActive;
+            $sql .= " AND user.active = $filterByActive";
         }
 
         if (!empty($searchByKeyword)) {
@@ -1451,7 +1451,7 @@ class CourseManager
                     ) ";
         }
 
-        $sql .= ' '.$order_by.' '.$limit;
+        $sql .= " $order_by $limit";
 
         $rs = Database::query($sql);
         $users = [];
@@ -1759,7 +1759,7 @@ class CourseManager
 
         // We get the coach for the given course in a given session.
         $sql = 'SELECT user_id FROM '.Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER).
-               ' WHERE session_id = '.$session_id.' AND c_id = '.$courseId.' AND status = 2';
+               " WHERE session_id = $session_id AND c_id = $courseId AND status = 2";
         $rs = Database::query($sql);
         while ($user = Database::fetch_array($rs)) {
             $userInfo = api_get_user_info($user['user_id']);
@@ -1822,7 +1822,7 @@ class CourseManager
                         FROM ".Database::get_main_table(TABLE_MAIN_COURSE_USER)." cu
                         INNER JOIN $userTable u
                         ON cu.user_id = u.user_id
-                        WHERE c_id = '$courseId' AND cu.status = ".STUDENT;
+                        WHERE c_id = $courseId AND cu.status = ".STUDENT;
 
                 if (!$includeInvitedUsers) {
                     $sql .= " AND u.status != ".INVITEE;
@@ -1865,7 +1865,7 @@ class CourseManager
             }
 
             if ($session_id != 0) {
-                $sql_query .= ' AND scu.session_id = '.$session_id;
+                $sql_query .= " AND scu.session_id = $session_id";
             }
 
             if (!$includeInvitedUsers) {
@@ -2849,7 +2849,7 @@ class CourseManager
                     ON (course.id = url.c_id) 
                     WHERE 
                         url.access_url_id = $urlId AND 
-                        cru.user_id = '$user_id' 
+                        cru.user_id = $user_id 
                         $withoutSpecialCourses
                         $languageCondition
                     ORDER BY course.title
@@ -3696,7 +3696,7 @@ class CourseManager
         // Step 1: We get all the categories of the user
         $table = Database::get_main_table(TABLE_USER_COURSE_CATEGORY);
         $sql = "SELECT * FROM $table
-                WHERE user_id = '".$user_id."'
+                WHERE user_id = $user_id
                 ORDER BY sort ASC";
 
         $result = Database::query($sql);
@@ -3776,7 +3776,7 @@ class CourseManager
         $user_id = 0,
         $useUserLanguageFilterIfAvailable = true
     ) {
-        $user_id = $user_id ?: api_get_user_id();
+        $user_id = $user_id ? (int) $user_id : api_get_user_id();
         $user_category_id = (int) $user_category_id;
 
         // Table definitions
@@ -3818,7 +3818,7 @@ class CourseManager
                 INNER JOIN $TABLE_ACCESS_URL_REL_COURSE url
                 ON (url.c_id = course.id)
                 WHERE
-                    course_rel_user.user_id = '".$user_id."' AND
+                    course_rel_user.user_id = $user_id AND
                     $userCategoryCondition
                     $without_special_courses
                     $languageCondition
@@ -3826,7 +3826,7 @@ class CourseManager
         // If multiple URL access mode is enabled, only fetch courses
         // corresponding to the current URL.
         if (api_get_multiple_access_url() && $current_url_id != -1) {
-            $sql .= " AND access_url_id='".$current_url_id."'";
+            $sql .= " AND access_url_id = $current_url_id";
         }
         // Use user's classification for courses (if any).
         $sql .= " ORDER BY course_rel_user.user_course_cat, course_rel_user.sort ASC";
@@ -5041,10 +5041,10 @@ class CourseManager
         $visibilityCondition = '';
         $hidePrivate = api_get_setting('course_catalog_hide_private');
         if ($hidePrivate === 'true') {
-            $visibilityCondition .= ' AND '.$courseTableAlias.'.visibility <> '.COURSE_VISIBILITY_REGISTERED;
+            $visibilityCondition .= " AND $courseTableAlias.visibility <> ".COURSE_VISIBILITY_REGISTERED;
         }
         if ($hideClosed) {
-            $visibilityCondition .= ' AND '.$courseTableAlias.'.visibility NOT IN ('.COURSE_VISIBILITY_CLOSED.','.COURSE_VISIBILITY_HIDDEN.')';
+            $visibilityCondition .= " AND $courseTableAlias.visibility NOT IN (".COURSE_VISIBILITY_CLOSED.','.COURSE_VISIBILITY_HIDDEN.')';
         }
 
         // Check if course have users allowed to see it in the catalogue, then show only if current user is allowed to see it

+ 26 - 18
main/lang/arabic/trad4all.inc.php

@@ -761,7 +761,7 @@ $Poll = "استبيان";
 $YouHaveToBecomeModeratorOfThisRoomToStartPolls = "يجب عليك أن تصبح وسيطا في هذه الغرفة كي يمكنك عمل استبيان";
 $YourVoteHasBeenSent = "لقد تم ارسال تصويتك";
 $YouAlreadyVotedForThisPoll = "لقد صوت الآن لهذا الاستفتاء";
-$VoteButton = "تصويت !";
+$VoteButton = "تصويت";
 $YourAnswer = "اجابتك:";
 $WantsToKnow = "يريد أن يعرف :";
 $PollResults = "نتائج الاستبيان";
@@ -1546,7 +1546,7 @@ $OpenInNewWindow = " فتح في نافذة جديدة";
 $LimitUsersListDefaultMaxComment = " (في الشاشات التي تسمح بإضافة مستخدمين إلى مقررات أو فصول، إذا كانت أول قائمة الغير مرشحة تحتوي على أكثر من هذا العدد من المستخدمين، فعندئذعد إفتراضيا إلى أول حرف (أ";
 $HideDLTTMarkupComment = " [= ... =]  أخف العلامة عندما لايترجم متغير اللغة";
 $UpgradeFromLMS19x = "ترقية النظام من اصدار *1.9";
-$SignUp = "!انشاء حساب";
+$SignUp = "انشاء حساب";
 $UserDeleted = " لقد تم حذف المستخدم";
 $NoClassesForThisCourse = " و لا فصل مسجل في هذا المقرر";
 $CourseUsage = " استخدام المقرر";
@@ -2792,7 +2792,7 @@ $notCorrectedYet = "هذا الجواب لم يتم تصحيحه بعد. معن
 $adminHP = "Hot Potatoes مدير محتوى";
 $NewQu = "سؤال جديد";
 $NoImage = " فضلا، اختر صورة";
-$AnswerHotspot = " التوصيف و النتيجة هما متطلبين لكل بقعة ساخنة - الاستجابة اختيارية";
+$AnswerHotspot = "التوصيف والدرجة مطلوب لكل منطقة ساخنة، اما المعلومات المرتجعة فهي اختيارية";
 $MinHotspot = "(يجب عليك أن تنشئ على الأقل بقعة ساخنة واحدة (1";
 $MaxHotspot = "(12)الحد الأقصى لعدد البقع الساخنة التي يمكن أن تنشئها هو اثنى عشر";
 $HotspotError = ".فضلا، زود توصيفا و وزنا لكل بقعة ساخنة";
@@ -2810,7 +2810,7 @@ $HotspotNotDrawn = "لم تقم بعد برسم كل البقع الساخنة 
 $HotspotWeightingError = "  يجب أن تعطي وزن موجب (>0) لحميع البقع الساخنة";
 $HotspotValidateError1 = "يجب أن تجيب بشكل كامل على السؤال";
 $HotspotValidateError2 = " المطلوب نقرة أو نقرات على الصورة قبل مشاهدة النتائج";
-$HotspotRequired = ".التوصيف و النتيجة هما متطلبين لكل بقعة ساخنة. الاستجابة اختيارية";
+$HotspotRequired = "التوصيف والدرجة مطلوب لكل منطقة ساخنة، اما المعلومات المرتجعة فهي اختيارية";
 $HotspotChoose = "<div style=\"padding:2px 3px;\">•  .لإنشاء بقعة ساخنة: اختر شكلا بجوار اللون، و من ثم أرسم البقعة الساخنة </div><div style=\"padding:2px 3px;\">• لنقل بقعة ساخنة، اختر اللون، أنقر على بقعة أخرى على الصورة، و من ثم أرسم البقعة الساخنة.</div><div style=\"padding:2px 3px;\">•    [+hotspot] لإضافة بقعة ساخنة: أنقر على الزر  </div><div style=\"padding:2px 3px;\">•  \"Close polygon\"لإغلاق شكل المضلع: أنقر على الزر الأيمن للفارة و اختر   .</div>";
 $Fault = "غير صحيح";
 $HotSpot = "مناطق الصورة";
@@ -2823,8 +2823,8 @@ $backtoTesthome = "عودة إلى بداية الاختبار";
 $MarkIsUpdated = "لقد تم تحديث الدرجة";
 $MarkInserted = "تم ادخال الدرجة";
 $PleaseGiveAMark = "قضلا، أعط  جوابا";
-$EditCommentsAndMarks = "قم بتحرير الاستجابة و الدرجات";
-$AddComments = "إضافة الاستجابة";
+$EditCommentsAndMarks = "تحرير المعلومات المرتجعة المنفردة ومنح درجة للسؤال المفتوح";
+$AddComments = "اضافة معلومات مرتجعة منفردة";
 $Number = "رقم";
 $Weighting = "النتيجة";
 $ChooseQuestionType = "لإنشاء سؤالا جديدا، اختر النوع أعلاه";
@@ -2843,7 +2843,7 @@ $ExerciseStored = " لقد تم تخزين التمرين";
 $ChooseAtLeastOneCheckbox = "اختر على الأقل جوابا واحدا صحيحا";
 $ExerciseEdited = "لقد تم تحرير التمرين";
 $ExerciseDeleted = "لقد تم حذف التمرين";
-$ClickToCommentAndGiveFeedback = "أنقر على الرابط التالي لتحديد الجواب و اعط استجابة";
+$ClickToCommentAndGiveFeedback = "أنقر على الرابط التالي لتحديد الجواب او قم بتقديم معلومات مرتجعة";
 $OpenQuestionsAttempted = " لقد تم الإجابة على سؤال مفتوح من طرف متعلم";
 $AttemptDetails = "تفاصيل المحاولة";
 $TestAttempted = "لقد تم محاولة إجراء الاختبار";
@@ -3661,7 +3661,7 @@ $Menu = "قائمة";
 $BackToUserList = "الرجوع الى قائمة المستخدمين";
 $GraphicNotAvailable = "الرسوم غير متوفرة";
 $BackTo = "العودة الى";
-$HistoryTrainingSessions = "تاريخ المقررات";
+$HistoryTrainingSessions = "مقرراتي السابقة";
 $ConversionFailled = "فشل التحويل";
 $AlreadyExists = "موجود مسبقا";
 $TheNewWordHasBeenAdded = "تم اضافة الكلمة الجديدة";
@@ -3678,7 +3678,7 @@ $WikiAdded = "تم اضافة ويكي";
 $ReadOnly = "القراءة فقط";
 $Unacceptable = "غير مقبول";
 $DisplayTrainingList = "عرض قائمة المقررات";
-$HistoryTrainingSession = "تاريخ المقررات";
+$HistoryTrainingSession = "مقرراتي السابقة";
 $Until = "حتى";
 $FirstPage = "اول صفحة";
 $LastPage = "اخر صفحة";
@@ -4262,7 +4262,7 @@ $ScormScoreColumn = "النقاط";
 $ScormTimeColumn = "الوقت";
 $ScormNeverOpened = "هذا المقرر لم يتم فتحه أبدا من قبل هذا المستخدم";
 $WorkTitle = "العنوان";
-$WorkAuthors = "الكتاب";
+$WorkAuthors = "المؤلفون";
 $WorkDescription = "نبذة";
 $informationsAbout = "متابعة";
 $NoEmail = "لم يتم تحديد أي بريد إلكتروني";
@@ -4670,12 +4670,12 @@ $LastResent = "آخر إعادة إرسال على";
 $kB = "kB";
 $UnsubscribeFromPlatformSuccess = "حسابك %s قد تم ازالته بشكل كامل من النظام. شكرا لبقاءك معنا لبعض الوقت. نأمل ان نراك مرة لاحقا";
 $UploadNewFile = "أرسل ملف جديد";
-$Feedback = "استجابة";
-$CloseFeedback = "أغلق الاستجابة";
-$AddNewFeedback = "أضف الاستجابة التالية";
+$Feedback = "معلومات مرتجعة";
+$CloseFeedback = "اغلاق المعلومات المرتجعة";
+$AddNewFeedback = "اضافة معلومات مرتجعة";
 $DropboxFeedbackStored = "تم حفظ رسالة المعلومات المرتجعة";
-$AllUsersHaveDeletedTheFileAndWillNotSeeFeedback = " .لقد تم حذف الملف من طرف جميع المستخدمين و لهذا لا يمكن لأحد مشاهدة الاستجابة التي تقوم بإضافتها";
-$FeedbackError = "خطأ في الاستجابة";
+$AllUsersHaveDeletedTheFileAndWillNotSeeFeedback = "لقد قام جميع المستخدمين بحذف الملف ولذا فانه لن يتم مشاهدة المعلومات المرتجعة التي تود اضافتها";
+$FeedbackError = "خطأ في المعلومات المرتجعة";
 $PleaseTypeText = ".فضلا، أكتب بعض النص";
 $YouAreNotAllowedToDownloadThisFile = ". غير مسموح لك بتحميل هذا الملف";
 $CheckAtLeastOneFile = ".تحقق على الأقل من ملف واحد";
@@ -4759,7 +4759,7 @@ $HHome = "Help Course Home Page";
 $HomeContent = "<p>The course home page shows a series of tools : an introduction text, a course description, a Documents manager etc. This page is modular : you can hide / show any tool in one clic. Hidden tools can be reactivated at any time.</p><b>Navigation</b><p>To browse your course, you have 2 navigation tools. One on top left is a tree showing where you are and how deep you are in the course. On top right, you can access to a tool through its icon in one clic. Whether you select your course code on left (always UPPER CASE) or the house icon on the right, you will reach the home page of your course. </p><b>Best practice</b><p>To motivate your students, it is important that your course area is a dynamic area. This will indicate that there is 'somebody behind the screen'. A quick way to give this feeling is to edit the Introduction text (clic on yellow pencil) at least evey week to tell latest news, forthcoming deadlines and so on.</p><p>To build your course, it might proove relevant to follow these steps:<ol><li>In Course Settings, check Course Acces : Private and Subscription : Denied. This way, nobody can enter your course area during building process,</li><li>Show all the tools clicking on the grey link below the ones situated at the bottom of the page,</li><li>Use the tools you need to 'fill' your area with content, events, guidelines, tests etc.,</li><li>Hide all tools : your home page is empty in Student view,</li><li>Use the Path tool to structure the way students will visit it and learn with it. This way, you use the other tools, but you don't show them at first sight.</li><li>Click on the eye icon besides the path you created : this path will then show on your home page,</li><li>The preparation of your course area is over. Your home page shows an introdution text followed by one link only and this link drives students through the course. Clic on Student view (top right) to see things from a student point of view.<I></I></li></ol>";
 $HOnline = "Help Live Conferencing system";
 $YouNeedToActivateTheGoogleMapsPluginInAdminPlatformToSeeTheMap = "يجب تفعيل المكون الاضافي لخرائط الكوكل من قبل مدير النظام من اجل عرض الخريطة";
-$HClar = "Chamilo Help";
+$HClar = "مساعدة كاميلو";
 $HDoc = "Help Documents";
 $HUser = "Help Users";
 $HExercise = "Help tests";
@@ -5132,7 +5132,7 @@ $DocModif = "تم تعديل عنوان الصفحة";
 $DocAdd = "لقد تم إضافة الملف لقائمة النشر";
 $DocDel = "تم حذف الملف";
 $TitleWork = "عنوان الملف";
-$Authors = "الكتاب";
+$Authors = "المؤلفون";
 $WorkDelete = "حذف";
 $WorkModify = "تعديل";
 $WorkConfirmDelete = "هل تريد حقا حذف هذا الملف";
@@ -5429,7 +5429,7 @@ $UserChangeToReader = "تم ترقية المستخدم الى قارئ";
 $AddModerator = "اضافة المستخدم كمشرف";
 $JoinGroup = "الانضمام الى المجموعة";
 $YouShouldJoinTheGroup = "يجب عليك الانضمام للمجموعة";
-$WaitingForAdminResponse = "انتظار استجابة المدير";
+$WaitingForAdminResponse = "انتظار معلومات مرتجعة من المدير";
 $Re = "Re";
 $FilesAttachment = "الملفات المرفقة";
 $GroupWaitingList = "قائمة انتظار المجموعة";
@@ -8411,4 +8411,12 @@ $ToTimeX = "الى %s";
 $SurveyInviteLink = "رابط الدعوة للاستبيان";
 $RevisionProposed = "تم تقديم مراجعة";
 $SessionsPlanCalendar = "عرض تقويم المواسم";
+$QuizQuestionsLimitPerDay = "حدود الاسئلة في اليوم";
+$QuizQuestionsLimitPerDayComment = "اذا تم تحديد قيمة اكبر من صفر، فان ذلك سوف يمنع الطالب من الدخول  الى الاختبار الذي فيه من الاسئلة اكثر مما هو متبقي للحد المسموح يوميا. فمثلا لو كان الحد اليومي 50 سؤال والطالب قد اجاب على اختبارين ذات 20 سؤال للاختبار، بالتالي فانه سوف يتم منع الطالب من الدخول الى اختبار اخر ذو 20 سؤال، لكن يمكنه دخول  اختبار ذو 10 اسئلة";
+$QuizQuestionsLimitPerDayXReached = "للاسف، لقد وصلت للحد الاقصى من عدد الاسئلة (%s) لهذا اليوم. يرجى اعادة المحاولة غدا.";
+$VoteLike = "اعجبني";
+$VoteDislike = "لا يعجبني";
+$GenerateStats = "توليد احصاءات";
+$BasicCourseDocuments = "المستندات الاساسية للمقرر";
+$WeekX = "اسبوعX";
 ?>

+ 12 - 0
main/lang/brazilian/trad4all.inc.php

@@ -8257,7 +8257,19 @@ $SeeAllCommunities = "Veja todas as comunidades";
 $HideForumNotifications = "Ocultar notificações do fórum";
 $Forum_categoryFields = "Campos da Categoria do Fórum";
 $Forum_postFields = "Campos de postagem no fórum";
+$ExerciseShowOnlyGlobalScoreAndCorrectAnswers = "Mostrar somente pontuação global (não pontuação da pergunta) e mostrar apenas as respostas corretas, não mostrar respostas incorretas";
 $Reported = "Relatado";
 $FromTimeX = "De %s";
 $ToTimeX = "Para %s";
+$SurveyInviteLink = "Link do convite de pesquisa";
+$RevisionProposed = "Revisão proposta";
+$SessionsPlanCalendar = "Calendário do Plano de Sessões";
+$QuizQuestionsLimitPerDay = "Limite de perguntas por dia";
+$QuizQuestionsLimitPerDayComment = "Se definido como maior que 0, essa opção impedirá que o aluno insira um teste que tenha mais do que o que resta para a mesada diária. Por exemplo, se o limite for 50 e o aluno já tiver feito 2 testes de 20 questões, ele não permitirá que o aluno insira outro teste de 20 perguntas (20 + 20 + 20 = 60> 50). No entanto, ele permitirá que o aluno insira um teste de 10 perguntas (20 + 20 + 10 = 50).";
+$QuizQuestionsLimitPerDayXReached = "Desculpe, você atingiu o número máximo de perguntas (%s) do dia. Por favor, tente novamente amanhã.";
+$VoteLike = "Like";
+$VoteDislike = "Dislike";
+$GenerateStats = "Gerar estatísticas";
+$BasicCourseDocuments = "Documentos básicos do curso";
+$WeekX = "Semana %s";
 ?>

+ 3 - 0
main/lang/english/trad4all.inc.php

@@ -8385,4 +8385,7 @@ $QuizQuestionsLimitPerDayComment = "If set to greater than 0, this option will p
 $QuizQuestionsLimitPerDayXReached = "Sorry, you have reached the maximum number of questions (%s) for the day. Please try again tomorrow.";
 $VoteLike = "Like";
 $VoteDislike = "Dislike";
+$GenerateStats = "Generate statistics";
+$BasicCourseDocuments = "Basic course documents";
+$WeekX = "Week %s";
 ?>

+ 4 - 1
main/lang/french/trad4all.inc.php

@@ -2620,7 +2620,7 @@ $ObjectiveStatus = "Statut";
 $ObjectiveRawScore = "Score";
 $ObjectiveMaxScore = "Score max";
 $ObjectiveMinScore = "Score min";
-$LPName = "Nom du cours";
+$LPName = "Nom du parcours";
 $AuthoringOptions = "Options d'authoring";
 $SaveSection = "Enregistrer la section";
 $AddLinkToCourse = "Ajouter ce lien au cours";
@@ -8317,4 +8317,7 @@ $QuizQuestionsLimitPerDayComment = "Si ce paramètre est configuré à plus de z
 $QuizQuestionsLimitPerDayXReached = "Désolé, vous avez atteint la quantité maximale de questions (%s) par jour. Réessayez demain.";
 $VoteLike = "J'aime";
 $VoteDislike = "Je n'aime pas";
+$GenerateStats = "Générer les statistiques";
+$BasicCourseDocuments = "Documents de base du cours";
+$WeekX = "Semaine %s";
 ?>

+ 7 - 4
main/lang/spanish/trad4all.inc.php

@@ -775,7 +775,7 @@ $CreateNewPoll = "Crear un nuevo sondeo para esta sala";
 $Question = "Pregunta";
 $PollType = "Tipo de sondeo:";
 $InfoConnectedUsersGetNotifiedOfThisPoll = "Info: Cada usuario conectado a esta sala recibirá una notificación de este nuevo sondeo.";
-$YesNo = "Si / No";
+$YesNo = "Sí / No";
 $Numeric1To10 = "Numérico de 1 a 10";
 $Poll = "Sondeo";
 $YouHaveToBecomeModeratorOfThisRoomToStartPolls = "Ud. tiene que ser un moderador de esta sala para poder realizar sondeos.";
@@ -1228,7 +1228,7 @@ $CoursesInCategory = "Cursos en esta categoría";
 $SearchCourse = "Buscar cursos";
 $UpOneCategory = "Una categoría arriba";
 $ConfirmUnsubscribeFromCourse = "¿ Está seguro de querer anular su inscripción en este curso ?";
-$NoCourseCategory = "No asignar el curso a una categoría";
+$NoCourseCategory = "Cursos sin categoría";
 $EditCourseCategorySucces = "El curso ha sido asignado a esta categoría";
 $SubscribingNotAllowed = "Inscripción no permitida";
 $CourseSortingDone = "Ordenación de cursos realizada";
@@ -6682,7 +6682,7 @@ $QuestionsToReview = "Preguntas que desea comprobar";
 $QuestionWithNoAnswer = "Preguntas sin responder";
 $ValidateAnswers = "Validar respuestas";
 $ReviewQuestions = "Revisar las preguntas seleccionadas";
-$YouTriedToResolveThisExerciseEarlier = "Ya intentó resolver esta pregunta anteriormente";
+$YouTriedToResolveThisExerciseEarlier = "Ya intentó resolver este ejercicio anteriormente";
 $NoCookies = "Las cookies no están activadas en su navegador.\nChamilo utiliza \"cookies\" para almacenar sus datos de conexión, por lo que no le será posible entrar si las cookies no están habilitadas. Por favor, cambie la configuración de su navegador y recargue esta página.";
 $NoJavascript = "Su navegador no tiene activado JavaScript.\nChamilo se sirve de JavaScript para proporcionar un interfaz más dinámico. Es probable que muchas prestaciones sigan funcionando pero otras no lo harán, especialmente las relacionadas con la usabilidad. Le recomendamos que cambie la configuración de su navegador y recargue esta página.";
 $NoFlash = "Su navegador no tiene activado el soporte de Flash.\nChamilo sólo se apoya en Flash para algunas de sus funciones por lo que su ausencia no le impedirá continuar. Pero si quiere beneficiarse del conjunto de las herramientas de Chamilo, le recomendamos que instale-active el plugin de Flash y reinicialice su navegador.";
@@ -8339,7 +8339,7 @@ $PercentileScoresDistribution = "Distribución porcentual de notas";
 $ProgressObtainedFromLPProgressAndTestsAverage = "Nota: Este progreso es obtenido a través de una combinación del progreso en las lecciones y de las notas promedias en los ejercicios";
 $CreateNewSurveyDoodle = "Crear una nueva encuesta de tipo Doodle";
 $RemoveMultiplicateQuestions = "Eliminar las preguntas demultiplicadas";
-$MultiplicateQuestions = "Demultiplicar las preguntas";
+$MultiplicateQuestions = "Multiplicar las preguntas";
 $QuestionTags = "Puedes usar las etiquetas {{class_name}} y {{student_full_name}} en la pregunta para poder multiplicar las preguntas.
 En la página de la lista de encuestas en la columna de acción, hay un botón para multiplicar las preguntas que buscará la etiqueta {{class_name}} y duplicará la pregunta para todas las clases inscritas al curso y le cambiará el nombre con el nombre de la clase.
 También agregará un separador de página para hacer una nueva página para cada clase.
@@ -8411,4 +8411,7 @@ $QuizQuestionsLimitPerDayComment = "Si está opción tiene un valor superior a c
 $QuizQuestionsLimitPerDayXReached = "Lo sentimos, ha alcanzado la cantidad máxima de preguntas (%s) por hoy. Vuelva a intentarlo mañana.";
 $VoteLike = "Me gusta";
 $VoteDislike = "No me gusta";
+$GenerateStats = "Generar estatisticas";
+$BasicCourseDocuments = "Documentos básicos del curso";
+$WeekX = "Semana %s";
 ?>

+ 7 - 2
main/session/resume_session.php

@@ -99,12 +99,17 @@ switch ($action) {
         }
 
         if (!empty($_GET['class'])) {
+            $class = (int) $_GET['class'];
             $result = Database::query(
                 "DELETE FROM $tbl_session_rel_class
-                 WHERE session_id='$sessionId' AND class_id=".intval($_GET['class'])
+                 WHERE session_id = $sessionId
+                  AND class_id = $class"
             );
             $nbr_affected_rows = Database::affected_rows($result);
-            Database::query("UPDATE $tbl_session SET nbr_classes=nbr_classes-$nbr_affected_rows WHERE id='$sessionId'");
+            Database::query(
+                "UPDATE $tbl_session 
+                SET nbr_classes = nbr_classes - $nbr_affected_rows 
+                WHERE id = $sessionId");
         }
 
         if (!empty($_GET['user'])) {

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/AgendaStudent.php

@@ -132,7 +132,7 @@ class AgendaStudent extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Youtube', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Documents.php

@@ -84,7 +84,7 @@ class Documents extends Basic
             '/',
             ['Styles', 'Format', 'Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
             api_get_setting('enabled_wiris') === 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
             ['Source'],
         ];
@@ -112,7 +112,7 @@ class Documents extends Basic
                 'Asciisvg',
             ],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Styles',
                 'Format',
                 'Font',

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/DocumentsStudent.php

@@ -148,7 +148,7 @@ class DocumentsStudent extends Basic
                 'Asciisvg',
             ],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             [
                 'Format',
                 'Font',

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/FAQ.php

@@ -88,7 +88,7 @@ class FAQ extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Forum.php

@@ -56,6 +56,7 @@ class Forum extends Basic
                 'JustifyLeft',
                 'JustifyCenter',
                 'JustifyRight',
+                'JustifyBlock',
             ],
         ];
     }
@@ -72,7 +73,7 @@ class Forum extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Oembed', 'Flash', 'Youtube', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
             ['Toolbarswitch'],
         ];

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ForumStudent.php

@@ -99,7 +99,7 @@ class ForumStudent extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Oembed', 'Flash', 'Youtube', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Glossary.php

@@ -42,7 +42,7 @@ class Glossary extends Basic
             '/',
             ['Styles', 'Format', 'Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
         ];
     }
 
@@ -58,7 +58,7 @@ class Glossary extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Messages.php

@@ -85,7 +85,7 @@ class Messages extends Basic
             '/',
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList'],
         ];
     }
 
@@ -101,7 +101,7 @@ class Messages extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Profile.php

@@ -78,7 +78,7 @@ class Profile extends Basic
             '/',
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['Source'],
         ];
     }
@@ -95,7 +95,7 @@ class Profile extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Project.php

@@ -78,7 +78,7 @@ class Project extends Basic
             ['Table', 'leaflet'],
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['Source'],
         ];
     }
@@ -95,7 +95,7 @@ class Project extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor', 'BGColor', 'Source'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectComment.php

@@ -77,7 +77,7 @@ class ProjectComment extends Basic
             ['Image', 'Video', 'Flash', 'Oembed', 'Youtube', 'Audio'],
             ['Table', 'leaflet'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['Source'],
         ];
     }
@@ -94,7 +94,7 @@ class ProjectComment extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'],
             ['Toolbarswitch'],
         ];

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php

@@ -77,7 +77,7 @@ class ProjectCommentStudent extends Basic
             ['Image', 'Video', 'Flash', 'Oembed', 'Youtube', 'Audio'],
             ['Table', 'leaflet'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['ShowBlocks'],
         ];
     }

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectStudent.php

@@ -78,7 +78,7 @@ class ProjectStudent extends Basic
             ['Table', 'leaflet'],
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['Source'],
         ];
     }
@@ -95,7 +95,7 @@ class ProjectStudent extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'],
             ['Toolbarswitch'],
         ];

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Register.php

@@ -40,7 +40,7 @@ class Register extends Basic
             ['Maximize', '-', 'PasteFromWord', '-', 'Undo', 'Redo'],
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
         ];
     }
 
@@ -55,7 +55,7 @@ class Register extends Basic
             ['Toolbarswitch', 'PasteFromWord', '-', 'Undo', 'Redo'],
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
         ];
     }
 }

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Survey.php

@@ -96,7 +96,7 @@ class Survey extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
             ['Toolbarswitch'],
         ];

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php

@@ -105,7 +105,7 @@ class TestFreeAnswer extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestMatching.php

@@ -103,7 +103,7 @@ class TestMatching extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             ['Source', 'Toolbarswitch'],
         ];

+ 1 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiStudent.php

@@ -135,7 +135,7 @@ class WikiStudent extends Basic
             ['Undo', 'Redo'],
             ['Wikilink', 'Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
             ['Toolbarswitch'],

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/WikiTask.php

@@ -77,7 +77,7 @@ class WikiTask extends Basic
             ['Image', 'Video', 'Flash', 'Oembed', 'Youtube', 'Audio'],
             ['Table'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
             ['Source'],
         ];
@@ -95,7 +95,7 @@ class WikiTask extends Basic
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Styles', 'Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],
             api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''],
             ['Toolbarswitch'],

+ 2 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Work.php

@@ -82,7 +82,7 @@ class Work extends Basic
             '/',
             ['Font', 'FontSize'],
             ['Bold', 'Italic', 'Underline'],
-            ['JustifyLeft', 'JustifyCenter', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'NumberedList', 'BulletedList', '-', 'TextColor', 'BGColor'],
             ['Source'],
         ];
     }
@@ -98,7 +98,7 @@ class Work extends Basic
             $this->getNewPageBlock(),
             ['Undo', 'Redo'],
             ['Link', 'Image', 'Video', 'Flash', 'Youtube', 'Audio', 'Table', 'Asciimath'],
-            ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
+            ['JustifyLeft', 'JustifyCenter', 'JustifyRight'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor', 'BGColor'],
             ['Toolbarswitch'],
         ];