@@ -47,21 +47,21 @@ function extractSignal104Data(addressElement: Element, doc: XMLDocument): Extrac
47
47
48
48
// By convention the last four digits of the ioa are the signalnumber, see https://github.com/com-pas/compas-open-scd/issues/334
49
49
if ( ti === null || ioa === null || ioa . length < 4 ) {
50
- return { signal : null , error : get ( 'protocol104.export .errors.tiOrIoaInvalid' , { ti : ti ?? '' , ioa : ioa ?? '' } ) } ;
50
+ return { signal : null , error : get ( 'compas.export104 .errors.tiOrIoaInvalid' , { ti : ti ?? '' , ioa : ioa ?? '' } ) } ;
51
51
}
52
52
const { signalNumber, bayName } = splitIoa ( ioa ) ;
53
53
54
54
const signalType = getSignalType ( ti ) ;
55
55
if ( signalType === SignalType . Unknown ) {
56
- return { signal : null , error : get ( 'protocol104.export .errors.unknownSignalType' , { ti : ti ?? '' , ioa : ioa ?? '' } ) } ;
56
+ return { signal : null , error : get ( 'compas.export104 .errors.unknownSignalType' , { ti : ti ?? '' , ioa : ioa ?? '' } ) } ;
57
57
}
58
58
const isMonitorSignal = signalType === SignalType . Monitor ;
59
59
60
60
addressElement . parentElement ;
61
61
const parentDOI = addressElement . closest ( 'DOI' ) ;
62
62
63
63
if ( ! parentDOI ) {
64
- return { signal : null , error : get ( 'protocol104.export .errors.noDoi' , { ioa : ioa ?? '' } ) } ;
64
+ return { signal : null , error : get ( 'compas.export104 .errors.noDoi' , { ioa : ioa ?? '' } ) } ;
65
65
}
66
66
67
67
const doiDesc = parentDOI . getAttribute ( 'desc' ) ;
@@ -70,20 +70,20 @@ function extractSignal104Data(addressElement: Element, doc: XMLDocument): Extrac
70
70
const parentBay = doc . querySelector ( parentBayQuery ) ;
71
71
72
72
if ( ! parentBay ) {
73
- return { signal : null , error : get ( 'protocol104.export .errors.noBay' , { bayName, ioa : ioa ?? '' } ) } ;
73
+ return { signal : null , error : get ( 'compas.export104 .errors.noBay' , { bayName, ioa : ioa ?? '' } ) } ;
74
74
}
75
75
76
76
const parentVoltageLevel = parentBay . closest ( 'VoltageLevel' ) ;
77
77
78
78
if ( ! parentVoltageLevel ) {
79
- return { signal : null , error : get ( 'protocol104.export .errors.noVoltageLevel' , { bayName, ioa : ioa ?? '' } ) } ;
79
+ return { signal : null , error : get ( 'compas.export104 .errors.noVoltageLevel' , { bayName, ioa : ioa ?? '' } ) } ;
80
80
}
81
81
82
82
const voltageLevelName = parentVoltageLevel . getAttribute ( 'name' ) ;
83
83
const parentSubstation = parentVoltageLevel . closest ( 'Substation' ) ;
84
84
85
85
if ( ! parentSubstation ) {
86
- return { signal : null , error : get ( 'protocol104.export .errors.noSubstation' , { voltageLevelName : voltageLevelName ?? '' , ioa : ioa ?? '' } ) } ;
86
+ return { signal : null , error : get ( 'compas.export104 .errors.noSubstation' , { voltageLevelName : voltageLevelName ?? '' , ioa : ioa ?? '' } ) } ;
87
87
}
88
88
89
89
const substationName = parentSubstation . getAttribute ( 'name' ) ;
0 commit comments