From 787e5d0ee475e1059b0e108e58033300c0f44bd0 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 30 Jun 2026 11:57:48 +0200 Subject: [PATCH] usage of $p.t('abgabetool/c4paatyp' + typKurzbz) instead of raw bezeichnung for abgabetyp in abgabeterminFormatter for nextTermin/prevTermin cells; added phrasen from feature-77384/ZweitbegutachterSpeichernFix branch; --- .../Cis/Abgabetool/AbgabetoolAssistenz.js | 15 +++---- .../Cis/Abgabetool/AbgabetoolMitarbeiter.js | 11 ++--- system/phrasesupdate.php | 40 +++++++++++++++++++ 3 files changed, 54 insertions(+), 12 deletions(-) diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js b/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js index 8dee0b1e0..3dcf7c0a1 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js @@ -233,13 +233,13 @@ export const AbgabetoolAssistenz = { headerFilterFunc: this.headerFilterTerminCol, sorter: this.sortFuncTerminCol, tooltip: this.toolTipFuncPrevTermin, - field: 'prevTermin', formatter: this.abgabterminFormatter, width: 250, visible: false}, + field: 'prevTermin', formatter: this.abgabeterminFormatter, width: 250, visible: false}, {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4nextAbgabetermin'))), field: 'nextTermin', headerFilter: dateFilter, headerFilterFunc: this.headerFilterTerminCol, sorter: this.sortFuncTerminCol, tooltip: this.toolTipFuncNextTermin, - formatter: this.abgabterminFormatter, width: 250, visible: true}, + formatter: this.abgabeterminFormatter, width: 250, visible: true}, {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4qgate1Status'))), headerFilter: this.qgateHeaderFilterEditor, headerFilterFunc: this.qgateHeaderFilterFunc, @@ -421,7 +421,7 @@ export const AbgabetoolAssistenz = { headerFilter: this.statusHeaderFilterEditor, headerFilterFunc: this.statusHeaderFilterFunc, headerFilterParams: {}, - formatter: this.abgabterminFormatter, + formatter: this.abgabeterminFormatter, formatterParams: { iconOnly: true }, width: 70, tooltip: (e, cell) => this.mapDateStyleToTabulatorTooltip(cell.getValue()) @@ -1643,7 +1643,7 @@ export const AbgabetoolAssistenz = { this.detailIsFullscreen = !this.detailIsFullscreen }, getOptionLabelAbgabetyp(option){ - return option.bezeichnung + return this.$p.t('abgabetool/c4paatyp' + option.paabgabetyp_kurzbz) }, getOptionLabelStg(option){ return option.kurzbzlang + ' ' + option.bezeichnung @@ -1979,7 +1979,7 @@ export const AbgabetoolAssistenz = { return '
' + ''+val+'
' }, - abgabterminFormatter(cell, formatterParams, onRendered,) { + abgabeterminFormatter(cell, formatterParams, onRendered,) { const val = cell.getValue() const dateStyle = val?.dateStyle ?? val @@ -2012,8 +2012,9 @@ export const AbgabetoolAssistenz = { icon = '' break } - - const bezeichnung = val.bezeichnung?.bezeichnung ?? val.bezeichnung + + const typKurzbz = val.paabgabetyp_kurzbz ?? val.bezeichnung?.paabgabetyp_kurzbz + const bezeichnung = this.$p.t('abgabetool/c4paatyp' + typKurzbz) if(formatterParams?.iconOnly) { return '
' + diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js index 6b01c4a9c..f80248b4a 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js @@ -167,13 +167,13 @@ export const AbgabetoolMitarbeiter = { headerFilterFunc: this.headerFilterTerminCol, sorter: this.sortFuncTerminCol, tooltip: this.toolTipFuncPrevTermin, - field: 'prevTermin', formatter: this.abgabterminFormatter, width: 250, visible: false}, + field: 'prevTermin', formatter: this.abgabeterminFormatter, width: 250, visible: false}, {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4nextAbgabetermin'))), field: 'nextTermin', headerFilter: dateFilter, headerFilterFunc: this.headerFilterTerminCol, sorter: this.sortFuncTerminCol, tooltip: this.toolTipFuncNextTermin, - formatter: this.abgabterminFormatter, width: 250, visible: true}, + formatter: this.abgabeterminFormatter, width: 250, visible: true}, {title: Vue.computed(() => this.$capitalize(this.$p.t('abgabetool/c4qgate1Status'))), headerFilter: this.qgateHeaderFilterEditor, headerFilterFunc: this.qgateHeaderFilterFunc, @@ -927,7 +927,7 @@ export const AbgabetoolMitarbeiter = { // seperate check for quality gates this.checkQualityGateStatus(projekt) }, - abgabterminFormatter(cell) { + abgabeterminFormatter(cell) { const val = cell.getValue() if(val) { @@ -959,7 +959,8 @@ export const AbgabetoolMitarbeiter = { break } - const bezeichnung = val.bezeichnung?.bezeichnung ?? val.bezeichnung + const typKurzbz = val.paabgabetyp_kurzbz ?? val.bezeichnung?.paabgabetyp_kurzbz + const bezeichnung = this.$p.t('abgabetool/c4paatyp' + typKurzbz) return '
' + '
' + @@ -1013,7 +1014,7 @@ export const AbgabetoolMitarbeiter = { this.detailIsFullscreen = !this.detailIsFullscreen }, getOptionLabelAbgabetyp(option){ - return option.bezeichnung + return this.$p.t('abgabetool/c4paatyp' + option.paabgabetyp_kurzbz) }, formatDate(dateParam) { return formatISODate(dateParam); diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index dd884178b..00b66b00c 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -51307,6 +51307,46 @@ and represent the current state of research on the topic. The prescribed citatio ) ) ), + array( + 'app' => 'projektarbeitsbeurteilung', + 'category' => 'projektarbeitsbeurteilung', + 'phrase' => 'statusZwischengespeichert', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Zwischengespeichert (Noch nicht an Erstbetreuer*In abgeschickt)', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Temporarily saved (Not yet sent to first reviewer)', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'projektarbeitsbeurteilung', + 'category' => 'projektarbeitsbeurteilung', + 'phrase' => 'statusAbgeschickt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Abgeschickt am', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Sent on', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), // PROJEKTARBEITSBEURTEILUNG SS2025 ENDE --------------------------------------------------------------------------- // CONTRACT MANAGEMENT START array(