From 5d789b0e71eb6a551d827aa38aca1bc4e687a005 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 7 Jun 2017 08:39:40 +0200 Subject: [PATCH] Locales --- .../src/address-create/address-create.html | 22 ++++++++--------- .../client/src/address-create/locale/es.json | 12 ++++++++++ .../client/src/address-edit/address-edit.html | 24 +++++++++---------- .../client/src/address-edit/address-edit.js | 12 +++++++++- client/client/src/address-edit/locale/es.json | 3 +++ client/client/src/addresses/addresses.html | 13 +++++----- client/client/src/addresses/locale/es.json | 3 +++ client/client/src/basic-data/basic-data.html | 18 +++++++------- client/client/src/basic-data/locale/es.json | 12 ++++++++++ client/client/src/descriptor/descriptor.html | 2 +- client/client/src/index/item-client.html | 8 +++---- client/client/src/index/locale/es.json | 7 ++++++ client/client/src/locale/en.json | 5 +++- client/client/src/locale/es.json | 5 +++- client/client/src/note-create/locale/es.json | 4 ++++ .../client/src/note-create/note-create.html | 6 ++--- client/client/src/notes/locale/es.json | 3 +++ client/client/src/notes/notes.html | 8 +++---- client/client/src/search-panel/locale/es.json | 10 ++++++++ .../client/src/search-panel/search-panel.html | 14 +++++------ client/client/src/web-access/locale/es.json | 2 ++ client/client/src/web-access/web-access.html | 8 +++---- client/core/src/locale/en.json | 5 +++- client/core/src/locale/es.json | 5 +++- client/core/src/title/title.html | 2 +- 25 files changed, 146 insertions(+), 67 deletions(-) create mode 100644 client/client/src/address-create/locale/es.json create mode 100644 client/client/src/address-edit/locale/es.json create mode 100644 client/client/src/addresses/locale/es.json create mode 100644 client/client/src/basic-data/locale/es.json create mode 100644 client/client/src/index/locale/es.json create mode 100644 client/client/src/note-create/locale/es.json create mode 100644 client/client/src/notes/locale/es.json create mode 100644 client/client/src/search-panel/locale/es.json diff --git a/client/client/src/address-create/address-create.html b/client/client/src/address-create/address-create.html index f76a89a8d..7ba544463 100644 --- a/client/client/src/address-create/address-create.html +++ b/client/client/src/address-create/address-create.html @@ -8,23 +8,23 @@
- Consignatario + Address - + - - + + - - + + + label="Province"> @@ -33,14 +33,14 @@ url="/client/api/AgencyServices" show-field="name" value-field="id" - label="Agencia"> + label="Agency"> - - + + - +
diff --git a/client/client/src/address-create/locale/es.json b/client/client/src/address-create/locale/es.json new file mode 100644 index 000000000..b152c77a6 --- /dev/null +++ b/client/client/src/address-create/locale/es.json @@ -0,0 +1,12 @@ +{ + "Address": "Consignatario", + "Default": "Predeterminado", + "Consignee": "Consignatario", + "Street": "Dirección", + "Postcode": "Código postal", + "City": "Municipio", + "Province": "Provincia", + "Agency": "Agencia", + "Phone": "Teléfono", + "Mobile": "Móvil" +} \ No newline at end of file diff --git a/client/client/src/address-edit/address-edit.html b/client/client/src/address-edit/address-edit.html index a34dddee0..7b6a5d5e8 100644 --- a/client/client/src/address-edit/address-edit.html +++ b/client/client/src/address-edit/address-edit.html @@ -9,24 +9,24 @@
- Consignatario + Address - - + + - - + + - - + + + label="Province"> @@ -35,14 +35,14 @@ url="/client/api/AgencyServices" show-field="name" value-field="id" - label="Agencia"> + label="Agency"> - - + + - +
diff --git a/client/client/src/address-edit/address-edit.js b/client/client/src/address-edit/address-edit.js index 0605a3c02..caad023e2 100644 --- a/client/client/src/address-edit/address-edit.js +++ b/client/client/src/address-edit/address-edit.js @@ -1,5 +1,15 @@ import ngModule from '../module'; +export default class Controller { + constructor($state) { + this.address = { + id: parseInt($state.params.addressId) + }; + } +} +Controller.$inject = ['$state']; + ngModule.component('vnAddressEdit', { - template: require('./address-edit.html') + template: require('./address-edit.html'), + controller: Controller }); diff --git a/client/client/src/address-edit/locale/es.json b/client/client/src/address-edit/locale/es.json new file mode 100644 index 000000000..8598f616c --- /dev/null +++ b/client/client/src/address-edit/locale/es.json @@ -0,0 +1,3 @@ +{ + "Enabled": "Activo" +} \ No newline at end of file diff --git a/client/client/src/addresses/addresses.html b/client/client/src/addresses/addresses.html index 1b11b1931..0df5820f3 100644 --- a/client/client/src/addresses/addresses.html +++ b/client/client/src/addresses/addresses.html @@ -3,17 +3,17 @@ - Consignatario + Addresses -
{{i.consignee}}
-
{{i.street}}
-
{{i.city}}, {{i.province}}
-
{{i.phone}}, {{i.mobile}}
+
{{::i.consignee}}
+
{{::i.street}}
+
{{::i.city}}, {{::i.province}}
+
{{::i.phone}}, {{::i.mobile}}
@@ -27,6 +27,7 @@ + icon="add" + label="Add">
diff --git a/client/client/src/addresses/locale/es.json b/client/client/src/addresses/locale/es.json new file mode 100644 index 000000000..5240a6563 --- /dev/null +++ b/client/client/src/addresses/locale/es.json @@ -0,0 +1,3 @@ +{ + "Addresses": "Consignatarios" +} \ No newline at end of file diff --git a/client/client/src/basic-data/basic-data.html b/client/client/src/basic-data/basic-data.html index 5563d1e7d..072aa036a 100644 --- a/client/client/src/basic-data/basic-data.html +++ b/client/client/src/basic-data/basic-data.html @@ -8,15 +8,15 @@
- Datos básicos + Basic data - - - + + + - - + + @@ -28,7 +28,7 @@ show-field="name" value-field="id" select-fields="surname" - label="Comercial"> + label="Salesperson"> {{::i.name}} {{::i.surname}} @@ -37,12 +37,12 @@ initial-value="$ctrl.client.contactChannel" field="$ctrl.client.contactChannelFk" url="/client/api/ContactChannels" - label="Canal"> + label="Channel"> - +
diff --git a/client/client/src/basic-data/locale/es.json b/client/client/src/basic-data/locale/es.json new file mode 100644 index 000000000..24e0d09d6 --- /dev/null +++ b/client/client/src/basic-data/locale/es.json @@ -0,0 +1,12 @@ +{ + "Basic data": "Datos básicos", + "Name": "Nombre", + "Tax number": "NIF/CIF", + "Social name": "Razón social", + "Phone": "Teléfono", + "Mobile": "Móvil", + "Fax": "Fax", + "Email": "Correo electrónico", + "Salesperson": "Comercial", + "Channel": "Canal" +} \ No newline at end of file diff --git a/client/client/src/descriptor/descriptor.html b/client/client/src/descriptor/descriptor.html index 48a878221..8659bec6e 100644 --- a/client/client/src/descriptor/descriptor.html +++ b/client/client/src/descriptor/descriptor.html @@ -5,7 +5,7 @@ person -
{{$ctrl.client.id}}
+
{{::$ctrl.client.id}}
{{$ctrl.client.name}}
{{$ctrl.client.phone}}
diff --git a/client/client/src/index/item-client.html b/client/client/src/index/item-client.html index 49ef314d0..e03dc63df 100644 --- a/client/client/src/index/item-client.html +++ b/client/client/src/index/item-client.html @@ -1,7 +1,7 @@
{{$ctrl.client.name}}
-
Id Cliente: {{$ctrl.client.id}}
-
Teléfono: {{$ctrl.client.phone | phone}}
-
Población: {{$ctrl.client.city}}
-
email: {{$ctrl.client.email}}
+
Client id: {{$ctrl.client.id}}
+
Phone: {{$ctrl.client.phone | phone}}
+
City: {{$ctrl.client.city}}
+
Email: {{$ctrl.client.email}}
diff --git a/client/client/src/index/locale/es.json b/client/client/src/index/locale/es.json new file mode 100644 index 000000000..e8575f06b --- /dev/null +++ b/client/client/src/index/locale/es.json @@ -0,0 +1,7 @@ +{ + "Client id": "Id cliente", + "Phone": "Teléfono", + "City": "Población", + "Email": "Correo electrónico", + "Create client": "Crear cliente" +} \ No newline at end of file diff --git a/client/client/src/locale/en.json b/client/client/src/locale/en.json index 9e26dfeeb..78e01b929 100644 --- a/client/client/src/locale/en.json +++ b/client/client/src/locale/en.json @@ -1 +1,4 @@ -{} \ No newline at end of file +{ + "Client": "Client", + "Clients": "Clients" +} \ No newline at end of file diff --git a/client/client/src/locale/es.json b/client/client/src/locale/es.json index 9e26dfeeb..8056809f6 100644 --- a/client/client/src/locale/es.json +++ b/client/client/src/locale/es.json @@ -1 +1,4 @@ -{} \ No newline at end of file +{ + "Client": "Cliente", + "Clients": "Clientes" +} \ No newline at end of file diff --git a/client/client/src/note-create/locale/es.json b/client/client/src/note-create/locale/es.json new file mode 100644 index 000000000..ed49b6323 --- /dev/null +++ b/client/client/src/note-create/locale/es.json @@ -0,0 +1,4 @@ +{ + "New note": "Nueva nota", + "Note": "Nota" +} \ No newline at end of file diff --git a/client/client/src/note-create/note-create.html b/client/client/src/note-create/note-create.html index 4331bb464..f01397cb5 100644 --- a/client/client/src/note-create/note-create.html +++ b/client/client/src/note-create/note-create.html @@ -8,11 +8,11 @@
- Nueva nota - + New note + - +
\ No newline at end of file diff --git a/client/client/src/notes/locale/es.json b/client/client/src/notes/locale/es.json new file mode 100644 index 000000000..28b37f5a8 --- /dev/null +++ b/client/client/src/notes/locale/es.json @@ -0,0 +1,3 @@ +{ + "Notes": "Notas" +} \ No newline at end of file diff --git a/client/client/src/notes/notes.html b/client/client/src/notes/notes.html index aad8a06e3..ecea1d668 100644 --- a/client/client/src/notes/notes.html +++ b/client/client/src/notes/notes.html @@ -1,11 +1,11 @@ - Notas + Notes -
{{n.created | date:'dd/MM/yyyy HH:mm'}}
-
{{n.employee.name}}
-
{{n.text}}
+
{{::n.created | date:'dd/MM/yyyy HH:mm'}}
+
{{::n.employee.name}}
+
{{::n.text}}
diff --git a/client/client/src/search-panel/locale/es.json b/client/client/src/search-panel/locale/es.json new file mode 100644 index 000000000..cd31f963b --- /dev/null +++ b/client/client/src/search-panel/locale/es.json @@ -0,0 +1,10 @@ +{ + "Client id": "Id cliente", + "Tax number": "NIF/CIF", + "Name": "Nombre", + "Social name": "Razon social", + "City": "Población", + "Postcode": "Código postal", + "Email": "Correo electrónico", + "Phone": "Teléfono" +} \ No newline at end of file diff --git a/client/client/src/search-panel/search-panel.html b/client/client/src/search-panel/search-panel.html index f17828f6a..4e299c3ce 100644 --- a/client/client/src/search-panel/search-panel.html +++ b/client/client/src/search-panel/search-panel.html @@ -1,22 +1,22 @@
- - + + - + - + - - + + - + diff --git a/client/client/src/web-access/locale/es.json b/client/client/src/web-access/locale/es.json index 9ca721958..82652f89f 100644 --- a/client/client/src/web-access/locale/es.json +++ b/client/client/src/web-access/locale/es.json @@ -1,4 +1,6 @@ { + "User": "Usuario", + "Enable web access": "Habilitar acceso web", "Web access": "Acceso web", "New password": "Nueva contraseña", "Repeat password": "Repetir contraseña", diff --git a/client/client/src/web-access/web-access.html b/client/client/src/web-access/web-access.html index d2e039024..7274cd5d2 100644 --- a/client/client/src/web-access/web-access.html +++ b/client/client/src/web-access/web-access.html @@ -10,13 +10,13 @@ Web access - - + + - - + + +

\ No newline at end of file