diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue index cfad178f7d..579a8e70a2 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue @@ -324,10 +324,10 @@ export default { .then(response => { if (response.status == 200) { this.$router.push("/cgi-bin/koha/erm/agreements") - setMessage('Agreement updated') + setMessage(this.$t("Agreement updated")) } else if (response.status == 201) { this.$router.push("/cgi-bin/koha/erm/agreements") - setMessage('Agreement created') + setMessage(this.$t("Agreement created")) } else { setError(response.message || response.statusText) } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormConfirmDelete.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormConfirmDelete.vue index 230a3750f7..a3f1931cef 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormConfirmDelete.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormConfirmDelete.vue @@ -73,7 +73,7 @@ export default { .then( (response) => { if (response.status == 204) { - setMessage("Agreement deleted") + setMessage(this.$t("Agreement deleted")) this.$router.push("/cgi-bin/koha/erm/agreements") } else { setError(response.message || response.statusText) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue index a3bab1f2da..7a0de1dd12 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormAdd.vue @@ -206,10 +206,10 @@ export default { .then(response => { if (response.status == 200) { this.$router.push("/cgi-bin/koha/erm/licenses") - setMessage('License updated') + setMessage(this.$t("License updated")) } else if (response.status == 201) { this.$router.push("/cgi-bin/koha/erm/licenses") - setMessage('License created') + setMessage(this.$t("License created")) } else { setError(response.message || response.statusText) } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormConfirmDelete.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormConfirmDelete.vue index dbf07af4c5..1846901823 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormConfirmDelete.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesFormConfirmDelete.vue @@ -74,7 +74,7 @@ export default { (response) => { if (response.status == 204) { this.$router.push("/cgi-bin/koha/erm/licenses") - setMessage("License deleted") + setMessage(this.$t("License deleted")) } else { setError(response.message || response.statusText) } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormAdd.vue index 43a713104b..e59725d695 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormAdd.vue @@ -189,10 +189,10 @@ export default { .then(response => { if (response.status == 200) { this.$router.push("/cgi-bin/koha/erm/packages") - setMessage('Package updated') + setMessage(this.$t("Package updated")) } else if (response.status == 201) { this.$router.push("/cgi-bin/koha/erm/packages") - setMessage('Package created') + setMessage(this.$t("Package created")) } else { setError(response.message || response.statusText) } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormConfirmDelete.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormConfirmDelete.vue index 32329975e7..4ee84508f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormConfirmDelete.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/PackagesFormConfirmDelete.vue @@ -68,7 +68,7 @@ export default { .then( (response) => { if (response.status == 204) { - setMessage("Package deleted") + setMessage(this.$t("Package deleted")) this.$router.push("/cgi-bin/koha/erm/packages") } else { setError(response.message || response.statusText) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json b/koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json index 78f05727a5..73cd8406f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/locales/en.json @@ -23,7 +23,7 @@ "Physical location": "Physical location", "URI:": "URI", "URI": "URI", - "Notes:": "", + "Notes:": "Notes:", "Notes": "Notes", "Agreement license": { "counter": "Agreement license %{counter}" @@ -49,7 +49,7 @@ "Related agreement:": "Related agreement:", "Relationship:": "Relationship:", "Add new related agreement": "Add new related agreement", - "There are no other agreements created yet": "There are no other agreements created yet", + "There are no other agreements created yet": "There are no other agreements created yet.", "Edit agreement": { "id": "Edit agreement #%{id}" }, @@ -68,7 +68,8 @@ "No, do not delete": "No, do not delete", "There are no agreements defined": "There are no agreements defined.", "Agreement": { - "id": "Agreement #%{id}" + "id": "Agreement #%{id}", + "counter": "Agreement %{counter}" }, "Edit": "Edit", "Delete": "Delete", @@ -100,14 +101,45 @@ "Submit": "Submit", "Delete license": "Delete license", "Yes, delete": "Yes, delete", - "There are no licenses defined": "There are no licenses defined", + "There are no licenses defined": "There are no licenses defined.", "License": { - "id": "License #%{counter}" + "id": "License #%{id}" }, "Started on:": "Started on:", "Ended on:": "Ended on:", "Cancellation deadline:": "Cancellation deadline:", "Loading": "Loading", "Add new document": "Add new document", - "License name": "License name" + "License name": "License name", + "Packages": "Packages", + "Edit package": { + "id": "Edit package #%{id}" + }, + "New package": "New package", + "Package name:": "Package name:", + "Package name": "Package name", + "Type: ": "Type:", + "Content type: ": "Content type:", + "Delete package": "Delete package", + "There are no packages defined": "There are no packages defined.", + "Package": { + "id": "Package #%{id}" + }, + "External ID:": "External ID:", + "Package type:": "Package type:", + "Content type:": "Content type:", + "Created on:": "Created on:", + "Remove this agreement": "Remove this agreement", + "Agreement:": "Agreement:", + "Add new agreement": "Add new agreement", + "There are no agreements created yet": "There are no agreements created yet.", + "Agreement updated": "Agreement updated", + "Agreement created": "Agreement created", + "Agreement deleted": "Agreement deleted", + "License updated": "License updated", + "License created": "License created", + "License deleted": "License deleted", + "Package updated": "Package updated", + "Package created": "Package created", + "Package deleted": "Package deleted" } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json b/koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json index 51c0cfdf20..ca58e41044 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/locales/fr-FR.json @@ -67,7 +67,8 @@ "No, do not delete": "", "There are no agreements defined": "", "Agreement": { - "id": "" + "id": "", + "counter": "" }, "Edit": "", "Delete": "", @@ -109,5 +110,36 @@ "There are no licenses created yet": "", "Cancellation deadline:": "", "Add new document": "", - "License name": "" + "License name": "", + "Packages": "", + "Edit package": { + "id": "" + }, + "New package": "", + "Package name:": "", + "Package name": "", + "Type: ": "", + "Content type: ": "", + "Delete package": "", + "There are no packages defined": "", + "Package": { + "id": "" + }, + "External ID:": "", + "Package type:": "", + "Content type:": "", + "Created on:": "", + "Remove this agreement": "", + "Agreement:": "", + "Add new agreement": "", + "There are no agreements created yet": "", + "Agreement updated": "", + "Agreement created": "", + "Agreement deleted": "", + "License updated": "", + "License created": "", + "License deleted": "", + "Package updated": "", + "Package created": "", + "Package deleted": "" } \ No newline at end of file