From 7fed1d231ca3c0dd2444f61ad307ac86ca269aed Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Fri, 14 Feb 2025 14:49:28 +0100 Subject: [PATCH 01/16] p.t( -> $p.t( in stundenplan & mylv components, added missing phrasen; WIP adding phrasen keys for noten, maybe for lva titles --- public/js/components/Calendar/Day/Page.js | 2 +- public/js/components/Cis/Mylv/LvMenu.js | 4 +- public/js/components/Cis/Mylv/LvModal.js | 2 +- .../Cis/Mylv/Semester/Studiengang/Lv.js | 7 ++-- public/js/components/Cis/Mylv/Student.js | 4 +- .../components/Cis/Stundenplan/Stundenplan.js | 10 ++--- .../components/DashboardWidget/Stundenplan.js | 4 +- system/phrasesupdate.php | 40 +++++++++++++++++++ 8 files changed, 57 insertions(+), 16 deletions(-) diff --git a/public/js/components/Calendar/Day/Page.js b/public/js/components/Calendar/Day/Page.js index 3d5cc5f02..70bccc49d 100644 --- a/public/js/components/Calendar/Day/Page.js +++ b/public/js/components/Calendar/Day/Page.js @@ -368,7 +368,7 @@ export default {
-

Keine Lehrveranstaltungen

+

{{ $p.t('lehre/noLvFound') }}

diff --git a/public/js/components/Cis/Mylv/LvMenu.js b/public/js/components/Cis/Mylv/LvMenu.js index e64dbd667..1183c6ff0 100644 --- a/public/js/components/Cis/Mylv/LvMenu.js +++ b/public/js/components/Cis/Mylv/LvMenu.js @@ -56,11 +56,11 @@ export default { }, }, template:/*html*/` -
No Menu available
+
{{$p.t('lehre','lehrveranstaltungsUnavailable')}}
diff --git a/public/js/components/Cis/Stundenplan/Stundenplan.js b/public/js/components/Cis/Stundenplan/Stundenplan.js index d35c9c536..8fc9b77d4 100644 --- a/public/js/components/Cis/Stundenplan/Stundenplan.js +++ b/public/js/components/Cis/Stundenplan/Stundenplan.js @@ -206,15 +206,15 @@ export const Stundenplan = {
-

Lehrveranstaltung:

+

{{ $p.t('lehre/lehrveranstaltung') }}:

{{event?.orig.topic}}

-

Lektor:

+

{{ $p.t('lehre/lektor') }}:

{{lektor.kurzbz}}

-

Ort:

+

{{ $p.t('profil/Ort') }}:

{{event?.orig.ort_kurzbz}}

@@ -224,11 +224,11 @@ export const Stundenplan = {
-

Lehrveranstaltungs Menu

+

{{$p.t('lehre','lehrveranstaltungsmenue')}}

` diff --git a/public/js/components/DashboardWidget/Stundenplan.js b/public/js/components/DashboardWidget/Stundenplan.js index bf4324f4a..7bb972590 100644 --- a/public/js/components/DashboardWidget/Stundenplan.js +++ b/public/js/components/DashboardWidget/Stundenplan.js @@ -192,11 +192,11 @@ export default {
- {{ p.t('lehre/noLvFound') }} + {{ $p.t('lehre/noLvFound') }}
- {{ p.t('lehre/noLvFound') }} + {{ $p.t('lehre/noLvFound') }}
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index d841acc85..f34f32b9f 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -37237,6 +37237,46 @@ array( ) ) ), + array( + 'app' => 'core', + 'category' => 'lehre', + 'phrase' => 'lehrveranstaltungsmenue', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Lehrveranstaltungsmenü', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Course Menu', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'lehre', + 'phrase' => 'lehrveranstaltungsmenueUnavailable', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Kein Lehrveranstaltungsmenü verfügbar', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'No Course Menu available', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'lehre', From 92ba4aea9a222ce16ba11bbe710764ce610b29a7 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Fri, 14 Feb 2025 14:53:19 +0100 Subject: [PATCH 02/16] return year as number not as string --- public/js/composables/CalendarDate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/composables/CalendarDate.js b/public/js/composables/CalendarDate.js index f2f8c93f0..e85cbeeac 100644 --- a/public/js/composables/CalendarDate.js +++ b/public/js/composables/CalendarDate.js @@ -71,9 +71,9 @@ class CalendarDate { } get wYear() { if( this.w === 1 ) { - return this.cdLastDayOfWeek.format({ year: 'numeric' }); + return this.cdLastDayOfWeek.y; } - return this.cdFirstDayOfWeek.format({ year: 'numeric' }); + return this.cdFirstDayOfWeek.y; } get wd() { if (this._wd === null) { @@ -271,4 +271,4 @@ CalendarDate.getWeekStart = function(locale) { } } -export default CalendarDate \ No newline at end of file +export default CalendarDate From b01400d21c91ee98b9963f83a65c6c1f6fd37844 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Fri, 14 Feb 2025 14:55:57 +0100 Subject: [PATCH 03/16] remove unused data declaration --- public/js/components/Calendar/Weeks.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/js/components/Calendar/Weeks.js b/public/js/components/Calendar/Weeks.js index 530cfe90e..844101b88 100644 --- a/public/js/components/Calendar/Weeks.js +++ b/public/js/components/Calendar/Weeks.js @@ -8,8 +8,6 @@ export default { 'size', 'focusDate' ], - data() { - }, computed: { weeks(){ return [...Array(this.focusDate.numWeeks).keys()].map(i => i + 1); From f6f06c4d5e7ea05dfa5fe4b36aebfeeb319713f1 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Fri, 14 Feb 2025 14:58:12 +0100 Subject: [PATCH 04/16] use attribute binding since value should be boolean --- public/js/components/Cis/Mylv/LvModal.js | 4 ++-- public/js/components/Cis/Profil/ProfilModal/EditProfil.js | 2 +- public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/components/Cis/Mylv/LvModal.js b/public/js/components/Cis/Mylv/LvModal.js index ee843ecb6..9c42e312f 100644 --- a/public/js/components/Cis/Mylv/LvModal.js +++ b/public/js/components/Cis/Mylv/LvModal.js @@ -68,7 +68,7 @@ export default { return BsModal.popup.bind(this)(null, options); }, template: /*html*/ ` - + `, -}; \ No newline at end of file +}; diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js index ba5702bc9..cbfde34be 100644 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js @@ -181,7 +181,7 @@ export default { return BsModal.popup(null, options); }, template: /*html*/ ` - +