Skip to content

Commit a8c916a

Browse files
authored
Merge pull request #4401 from crazyserver/MOBILE-4653
Mobile 4653
2 parents 96917c5 + ac6831f commit a8c916a

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

src/addons/badges/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"issueremail": "Email",
2020
"issuername": "Issuer name",
2121
"issuerurl": "Issuer URL",
22-
"moredetails": "More details",
2322
"language": "Language",
23+
"moredetails": "More details",
2424
"nobadges": "There are currently no badges available for users to earn.",
2525
"relatedbages": "Related badges",
2626
"version": "Version"

src/addons/calendar/components/calendar/calendar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI
520520
*/
521521
getPreviousItem(item: MonthBasicData): MonthBasicData | null {
522522
return {
523-
dayJS: item.dayJS.clone().subtract(1, 'month'),
523+
dayJS: item.dayJS.subtract(1, 'month'),
524524
};
525525
}
526526

@@ -529,7 +529,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI
529529
*/
530530
getNextItem(item: MonthBasicData): MonthBasicData | null {
531531
return {
532-
dayJS: item.dayJS.clone().add(1, 'month'),
532+
dayJS: item.dayJS.add(1, 'month'),
533533
};
534534
}
535535

src/addons/calendar/pages/day/day.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export default class AddonCalendarDayPage implements OnInit, OnDestroy {
416416
if (selectedDay) {
417417
// Use current time but in the specified day.
418418
const now = dayjs.tz();
419-
params.timestamp = selectedDay.dayJS.clone().set({ hour: now.hour(), minute: now.minute() }).valueOf();
419+
params.timestamp = selectedDay.dayJS.set({ hour: now.hour(), minute: now.minute() }).valueOf();
420420
}
421421
}
422422

@@ -665,7 +665,7 @@ class AddonCalendarDaySlidesItemsManagerSource extends CoreSwipeSlidesDynamicIte
665665
*/
666666
getPreviousItem(item: DayBasicData): DayBasicData | null {
667667
return {
668-
dayJS: item.dayJS.clone().subtract(1, 'day'),
668+
dayJS: item.dayJS.subtract(1, 'day'),
669669
};
670670
}
671671

@@ -674,7 +674,7 @@ class AddonCalendarDaySlidesItemsManagerSource extends CoreSwipeSlidesDynamicIte
674674
*/
675675
getNextItem(item: DayBasicData): DayBasicData | null {
676676
return {
677-
dayJS: item.dayJS.clone().add(1, 'day'),
677+
dayJS: item.dayJS.add(1, 'day'),
678678
};
679679
}
680680

src/addons/calendar/services/calendar-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class AddonCalendarHelperProvider {
132132
const result = {};
133133

134134
events.forEach((event) => {
135-
const treatedDay = dayjs.tz(event.timestart * 1000);
135+
let treatedDay = dayjs.tz(event.timestart * 1000);
136136
const endDay = dayjs.tz((event.timestart + event.timeduration) * 1000);
137137

138138
// Add the event to all the days it lasts.
@@ -148,7 +148,7 @@ export class AddonCalendarHelperProvider {
148148
}
149149
result[monthId][day].push(event);
150150

151-
treatedDay.add(1, 'day'); // Treat next day.
151+
treatedDay = treatedDay.add(1, 'day'); // Treat next day.
152152
}
153153
});
154154

src/addons/calendar/services/calendar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,10 @@ export class AddonCalendarProvider {
543543
if (date.isSame(today, 'day')) {
544544
return Translate.instant('addon.calendar.today');
545545
}
546-
if (date.isSame(today.clone().subtract(1, 'days'), 'day')) {
546+
if (date.isSame(today.subtract(1, 'days'), 'day')) {
547547
return Translate.instant('addon.calendar.yesterday');
548548
}
549-
if (date.isSame(today.clone().add(1, 'days'), 'day')) {
549+
if (date.isSame(today.add(1, 'days'), 'day')) {
550550
return Translate.instant('addon.calendar.tomorrow');
551551
}
552552

src/addons/coursecompletion/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"confirmselfcompletion": "Confirm self completion",
32
"complete": "Complete",
43
"completecourse": "Complete course",
54
"completed": "Completed",
65
"completiondate": "Completion date",
76
"completionmenuitem": "Completion",
7+
"confirmselfcompletion": "Confirm self completion",
88
"couldnotloadreport": "Could not load the course completion report. Please try again later.",
99
"coursecompletion": "Course completion",
1010
"criteria": "Criteria",

src/addons/mod/assign/lang.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"attempt": "Attempt {{$a}}",
1414
"attempthistory": "Previous attempts",
1515
"attemptnumber": "Attempt number",
16+
"attemptreopenmethod": "Grant attempts",
1617
"attemptreopenmethod_automatic": "Automatically",
1718
"attemptreopenmethod_manual": "Manually",
1819
"attemptreopenmethod_untilpass": "Automatically until pass",
19-
"attemptreopenmethod": "Grant attempts",
2020
"attemptsettings": "Attempt settings",
2121
"beginassignment": "Begin assignment",
2222
"caneditsubmission": "You can edit your submission and submit it after the time limit has expired, but it will be marked as late.",

src/addons/mod/h5pactivity/lang.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"score_out_of": "{{$a.rawscore}} out of {{$a.maxscore}}",
3737
"startdate": "Start date",
3838
"totalscore": "Total score",
39-
"viewattempt": "View attempt {{$a}}",
40-
"view_report": "View report"
39+
"view_report": "View report",
40+
"viewattempt": "View attempt {{$a}}"
4141
}

src/addons/qtype/numerical/lang.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"pleaseenterananswer": "Please enter an answer.",
32
"invalidnumber": "You must enter a valid number.",
4-
"unitnotselected": "You must select a unit.",
5-
"invalidnumbernounit": "You must enter a valid number. Do not include a unit in your response."
3+
"invalidnumbernounit": "You must enter a valid number. Do not include a unit in your response.",
4+
"pleaseenterananswer": "Please enter an answer.",
5+
"unitnotselected": "You must select a unit."
66
}

0 commit comments

Comments
 (0)