Skip to content

Commit

Permalink
Fixing broken texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Nov 29, 2023
1 parent 28ae50b commit 1ec128a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,20 @@ private static async void SeedEForms(IServiceCollection services)
}
}

var fieldLabels = await sdkDbContext.FieldTranslations.Where(x => x.Text == "Værktøjshus og håndtag OK").ToListAsync();
foreach (var fieldLabel in fieldLabels)
{
fieldLabel.Text = "Værktøjshus og håndtag OK";
await fieldLabel.Update(sdkDbContext);
}

fieldLabels = await sdkDbContext.FieldTranslations.Where(x => x.Text == "Kæder OK").ToListAsync();
foreach (var fieldLabel in fieldLabels)
{
fieldLabel.Text = "Kæder OK";
await fieldLabel.Update(sdkDbContext);
}

// Seed areas
foreach (var newArea in BackendConfigurationSeedAreas.AreasSeed
.Where(newArea => !context.Areas.Any(x => x.Id == newArea.Id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</DataItem>
<DataItem type="CheckBox">
<Id>375207</Id>
<Label>Værktøjshus og håndtag OK|Tool house and handle OK</Label>
<Label>Værktøjshus og håndtag OK|Tool house and handle OK</Label>
<Description><![CDATA[Tjek for skader, revner, brud mv.|Check for damage, cracks, fractures, etc.]]></Description>
<DisplayOrder>3</DisplayOrder>
<Selected>false</Selected>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</DataItem>
<DataItem type="CheckBox">
<Id>377770</Id>
<Label>Kæder OK|Chains OK</Label>
<Label>Kæder OK|Chains OK</Label>
<Description><![CDATA[Ingen løs befæstning, ikke itu, mv.|No loose fastening, not broken, etc.]]></Description>
<DisplayOrder>2</DisplayOrder>
<Selected>false</Selected>
Expand Down

0 comments on commit 1ec128a

Please sign in to comment.