diff --git a/app/views/mailer/password_change/es.html.erb b/app/views/mailer/password_change/es.html.erb new file mode 100644 index 000000000000..588dc68cf0df --- /dev/null +++ b/app/views/mailer/password_change/es.html.erb @@ -0,0 +1,11 @@ +La contraseña para #{config.product_name} ha sido cambiada + +
Buenos días #{user.firstname},
+
+
la contraseña para acceder a #{config.product_name} cuenta #{user.login} ha cambiado recientemente.
+
+
¿Esta actividad es desconocida para vosotros? En este caso, ponerse en contacto con su administrador de sistema.
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/password_change/it.html.erb b/app/views/mailer/password_change/it.html.erb new file mode 100644 index 000000000000..e1112274ae27 --- /dev/null +++ b/app/views/mailer/password_change/it.html.erb @@ -0,0 +1,11 @@ +La password per #{config.product_name} è stata modificata + +
Buongiorno #{user.firstname},
+
+
la password per l'accesso a #{config.product_name} account #{user.login} è stata modificata di recente.
+
+
Questa attività vi è sconosciuta? In questo caso, contattare l'amministratore di sistema.
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/password_reset/es.html.erb b/app/views/mailer/password_reset/es.html.erb new file mode 100644 index 000000000000..96b72cee60c4 --- /dev/null +++ b/app/views/mailer/password_reset/es.html.erb @@ -0,0 +1,18 @@ +Restablecer contraseña para #{config.product_name} + +
Buenos días #{user.firstname},
+
+
hemo recibido una solicitud de restablecimiento de contraseña para #{config.product_name} cuenta #{user.login}.
+
+
Si desea restablecer su contraseña, clicar sobre el link abajo (o copiar la URL en el browser +insertar):
+
+
#{config.http_type}://#{config.fqdn}/#password_reset_verify/#{token.name}
+
+
Este link abre a una página donde puede cambiar su contraseña.
+
+
Si no desea restablecer su contraseña puede ignorar este mensaje. La contraseña no se cambia.
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/password_reset/it.html.erb b/app/views/mailer/password_reset/it.html.erb new file mode 100644 index 000000000000..e06b66cd6d43 --- /dev/null +++ b/app/views/mailer/password_reset/it.html.erb @@ -0,0 +1,18 @@ +Reimpostare password per #{config.product_name} + +
Buongiorno #{user.firstname},
+
+
abbiamo ricevuto una richiesta di reimpostazione password per #{config.product_name} account #{user.login}.
+
+
Se desidera reimpostare la password, fare un clic sul collegamento sotto (o copiare l'URL nel browser +inserire):
+
+
#{config.http_type}://#{config.fqdn}/#password_reset_verify/#{token.name}
+
+
Questo link porta a una pagina nella quale è possibile modificare la password.
+
+
Se non si desidera reimpostare la password, ignorare questo messaggio. La password rimane invariata.
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/signup/es.html.erb b/app/views/mailer/signup/es.html.erb new file mode 100644 index 000000000000..1997137bd6ce --- /dev/null +++ b/app/views/mailer/signup/es.html.erb @@ -0,0 +1,11 @@ +Confirma #{config.product_name} cuenta, #{user.firstname} #{user.lastname} + +
Buenos días #{user.firstname},
+
+
confirma la dirección de correo electrónico para completar la registración para #{config.product_name}. Cliccar sobre el link abajo.
+
+
#{config.http_type}://#{config.fqdn}/#email_verify/#{token.name}
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/signup/it.html.erb b/app/views/mailer/signup/it.html.erb new file mode 100644 index 000000000000..a245825fd343 --- /dev/null +++ b/app/views/mailer/signup/it.html.erb @@ -0,0 +1,11 @@ +Conferma #{config.product_name} account, #{user.firstname} #{user.lastname} + +
Buongiorno #{user.firstname},
+
+
confermare l'indirizzo email per completare la registrazione su #{config.product_name}. Cliccare sul link riportato sotto.
+
+
#{config.http_type}://#{config.fqdn}/#email_verify/#{token.name}
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/test_ticket/es.html.erb b/app/views/mailer/test_ticket/es.html.erb new file mode 100644 index 000000000000..23235a39a6a6 --- /dev/null +++ b/app/views/mailer/test_ticket/es.html.erb @@ -0,0 +1,9 @@ +Boleto de prueba! + +
Buenos días #{agent.firstname},
+
+
Este es un ticket de prueba . Soy un cliente y necesito ayuda! :)
+
+
#{customer.fullname}
+
+
El Proyecto Zammad
diff --git a/app/views/mailer/test_ticket/it.html.erb b/app/views/mailer/test_ticket/it.html.erb new file mode 100644 index 000000000000..6511cb3dbbae --- /dev/null +++ b/app/views/mailer/test_ticket/it.html.erb @@ -0,0 +1,9 @@ +Biglietto di prova! + +
Cear #{agent.firstname},
,. +
+
Questo è un test ticket. Sono un cliente e ho bisogno di aiuto! :)
+
+
#{customer.fullname}
+
+
Il Progetto Zammad
diff --git a/app/views/mailer/ticket_create/es.html.erb b/app/views/mailer/ticket_create/es.html.erb new file mode 100644 index 000000000000..b97be7d62a0c --- /dev/null +++ b/app/views/mailer/ticket_create/es.html.erb @@ -0,0 +1,24 @@ +Nuevo Ticket (#{ticket.title}) + +
Buenos días #{recipient.firstname},
+
+
Se ha creado un nuevo ticket (#{ticket.title}) con "#{current_user.longname}".
+
+
+#{t('Group')}: #{ticket.group.name}
+#{t('Owner')}: #{ticket.owner.fullname}
+#{t('State')}: #{t(ticket.state.name)}
+
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_create/it.html.erb b/app/views/mailer/ticket_create/it.html.erb new file mode 100644 index 000000000000..098fa5cea7d8 --- /dev/null +++ b/app/views/mailer/ticket_create/it.html.erb @@ -0,0 +1,24 @@ +Nuovo Ticket (#{ticket.title}) + +
Buongiorno #{recipient.firstname},
+
+
Un nuovo ticket (#{ticket.title}) è stato creato da "##{current_user.longname}".
. +
+
+#{t('Group')}: #{ticket.group.name}
+#{t('Owner')}: #{ticket.owner.fullname}
+#{t('State')}: #{t(ticket.state.name)}
+
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_escalation/es.html.erb b/app/views/mailer/ticket_escalation/es.html.erb new file mode 100644 index 000000000000..11add4f82b23 --- /dev/null +++ b/app/views/mailer/ticket_escalation/es.html.erb @@ -0,0 +1,18 @@ +El ticket está escalado (#{ticket.title}) + +
Buenos días #{recipient.firstname},
+
+
Un ticket (#{ticket.title}) de "#{ticket.customer.longname}" se incrementa desde "#{ticket.escalation_at}"!
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_escalation/it.html.erb b/app/views/mailer/ticket_escalation/it.html.erb new file mode 100644 index 000000000000..eea3c97d262d --- /dev/null +++ b/app/views/mailer/ticket_escalation/it.html.erb @@ -0,0 +1,18 @@ +Il ticket si è intensificato (#{ticket.title}) + +
Buongiorno #{recipient.firstname},
+
+
Un ticket (#{ticket.title}) da "#{ticket.customer.longname}" si è intensificato a "#{ticket.escalation_at}"!
. +
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_escalation_warning/es.html.erb b/app/views/mailer/ticket_escalation_warning/es.html.erb new file mode 100644 index 000000000000..950f777d1913 --- /dev/null +++ b/app/views/mailer/ticket_escalation_warning/es.html.erb @@ -0,0 +1,18 @@ +El ticket escalará (#{ticket.title}) + +
Buenos días #{recipient.firstname},
+
+
Un ticket (#{ticket.title}) de "#{ticket.customer.longname}" escalará a "#{ticket.escalation_at}"!
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_escalation_warning/it.html.erb b/app/views/mailer/ticket_escalation_warning/it.html.erb new file mode 100644 index 000000000000..e8406169b2b3 --- /dev/null +++ b/app/views/mailer/ticket_escalation_warning/it.html.erb @@ -0,0 +1,18 @@ +Il ticket intensificarsi (#{ticket.title}) + +
Buongiorno #{recipient.firstname},
+
+
Un ticket (#{ticket.title}) da "#{ticket.customer.longname}" intensificarsi a "#{ticket.escalation_at}"!
! +
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_reminder_reached/es.html.erb b/app/views/mailer/ticket_reminder_reached/es.html.erb new file mode 100644 index 000000000000..dd61796eab98 --- /dev/null +++ b/app/views/mailer/ticket_reminder_reached/es.html.erb @@ -0,0 +1,18 @@ +Recordatorio alcanzado (#{ticket.title}) + +
Buenos días #{recipient.firstname},
+
+
Un ticket necesita atención, recordatorio alcanzado para (#{ticket.title}) con el cliente "#{ticket.customer.longname}".
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_reminder_reached/it.html.erb b/app/views/mailer/ticket_reminder_reached/it.html.erb new file mode 100644 index 000000000000..8adc70c45727 --- /dev/null +++ b/app/views/mailer/ticket_reminder_reached/it.html.erb @@ -0,0 +1,18 @@ +Promemoria raggiunto (#{ticket.title}) + +
Buongiorno #{recipient.firstname},
+
+
Un biglietto ha bisogno di attenzione, promemoria raggiunto per (#{ticket.title}) con il cliente "#{ticket.customer.longname}".
+
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_update/es.html.erb b/app/views/mailer/ticket_update/es.html.erb new file mode 100644 index 000000000000..e05ec4c0713b --- /dev/null +++ b/app/views/mailer/ticket_update/es.html.erb @@ -0,0 +1,29 @@ +Ticket actualizado (#{ticket.title}) + +
Buenos días #{recipient.firstname},
+
+
+Ticket (#{ticket.title}) ha sido actualizado por "#{current_user.longname}". +
+
+<% if @objects[:changes].present? %> +
+ #{t('Changes')}:
+ <% @objects[:changes].each do |key, value| %> + <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
+ <% end %> +
+<% end %> +
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/ticket_update/it.html.erb b/app/views/mailer/ticket_update/it.html.erb new file mode 100644 index 000000000000..cac275c52a19 --- /dev/null +++ b/app/views/mailer/ticket_update/it.html.erb @@ -0,0 +1,29 @@ +Biglietto aggiornato (#{ticket.title}) + +
Buongiorno #{recipient.firstname},
+
+
+Ticket (#{ticket.title}) è stato aggiornato da "#{current_user.longname}". +
+
+<% if @objects[:changes].present? %> +
+ #{t('Changes')}:
+ <% @objects[:changes].each do |key, value| %> + <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
+ <% end %> +
+<% end %> +
+<% if @objects[:article] %> +
+ #{t('Information')}: +
+ #{article.body_as_html} +
+
+<% end %> +
+
+ #{t('View this in Zammad')} +
diff --git a/app/views/mailer/user_device_new/es.html.erb b/app/views/mailer/user_device_new/es.html.erb new file mode 100644 index 000000000000..41a20b83fcf2 --- /dev/null +++ b/app/views/mailer/user_device_new/es.html.erb @@ -0,0 +1,22 @@ +#{config.product_name}-login detectado por un nuevo dispositivo + +
Buenos días #{user.firstname},
+
+
parece haber accedido a un nuevo dispositivo para "#{user_device.created_at}" a:
+
+
+Su dispositivo: #{user_device.name}
+Su posición (relativa): #{user_device.location}
+Su dirección IP: #{user_device.ip}
+
+
+
El dispositivo se ha agregado a la lista de dispositivos conocidos, esta lista se puede ver aquí:
+
+
#{config.http_type}://#{config.fqdn}/#profile/devices
+
+
En caso contrario, eliminar el dispositivo de la lista, cambiar la contraseña de la cuenta y contactar su administrador. Alguien podría +tener acceso no autorizado a su cuenta.
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/user_device_new/it.html.erb b/app/views/mailer/user_device_new/it.html.erb new file mode 100644 index 000000000000..1c17fa109a83 --- /dev/null +++ b/app/views/mailer/user_device_new/it.html.erb @@ -0,0 +1,21 @@ +#{config.product_name}-login rilevato da un nuovo dispositivo + +
Buongiorno #{user.firstname},
+
+
sembra che abbia eseguito l'accesso a un nuovo dispositivo per "#{user_device.created_at}" a:
+
+
+Il suo dispositivo: #{user_device.name}
+La sua posizione (relativa): #{user_device.location}
+Il suo indirizzo IP: #{user_device.ip}
+
+
+
Il dispositivo è stato aggiunto all'elenco dei dispositivi conosciuti, questo elenco può essere visualizzato qui:
+
+
#{config.http_type}://#{config.fqdn}/#profile/devices
+
+
In caso contrario, rimuovere il dispositivo dall'elenco, modificare la password dell'account e contattare l'amministratore. Qualcuno potrebbe avere accesso non autorizzato al suo account.
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/user_device_new_location/es.html.erb b/app/views/mailer/user_device_new_location/es.html.erb new file mode 100644 index 000000000000..602f7c449c08 --- /dev/null +++ b/app/views/mailer/user_device_new_location/es.html.erb @@ -0,0 +1,21 @@ +#{config.product_name}-acceso desde otro país + +
Buenos días #{user.firstname},
+
+
parece haber accedido a las "#{user_device.created_at}" desde un dispositivo conocido desde un otro país:
+
+
+Su dispositivo: #{user_device.name}
+Su posición (relativa): #{user_device.location}
+Su dirección IP: #{user_device.ip}
+
+
+
El nuevo país se ha agregado a la lista de dispositivos conocidos, esta lista se puede ver aquí:
+
+
#{config.http_type}://#{config.fqdn}/#profile/devices
+
+
En caso contrario, eliminar la nueva ubicación de la lista, cambiar la contraseña de la cuenta y contactar su administrador. Alguien puede tener acceso no autorizado a su cuenta.
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/user_device_new_location/it.html.erb b/app/views/mailer/user_device_new_location/it.html.erb new file mode 100644 index 000000000000..cc2b6116908b --- /dev/null +++ b/app/views/mailer/user_device_new_location/it.html.erb @@ -0,0 +1,21 @@ +#{config.product_name}-accesso da un altro paese + +
Buongiorno #{user.firstname},
+
+
sembra che abbia eseguito l'accesso alle "#{user_device.created_at}" da un dispositivo conosciuto da un altro paese:
+
+
+Il suo dispositivo: #{user_device.name}
+La sua posizione (relativa): #{user_device.location}
+Il suo indirizzo IP: #{user_device.ip}
+
+
+
Il nuovo paese è stato aggiunto all'elenco dei dispositivi conosciuti, questo elenco può essere visualizzato qui:
+
+
#{config.http_type}://#{config.fqdn}/#profile/devices
+
+
In caso contrario, rimuovere la nuova posizione dall'elenco, modificare la password dell'account e contattare l'amministratore. Qualcuno potrebbe avere accesso non autorizzato al suo account.
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/user_invite/es.html.erb b/app/views/mailer/user_invite/es.html.erb new file mode 100644 index 000000000000..b259144e5b62 --- /dev/null +++ b/app/views/mailer/user_invite/es.html.erb @@ -0,0 +1,15 @@ +Invitación a #{config.product_name} a través de #{config.fqdn} + +
Buenos días #{user.firstname},
+
+
A mi (#{current_user.firstname} #{current_user.lastname}) me gustaría invitar a #{config.product_name} - nuestra plataforma Usersupport/Ticket.
+
+
Para iniciar sesión configure aquí la contraseña.
+
+
Gracias,
+
+
#{current_user.firstname} #{current_user.lastname}
+
+
Siempre atentamente
+
+
El equipo #{config.product_name}
\ No newline at end of file diff --git a/app/views/mailer/user_invite/it.html.erb b/app/views/mailer/user_invite/it.html.erb new file mode 100644 index 000000000000..b93bc8f6acab --- /dev/null +++ b/app/views/mailer/user_invite/it.html.erb @@ -0,0 +1,15 @@ +Invitato a #{config.product_name} tramite #{config.fqdn} + +
Buongiorno #{user.firstname},
+
+
Io (#{current_user.firstname} #{current_user.lastname}) vorrei invitarvi a #{config.product_name} - la nostra piattaforma Usersupport/Ticket.
+
+
Per accedere impostare qui la password.
+
+
Grazie,
+
+
#{current_user.firstname} #{current_user.lastname}
+
+
Sempre cordiali saluti
+
+
Il team #{config.product_name}
\ No newline at end of file diff --git a/test/unit/notification_factory_mailer_template_test.rb b/test/unit/notification_factory_mailer_template_test.rb index 2a3e4b36bbeb..558201013491 100644 --- a/test/unit/notification_factory_mailer_template_test.rb +++ b/test/unit/notification_factory_mailer_template_test.rb @@ -70,7 +70,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase result = NotificationFactory::Mailer.template( template: 'password_reset', - locale: 'es-us', + locale: 'xx-us', objects: { user: agent1, }, @@ -107,7 +107,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase changes = {} result = NotificationFactory::Mailer.template( template: 'ticket_create', - locale: 'es-us', + locale: 'xx-us', objects: { ticket: ticket, article: article, @@ -163,7 +163,7 @@ class NotificationFactoryMailerTemplateTest < ActiveSupport::TestCase } result = NotificationFactory::Mailer.template( template: 'ticket_update', - locale: 'es-us', + locale: 'xx-us', objects: { ticket: ticket, article: article,