Add missing translations for news admin page.

This commit is contained in:
2020-05-24 20:47:46 +01:00
parent dc9ca71409
commit d554552a90
2 changed files with 15 additions and 3 deletions

View File

@@ -81,15 +81,15 @@
<ModalBackdrop/>
<ModalContent Centered="true">
<ModalHeader>
<ModalTitle>Delete news</ModalTitle>
<ModalTitle>@L["Delete news"]</ModalTitle>
<CloseButton Clicked="@HideModal"/>
</ModalHeader>
<ModalBody>
<Text>@string.Format(@L["Are you sure you want to delete the news type {0} from {1} that affect artifact ID {2}?"], _currentNews?.Type, _currentNews?.Timestamp, _currentNews?.AffectedId)</Text>
</ModalBody>
<ModalFooter>
<Button Color="Color.Primary" Clicked="@HideModal" Disabled="@_deleteInProgress">Close</Button>
<Button Color="Color.Danger" Clicked="@ConfirmDelete" Disabled="@_deleteInProgress">Delete</Button>
<Button Color="Color.Primary" Clicked="@HideModal" Disabled="@_deleteInProgress">@L["Cancel"]</Button>
<Button Color="Color.Danger" Clicked="@ConfirmDelete" Disabled="@_deleteInProgress">@L["Delete"]</Button>
</ModalFooter>
</ModalContent>
</Modal>

View File

@@ -170,4 +170,16 @@
<value>ID afectado</value>
<comment>Affected ID</comment>
</data>
<data name="Delete news" xml:space="preserve">
<value>Borrar noticia</value>
<comment>Delete news (singular)</comment>
</data>
<data name="Are you sure you want to delete the news type {0} from {1} that affect artifact ID {2}?" xml:space="preserve">
<value>¿Está seguro de que desea borrar la noticia tipo {0} del {1} que afecta al artefacto ID {2}?</value>
<comment>{0} news type, {1} date, {2} affected id number</comment>
</data>
<data name="Cancel" xml:space="preserve">
<value>Cancelar</value>
<comment>Cancel delete</comment>
</data>
</root>