Commit 53be5f1c authored by Matija Obreza's avatar Matija Obreza

Model translations with plurals in `client:model.name.*`

parent 3ac42f98
......@@ -37,6 +37,30 @@
"sid": "SID",
"description": "Description"
},
"name": {
"Accession": "Accession",
"Accession_plural": "Accessions",
"CodeValue": "Code value",
"CodeValue_plural": "Code values",
"Cooperator": "Cooperator",
"Cooperator_plural": "Cooperators",
"Crop": "Crop",
"Crop_plural": "Crops",
"Inventory": "Inventory",
"Inventory_plural": "Inventories",
"InventoryGroup": "Inventory group",
"InventoryMaintenancePolicy": "Inventory maintenance policy",
"InventoryMaintenancePolicy_plural": "Inventory maintenance policies",
"InventoryGroup_plural": "Inventory groups",
"OrderRequest": "Request",
"OrderRequest_plural": "Requests",
"OAuthClient": "OAuth client",
"OAuthClient_plural": "OAuth clients",
"Site": "Site",
"Site_plural": "Sites",
"User": "User",
"User_plural": "Users"
},
"Cooperator": {
"id": "Cooperator ID",
"currentCooperator": "Current Cooperator",
......
......@@ -26,6 +26,30 @@
"sid": "SID",
"description": "Description"
},
"name": {
"Accession": "Accession",
"Accession_plural": "Accessions",
"CodeValue": "Code value",
"CodeValue_plural": "Code values",
"Cooperator": "Cooperator",
"Cooperator_plural": "Cooperators",
"Crop": "Crop",
"Crop_plural": "Crops",
"Inventory": "Inventory",
"Inventory_plural": "Inventories",
"InventoryGroup": "Inventory group",
"InventoryMaintenancePolicy": "Inventory maintenance policy",
"InventoryMaintenancePolicy_plural": "Inventory maintenance policies",
"InventoryGroup_plural": "Inventory groups",
"OrderRequest": "Request",
"OrderRequest_plural": "Requests",
"OAuthClient": "OAuth client",
"OAuthClient_plural": "OAuth clients",
"Site": "Site",
"Site_plural": "Sites",
"User": "User",
"User_plural": "Users"
},
"Cooperator": {
"id": "Cooperator ID",
"currentCooperator": "Current Cooperator",
......
......@@ -62,7 +62,7 @@
"description": "Overview of the inventory data"
},
"inventorygroup": {
"title": "Inventory Groups",
"title": "Inventory groups",
"description": "Browse inventory groups"
},
"inventoryadjust": {
......@@ -160,10 +160,6 @@
"text": "Full-text search"
}
}
},
"common": {
"modelName": "Accession",
"modelName_plural": "Accessions"
}
},
"codevalue": {
......@@ -179,10 +175,6 @@
"placeholder": "Select a group"
}
}
},
"common": {
"modelName": "Code value",
"modelName_plural": "Code values"
}
},
"cooperator": {
......@@ -203,10 +195,6 @@
"title": "New cooperator"
}
}
},
"common": {
"modelName": "Cooperator",
"modelName_plural": "Cooperators"
}
},
"crop": {
......@@ -235,10 +223,6 @@
"title": "New crop trait"
}
}
},
"common": {
"modelName": "Crop",
"modelName_plural": "Crops"
}
},
"inventory": {
......@@ -284,10 +268,6 @@
},
"actions": {
"title": "Inventory actions"
},
"common": {
"modelName": "Inventory",
"modelName_plural": "Inventories"
}
},
"inventorygroup": {
......@@ -319,10 +299,6 @@
"accessionCount": "Number of accessions",
"initialSpecies": "Initial species",
"method": "Acquisition method"
},
"common": {
"modelName": "Inventory group",
"modelName_plural": "Inventory groups"
}
},
"inventorypolicy": {
......@@ -338,10 +314,6 @@
"title": "New inventory maintenance policy"
}
}
},
"common": {
"modelName": "Inventory maintenance policy",
"modelName_plural": "Inventory maintenance policies"
}
},
"kpi": {
......@@ -613,10 +585,6 @@
"resultsFor": "Results for: {{name}}"
},
"items": "Request items"
},
"common": {
"modelName": "Request",
"modelName_plural": "Requests"
}
},
"site": {
......@@ -640,10 +608,6 @@
"title": "New site"
}
}
},
"common": {
"modelName": "Site",
"modelName_plural": "Sites"
}
},
"taxonomy": {
......@@ -718,8 +682,6 @@
}
},
"common": {
"modelName": "User",
"modelName_plural": "Users",
"password": "Password",
"oAuth": {
"authorities": {
......
......@@ -32,9 +32,5 @@
"text": "Full-text search"
}
}
},
"common": {
"modelName": "Accession",
"modelName_plural": "Accessions"
}
}
......@@ -11,9 +11,5 @@
"placeholder": "Select a group"
}
}
},
"common": {
"modelName": "Code value",
"modelName_plural": "Code values"
}
}
......@@ -16,9 +16,5 @@
"title": "New cooperator"
}
}
},
"common": {
"modelName": "Cooperator",
"modelName_plural": "Cooperators"
}
}
......@@ -24,9 +24,5 @@
"title": "New crop trait"
}
}
},
"common": {
"modelName": "Crop",
"modelName_plural": "Crops"
}
}
......@@ -41,9 +41,5 @@
},
"actions": {
"title": "Inventory actions"
},
"common": {
"modelName": "Inventory",
"modelName_plural": "Inventories"
}
}
......@@ -27,9 +27,5 @@
"accessionCount": "Number of accessions",
"initialSpecies": "Initial species",
"method": "Acquisition method"
},
"common": {
"modelName": "Inventory group",
"modelName_plural": "Inventory groups"
}
}
......@@ -152,7 +152,7 @@ class InventoryDetailsPage extends React.Component<IDetailsPageProps> {
public handleRemove = () => {
const { removeInventoryGroupAction, t, groupId, inventoryGroupCall } = this.props;
confirm(t('common:label.deleteItemConfirm', { title: inventoryGroupCall.data.groupName, what: t('inventorygroup.common.modelName') }), {
confirm(t('common:label.deleteItemConfirm', { title: inventoryGroupCall.data.groupName, what: t('client:model.name.InventoryGroup') }), {
confirmLabel: t('common:label.yes'),
abortLabel: t('common:label.no'),
}).then(() => {
......
......@@ -11,9 +11,5 @@
"title": "New inventory maintenance policy"
}
}
},
"common": {
"modelName": "Inventory maintenance policy",
"modelName_plural": "Inventory maintenance policies"
}
}
......@@ -60,7 +60,7 @@ class InventoryPolicyDetailsPage extends React.Component<IInventoryPolicyDetails
public handleRemove = () => {
const { removeInventoryPolicyAction, id, inventoryPolicyCall, t } = this.props;
confirm(t('common:label.deleteItemConfirm', { what: t('inventorypolicy.common.modelName'), title: inventoryPolicyCall.data.maintenanceName }), {
confirm(t('common:label.deleteItemConfirm', { what: t('client:model.name.InventoryMaintenancePolicy'), title: inventoryPolicyCall.data.maintenanceName }), {
confirmLabel: t('common:label.yes'),
abortLabel: t('common:label.no'),
}).then(() => {
......
......@@ -37,9 +37,5 @@
"resultsFor": "Results for: {{name}}"
},
"items": "Request items"
},
"common": {
"modelName": "Request",
"modelName_plural": "Requests"
}
}
......@@ -19,9 +19,5 @@
"title": "New site"
}
}
},
"common": {
"modelName": "Site",
"modelName_plural": "Sites"
}
}
......@@ -80,7 +80,7 @@ class BrowsePage extends React.Component<IBrowsePageProps> {
const { t, removeSitesAction } = this.props;
const { selected } = this.state;
confirm(t('common:label.deleteListConfirm', { count: selected.length, what: t('site.common.modelName', { count: selected.length }) }), {
confirm(t('common:label.deleteListConfirm', { count: selected.length, what: t('client:model.name.Site', { count: selected.length }) }), {
confirmLabel: t('common:label.yes'),
abortLabel: t('common:label.no'),
}).then(() => {
......
......@@ -57,7 +57,7 @@ class SiteDetailsPage extends React.Component<ISiteDetailsPage> {
public handleRemove = () => {
const { removeSiteAction, id, t, siteCall } = this.props;
confirm(t('common:label.deleteItemConfirm', { title: siteCall.data.siteLongName, what: t('site.common.modelName') }), {
confirm(t('common:label.deleteItemConfirm', { title: siteCall.data.siteLongName, what: t('client:model.name.Site') }), {
confirmLabel: t('common:label.yes'),
abortLabel: t('common:label.no'),
}).then(() => {
......
......@@ -62,7 +62,7 @@
"description": "Overview of the inventory data"
},
"inventorygroup": {
"title": "Inventory Groups",
"title": "Inventory groups",
"description": "Browse inventory groups"
},
"inventoryadjust": {
......
......@@ -53,8 +53,6 @@
}
},
"common": {
"modelName": "User",
"modelName_plural": "Users",
"password": "Password",
"oAuth": {
"authorities": {
......
......@@ -102,7 +102,7 @@ class BrowsePage extends React.Component<IBrowsePageProps> {
onSortChange={ onSortChange }
/>
<AddNewButton
title="user.common.oAuthClientModelName"
title="client:model.name.OAuthClient"
path="/admin/oauth/edit"
/>
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment