Skip to content

Commit

Permalink
User i18n plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 15, 2024
1 parent ad2dd38 commit 084ab91
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/client/public/locale/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"degree": "Grad",
"delete": "Löschen",
"deleteBorehole": "Bohrloch löschen",
"deleteBoreholeMessage": "Wollen Sie dieses Bohrloch wirklich löschen? Dies kann nicht rückgängig gemacht werden.",
"deleteBoreholesMessage": "Wollen Sie diese {{count}} Bohrungen wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
"deleteBoreholesMessage_one": "Wollen Sie diese Bohrung wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
"deleteBoreholesMessage_other": "Wollen Sie diese {{count}} Bohrungen wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.",
"deleteCompletionMessage": "Wollen Sie diesen Ausbau wirklich löschen? Der Ausbau wird zusammen mit seinen Verrohrungen, Instrumentierungen und Verfüllung/Hinterfüllungen dauerhaft gelöscht.",
"deleteForever": "Dauerhaft löschen",
"deleteMessage": "Wollen Sie diesen Eintrag wirklich löschen? Der Eintrag wird dauerhaft aus der Datenbank gelöscht.",
Expand Down
4 changes: 2 additions & 2 deletions src/client/public/locale/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"degree": "Degrees",
"delete": "Delete",
"deleteBorehole": "Delete borehole",
"deleteBoreholeMessage": "Do you really want to delete this borehole? This cannot be undone.",
"deleteBoreholesMessage": "Do you really want to delete these {{count}} boreholes? This cannot be undone.",
"deleteBoreholesMessage_one": "Do you really want to delete this borehole? This cannot be undone.",
"deleteBoreholesMessage_other": "Do you really want to delete these {{count}} boreholes? This cannot be undone.",
"deleteCompletionMessage": "Do you really want to delete this completion? This completion including its casings, instruments and sealing/backfilling will be permanently deleted from the database.",
"deleteForever": "Delete permanently",
"deleteMessage": "Do you really want to delete this entry? The entry will be permanently deleted from the database.",
Expand Down
4 changes: 2 additions & 2 deletions src/client/public/locale/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"degree": "Degrés",
"delete": "Supprimer",
"deleteBorehole": "Supprimer forage",
"deleteBoreholeMessage": "Voulez-vous vraiment effacer ce trou de forage? Cela ne peut pas être annulé.",
"deleteBoreholesMessage": "Voulez-vous vraiment supprimer ces {{count}} forages? Cela ne peut pas être annulé.",
"deleteBoreholesMessage_one": "Voulez-vous vraiment effacer ce trou de forage? Cela ne peut pas être annulé.",
"deleteBoreholesMessage_other": "Voulez-vous vraiment supprimer ces {{count}} forages? Cela ne peut pas être annulé.",
"deleteCompletionMessage": "Voulez-vous vraiment supprimer cet aménagement? Cet aménagement, y compris les tubage, les instruments et les remplissages/remblayages, sera définitivement supprimé de la base de données.",
"deleteForever": "Supprimer définitivement",
"deleteMessage": "Voulez-vous vraiment supprimer cette entrée? L'entrée sera définitivement supprimée de la base de données.",
Expand Down
4 changes: 2 additions & 2 deletions src/client/public/locale/it/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"degree": "Gradi",
"delete": "Elimina",
"deleteBorehole": "Elimina perforazione",
"deleteBoreholeMessage": "Volete davvero cancellare questo foro? Non è possibile annullare questa operazione.",
"deleteBoreholesMessage": "Volete davvero cancellare questi {{count}} fori? Non è possibile annullare questa operazione.",
"deleteBoreholesMessage_one": "Volete davvero cancellare questo foro? Non è possibile annullare questa operazione.",
"deleteBoreholesMessage_other": "Volete davvero cancellare questi {{count}} fori? Non è possibile annullare questa operazione.",
"deleteCompletionMessage": "Volete davvero cancellare questo installazione? Questo installazione, compresi gli tubazione, gli strumenti e i riempimenti/rinterri, sarà cancellato definitivamente dal database.",
"deleteForever": "Elimina definitivamente",
"deleteMessage": "Volete davvero eliminare questa voce? La voce verrà eliminata definitivamente dal database.",
Expand Down
2 changes: 1 addition & 1 deletion src/client/src/pages/detail/detailHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const DetailHeader = () => {
<DeleteButton
label="deleteBorehole"
onClick={() =>
showPrompt(t("deleteBoreholeMessage"), [
showPrompt(t("deleteBoreholesMessage", { count: 1 }), [
{
label: t("cancel"),
},
Expand Down
27 changes: 11 additions & 16 deletions src/client/src/pages/overview/boreholeTable/bottomBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,17 @@ const BottomBar = ({
<DeleteButton
label="delete"
onClick={() =>
showPrompt(
selectionModel.length > 1
? t("deleteBoreholesMessage", { count: selectionModel.length })
: t("deleteBoreholeMessage"),
[
{
label: t("cancel"),
},
{
label: t("delete"),
icon: <TrashIcon />,
variant: "contained",
action: onDeleteMultiple,
},
],
)
showPrompt(t("deleteBoreholesMessage", { count: selectionModel.length }), [
{
label: t("cancel"),
},
{
label: t("delete"),
icon: <TrashIcon />,
variant: "contained",
action: onDeleteMultiple,
},
])
}
/>
{selectionModel.length === 1 && <CopyButton onClick={() => showCopyPromptForSelectedWorkgroup()} />}
Expand Down

0 comments on commit 084ab91

Please sign in to comment.