From 8fe6c651e3669a291fc4977a1830c694e7b32906 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Wed, 11 Mar 2020 12:02:12 +0100 Subject: [PATCH] Updated translations --- modules/ticket/front/sale/index.js | 7 +++---- modules/ticket/front/sale/locale/en.yml | 2 +- modules/ticket/front/sale/locale/es.yml | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index e7bf61cfe..6ccc05e9d 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -12,7 +12,7 @@ class Controller { this.edit = {}; this.moreOptions = [ { - name: 'Send SMS', + name: 'Send shortage SMS', callback: this.showSMSDialog }, { name: 'Mark as reserved', @@ -179,10 +179,9 @@ class Controller { totalCheckedLines() { const checkedLines = this.checkedLines(); if (checkedLines) - return checkedLines.length; + return checkedLines.lengt; } - removeCheckedLines() { const sales = this.checkedLines(); @@ -448,7 +447,7 @@ class Controller { this.newSMS = { destinationFk: this.ticket.clientFk, destination: phone, - message: this.$translate.instant('SMSAvailability', params) + message: this.$translate.instant('Product not available', params) }; this.$scope.sms.open(); } diff --git a/modules/ticket/front/sale/locale/en.yml b/modules/ticket/front/sale/locale/en.yml index 469e2a04e..ec7f54160 100644 --- a/modules/ticket/front/sale/locale/en.yml +++ b/modules/ticket/front/sale/locale/en.yml @@ -1,3 +1,3 @@ -SMSAvailability: >- +Product not available: >- Verdnatura communicates: Your order {{ticketFk}} created on {{created | date: "dd/MM/yyyy"}}. {{notAvailables}} not available. Sorry for the inconvenience. \ No newline at end of file diff --git a/modules/ticket/front/sale/locale/es.yml b/modules/ticket/front/sale/locale/es.yml index 74f888f56..8de8427b9 100644 --- a/modules/ticket/front/sale/locale/es.yml +++ b/modules/ticket/front/sale/locale/es.yml @@ -24,7 +24,8 @@ Sales to transfer: Líneas a transferir Destination ticket: Ticket destinatario Change ticket state to 'Ok': Cambiar estado del ticket a 'Ok' Reserved: Reservado -SMSAvailability: "Verdnatura le comunica:\rPedido {{ticketFk}} día {{created | date: 'dd/MM/yyyy'}}.\r{{notAvailables}} no disponible/s.\rDisculpe las molestias." +Send shortage SMS: Enviar SMS faltas +Product not available: "Verdnatura le comunica:\rPedido {{ticketFk}} día {{created | date: 'dd/MM/yyyy'}}.\r{{notAvailables}} no disponible/s.\rDisculpe las molestias." Continue anyway?: ¿Continuar de todas formas? This ticket is now empty: El ticket ha quedado vacio Do you want to delete it?: ¿Quieres eliminarlo?