Skip to content

Commit 2798fee

Browse files
Merge pull request #6069 from christianbeeznest/fixes-updates66
Internal: Fix language terms and translations
2 parents d1f1a40 + d478c84 commit 2798fee

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Diff for: public/main/inc/ajax/statistics.ajax.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -205,23 +205,23 @@
205205
} elseif ('courses' == $action) {
206206
$courseCategoryRepo = Container::getCourseCategoryRepository();
207207
$categories = $courseCategoryRepo->findAll();
208-
$statsName = 'CountCours';
208+
$statsName = 'Total number of courses';
209209
// total amount of courses
210210
$all = [];
211211
foreach ($categories as $category) {
212212
/* @var Chamilo\CoreBundle\Entity\CourseCategory $category */
213213
$all[$category->getTitle()] = $category->getCourses()->count();
214214
}
215215
} elseif ('courses_by_language' == $action) {
216-
$statsName = 'CountCourseByLanguage';
216+
$statsName = 'Count course by language';
217217
$all = Statistics::printCourseByLanguageStats();
218218
// use slightly different colors than previous chart
219219
for ($k = 0; $k < 3; $k++) {
220220
$item = array_shift($palette);
221221
array_push($palette, $item);
222222
}
223223
} elseif ('users' == $action) {
224-
$statsName = 'NumberOfUsers';
224+
$statsName = 'Number of users';
225225
$countInvisible = isset($_GET['count_invisible']) ? (int) $_GET['count_invisible'] : null;
226226
$all = [
227227
get_lang('Trainers') => Statistics::countUsers(COURSEMANAGER, null, $countInvisible),
@@ -286,7 +286,7 @@
286286
$list = [];
287287
$palette = ChamiloApi::getColorPalette(true, true);
288288

289-
$statsName = 'NumberOfUsers';
289+
$statsName = 'Number of users';
290290
$filter = $_REQUEST['filter'];
291291

292292
$startDate = $_REQUEST['date_start'];
@@ -617,7 +617,7 @@
617617
$list = [];
618618
$palette = ChamiloApi::getColorPalette(true, true);
619619

620-
$statsName = 'NumberOfUsers';
620+
$statsName = 'Number of users';
621621
$filter = $_REQUEST['filter'];
622622

623623
$startDate = Database::escape_string($_REQUEST['date_start']);

Diff for: public/main/my_space/myStudents.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@
20322032
$i++;
20332033
}
20342034
} else {
2035-
echo '<tr><td colspan="6">'.get_lang('NoTest').'</td></tr>';
2035+
echo '<tr><td colspan="6">'.get_lang('There is no test for the moment').'</td></tr>';
20362036
}
20372037
echo '</tbody></table></div>';
20382038
}

Diff for: public/main/template/default/tracking/tracking_course_log.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $(() => {
5858
data: {
5959
labels: ["0-9%", "10-19%", "20-29%", "30-39%", "40-49%", "50-59%", "60-69%", "70-79%", "80-89%", "90-100%"],
6060
datasets: [{
61-
label: '{{ "NumberOfUsers"|get_lang|e('js') }}',
61+
label: '{{ "Number of users"|get_lang|e('js') }}',
6262
data: {{ score_distribution|raw }},
6363
backgroundColor: {{ chart_colors|raw }},
6464
borderColor: {{ chart_colors|raw }},
@@ -74,7 +74,7 @@ $(() => {
7474
y: {
7575
position: "left",
7676
title: {
77-
text: '{{ "NumberOfUsers"|get_lang|e('js') }}',
77+
text: '{{ "Number of users"|get_lang|e('js') }}',
7878
display: true
7979
},
8080
ticks: {

Diff for: public/main/tracking/exams.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@
376376
} else {
377377
$html .= "<tr>
378378
<td colspan='6'>
379-
".get_lang('NoTest')."
379+
".get_lang('There is no test for the moment')."
380380
</td>
381381
</tr>
382382
";
383383
}
384384
} else {
385385
$html .= "<tr>
386386
<td colspan='6'>
387-
".get_lang('NoTest')."
387+
".get_lang('There is no test for the moment')."
388388
</td>
389389
</tr>
390390
";

0 commit comments

Comments
 (0)