Advertisement
djuro95

translation

Mar 10th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. translation
  2.  
  3.  
  4. mail:
  5. demo:
  6. submited:
  7. subject: New demo request
  8. title: 'Hello {{ recipient }},'
  9. body: '{{ name }} made new demo request from company {{ company }}!'
  10. action: Open admin panel
  11. scheduled:
  12. subject: Demo sheduled
  13. title: 'Hello {{ recipient }},'
  14. body: '{{ name }} scheduled demo!'
  15. action: Demo scheduled
  16.  
  17.  
  18. ******************
  19. views/email/demo
  20.  
  21. {% extends ':email/layout/'~ locale ~':index.html.twig' %}
  22.  
  23. {% block subject %} {{ 'mail.demo.submited.subject' | trans({}, 'messages') }} {% endblock subject %}
  24.  
  25. {% block mail_title %}
  26. {{ 'mail.demo.submited.title' | trans({'{{ recipient }}': demo.name}, 'messages') }}
  27. {% endblock mail_title %}
  28.  
  29. {% block mail_body %}
  30. {{ 'mail.demo.submited.body' | trans({'{{ name }}' : demo.name, '{{ company }}' : demo.company}, 'messages') }}
  31. {% endblock mail_body %}
  32.  
  33. {% block mail_action_link %}
  34. {{ project_domain ~ path('admin_dashboard') }}
  35. {% endblock mail_action_link %}
  36.  
  37. {% block mail_action_text %}
  38. {{ 'mail.demo.submited.action' | trans() }}
  39. {% endblock mail_action_text %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement