Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(wizards/reportcontrol): add translation for add report log m… #635

Merged
merged 1 commit into from
Mar 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,28 +293,28 @@ export const de: Translations = {
subscription: {
none: 'Keine Verbindung vorhanden',
publisherGoose: {
title: 'GOOSE-Publizierer'
title: 'GOOSE-Publizierer',
},
subscriberIed: {
title: 'Verbunden mit {{ selected }}',
subscribed: 'Verbunden',
availableToSubscribe: 'Kann verbunden werden',
partiallySubscribed: 'Teilweise verbunden',
noGooseMessageSelected: 'Keine GOOSE ausgewählt'
}
noGooseMessageSelected: 'Keine GOOSE ausgewählt',
},
},
sampledvalues: {
none: 'Keine Verbindung vorhanden',
sampledValuesList: {
title: 'Sampled Values'
title: 'Sampled Values',
},
subscriberIed: {
title: 'Verbunden mit {{ selected }}',
subscribed: 'Verbunden',
availableToSubscribe: 'Kann verbunden werden',
partiallySubscribed: 'Teilweise verbunden',
noSampledValuesSelected: 'Keinen Kontrollblock ausgewählt'
}
noSampledValuesSelected: 'Keinen Kontrollblock ausgewählt',
},
},
'enum-val': {
wizard: {
Expand Down Expand Up @@ -523,6 +523,7 @@ export const de: Translations = {
controlblock: {
action: {
edit: '{{type}} "{{name}}" in IED {{iedName}} bearbeitet',
add: '{{type}} "{{name}}" zu IED {{iedName}} hinzugefügt',
remove:
'{{type}} "{{name}}" and referenzierte Element von IED {{iedName}} entfernt',
},
Expand Down
16 changes: 9 additions & 7 deletions src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,28 +289,28 @@ export const en = {
subscription: {
none: 'None',
publisherGoose: {
title: 'GOOSE publisher'
title: 'GOOSE publisher',
},
subscriberIed: {
title: 'Subscriber of {{ selected }}',
subscribed: 'Subscribed',
availableToSubscribe: 'Available to subscribe',
partiallySubscribed: 'Partially subscribed',
noGooseMessageSelected: 'No GOOSE message selected'
}
noGooseMessageSelected: 'No GOOSE message selected',
},
},
sampledvalues: {
none: 'none',
sampledValuesList: {
title: 'Sampled Values'
title: 'Sampled Values',
},
subscriberIed: {
title: 'Subscriber of {{ selected }}',
subscribed: 'Subscribed',
availableToSubscribe: 'Available to subscribe',
partiallySubscribed: 'Partially subscribed',
noSampledValuesSelected: 'No control block selected'
}
noSampledValuesSelected: 'No control block selected',
},
},
'enum-val': {
wizard: {
Expand Down Expand Up @@ -512,12 +512,14 @@ export const en = {
unreferencedDataSets: {
title: 'Unreferenced Datasets',
deleteButton: 'Remove Selected Datasets',
tooltip: 'Datasets without a reference to an associated GOOSE, Log, Report or Sampled Value Control Block'
tooltip:
'Datasets without a reference to an associated GOOSE, Log, Report or Sampled Value Control Block',
},
},
controlblock: {
action: {
edit: 'Edited {{type}} "{{name}}" in IED {{iedName}}',
add: 'Added {{type}} "{{name}}" to IED {{iedName}}',
remove:
'Removed {{type}} "{{name}}" and its referenced elements from IED {{iedName}}',
},
Expand Down
9 changes: 8 additions & 1 deletion src/wizards/reportcontrol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,15 @@ function createReportControlAction(parent: Element): WizardActor {
dataSet.appendChild(element);
}

const name = reportControlAttrs['name']!;
const iedName = parent.closest('IED')!.getAttribute('name')!;

const complexAction = {
title: 'Create ReportControl',
title: get('controlblock.action.add', {
type: 'Report',
name,
iedName,
}),
actions: [
{ new: { parent, element: reportControl } },
{ new: { parent, element: dataSet } },
Expand Down