From e815dce01b1e9a9f9a922c08289dee3a73e13ef3 Mon Sep 17 00:00:00 2001 From: Sanjeev Papnoi Date: Mon, 17 Feb 2020 09:43:06 +0530 Subject: [PATCH 1/8] translation update --- Dashboard/Segments/HomepageSection.php | 54 ++++++++++++++++ Dashboard/Segments/HomepageSectionItem.php | 54 ++++++++++++++++ PreparedResponse/Actions/Agent/MailAgent.php | 2 +- .../Actions/Agent/TransferTickets.php | 2 +- .../Actions/Customer/MailCustomer.php | 2 +- PreparedResponse/Actions/Ticket/AddNote.php | 2 +- PreparedResponse/Actions/Ticket/Delete.php | 2 +- PreparedResponse/Actions/Ticket/MailAgent.php | 2 +- .../Actions/Ticket/MailCustomer.php | 2 +- PreparedResponse/Actions/Ticket/MailGroup.php | 2 +- .../Actions/Ticket/MailLastCollaborator.php | 2 +- PreparedResponse/Actions/Ticket/MailTeam.php | 2 +- PreparedResponse/Actions/Ticket/MarkSpam.php | 2 +- .../Actions/Ticket/UpdateAgent.php | 2 +- .../Actions/Ticket/UpdateGroup.php | 2 +- .../Actions/Ticket/UpdatePriority.php | 1 + .../Actions/Ticket/UpdateStatus.php | 2 +- PreparedResponse/Actions/Ticket/UpdateTag.php | 2 +- .../Actions/Ticket/UpdateTeam.php | 2 +- .../Actions/Ticket/UpdateType.php | 2 +- Resources/config/services/automations.yaml | 6 +- .../views/Agents/createSupportAgent.html.twig | 16 ++--- .../views/Agents/listSupportAgents.html.twig | 5 +- .../createSupportPrivelege.html.twig | 22 +++---- .../Snippets/createMemberTicket.html.twig | 29 +++++---- .../SwiftMailer/listConfigurations.html.twig | 18 +++--- .../manageConfigurations.html.twig | 62 +++++++++---------- Resources/views/Templates/header.html.twig | 14 ++--- Resources/views/Templates/search.html.twig | 2 +- Resources/views/dashboard.html.twig | 2 +- Resources/views/profile.html.twig | 4 +- Resources/views/supportTagList.html.twig | 16 ++--- Resources/views/ticket.html.twig | 4 +- Resources/views/ticketTypeList.html.twig | 21 +++---- Services/UserService.php | 49 +++++++++++++++ .../Dashboard/Homepage/Items/Agents.php | 2 +- .../Dashboard/Homepage/Items/Branding.php | 2 +- .../Dashboard/Homepage/Items/Customers.php | 2 +- .../Homepage/Items/EmailSettings.php | 2 +- .../Homepage/Items/EmailTemplates.php | 2 +- .../Dashboard/Homepage/Items/Groups.php | 2 +- .../Dashboard/Homepage/Items/Privileges.php | 2 +- .../Dashboard/Homepage/Items/SavedReplies.php | 2 +- .../Dashboard/Homepage/Items/SwiftMailer.php | 2 +- .../Dashboard/Homepage/Items/Tags.php | 2 +- .../Dashboard/Homepage/Items/Teams.php | 2 +- .../Dashboard/Homepage/Items/TicketTypes.php | 2 +- .../Homepage/Sections/Productivity.php | 4 +- .../Dashboard/Homepage/Sections/Settings.php | 4 +- .../Dashboard/Homepage/Sections/Users.php | 2 +- UIComponents/Dashboard/Navigation/Home.php | 51 ++++++++++++++- UIComponents/Dashboard/Navigation/Ticket.php | 51 ++++++++++++++- Workflow/Actions/Agent/MailAgent.php | 2 +- Workflow/Actions/Agent/TransferTickets.php | 2 +- Workflow/Actions/Customer/MailCustomer.php | 2 +- Workflow/Actions/MailUser.php | 2 +- Workflow/Actions/Ticket/AddNote.php | 2 +- Workflow/Actions/Ticket/MailAgent.php | 2 +- Workflow/Actions/Ticket/MailCustomer.php | 2 +- Workflow/Actions/Ticket/MailGroup.php | 1 + .../Actions/Ticket/MailLastCollaborator.php | 2 +- Workflow/Actions/Ticket/MailTeam.php | 2 +- Workflow/Actions/Ticket/MarkSpam.php | 2 +- Workflow/Actions/Ticket/UpdateAgent.php | 2 +- Workflow/Actions/Ticket/UpdateGroup.php | 2 +- Workflow/Actions/Ticket/UpdatePriority.php | 2 +- Workflow/Actions/Ticket/UpdateStatus.php | 2 +- Workflow/Actions/Ticket/UpdateTag.php | 2 +- Workflow/Actions/Ticket/UpdateTeam.php | 2 +- Workflow/Actions/Ticket/UpdateType.php | 2 +- Workflow/Events/Agent/Create.php | 2 +- Workflow/Events/Agent/Delete.php | 2 +- Workflow/Events/Agent/ForgotPassword.php | 2 +- Workflow/Events/Agent/Update.php | 2 +- Workflow/Events/Customer/Create.php | 1 + Workflow/Events/Customer/Delete.php | 1 + Workflow/Events/Customer/ForgotPassword.php | 2 +- Workflow/Events/Customer/Update.php | 2 +- Workflow/Events/Ticket/Agent.php | 2 +- Workflow/Events/Ticket/AgentReply.php | 2 +- Workflow/Events/Ticket/Collaborator.php | 2 +- Workflow/Events/Ticket/CollaboratorReply.php | 2 +- Workflow/Events/Ticket/Create.php | 2 +- Workflow/Events/Ticket/CustomerReply.php | 2 +- Workflow/Events/Ticket/Delete.php | 2 +- Workflow/Events/Ticket/Group.php | 2 +- Workflow/Events/Ticket/Note.php | 2 +- Workflow/Events/Ticket/Priority.php | 2 +- Workflow/Events/Ticket/Status.php | 2 +- Workflow/Events/Ticket/Team.php | 1 + Workflow/Events/Ticket/ThreadUpdate.php | 2 +- Workflow/Events/Ticket/Type.php | 2 +- Workflow/Events/UserForgotPassword.php | 2 +- 93 files changed, 444 insertions(+), 183 deletions(-) diff --git a/Dashboard/Segments/HomepageSection.php b/Dashboard/Segments/HomepageSection.php index 83b98307d..26b83a587 100644 --- a/Dashboard/Segments/HomepageSection.php +++ b/Dashboard/Segments/HomepageSection.php @@ -2,6 +2,10 @@ namespace Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments; +use Symfony\Component\Translation\Translator; +use Symfony\Component\Translation\Loader\YamlFileLoader; +use Symfony\Component\HttpFoundation\Request; + abstract class HomepageSection implements HomepageSectionInterface { private $collection = []; @@ -25,4 +29,54 @@ public function getItemCollection() : array { return $this->collection; } + + public static function dynamicTranslation($data) : string + { + $request = Request::createFromGlobals(); + $path = $request->getPathInfo(); + $locale = explode("/", $path); + $translator = new Translator($locale[1]); + + switch($locale[1]) + { + case 'en': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.en.yml", 'en'); + break; + case 'es': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.es.yml", 'es'); + break; + case 'fr': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.fr.yml", 'fr'); + break; + case 'da': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.da.yml", 'da'); + break; + case 'de': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.de.yml", 'de'); + break; + case 'it': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.it.yml", 'it'); + break; + case 'ar': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.ar.yml", 'ar'); + break; + case 'tr': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.tr.yml", 'tr'); + break; + default: + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../../translations/messages.en.yml", 'en'); + break; + } + + return $translator->trans($data); + } } diff --git a/Dashboard/Segments/HomepageSectionItem.php b/Dashboard/Segments/HomepageSectionItem.php index c559c390a..c83fc9d83 100644 --- a/Dashboard/Segments/HomepageSectionItem.php +++ b/Dashboard/Segments/HomepageSectionItem.php @@ -2,6 +2,10 @@ namespace Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments; +use Symfony\Component\Translation\Translator; +use Symfony\Component\Translation\Loader\YamlFileLoader; +use Symfony\Component\HttpFoundation\Request; + abstract class HomepageSectionItem implements HomepageSectionItemInterface { CONST SVG = <<getPathInfo(); + $locale = explode("/", $path); + $translator = new Translator($locale[1]); + + switch($locale[1]) + { + case 'en': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.en.yml", 'en'); + break; + case 'es': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.es.yml", 'es'); + break; + case 'fr': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.fr.yml", 'fr'); + break; + case 'da': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.da.yml", 'da'); + break; + case 'de': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.de.yml", 'de'); + break; + case 'it': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.it.yml", 'it'); + break; + case 'ar': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.ar.yml", 'ar'); + break; + case 'tr': + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../translations/messages.tr.yml", 'tr'); + break; + default: + $translator->addLoader('yaml', new YamlFileLoader()); + $translator->addResource('yaml',__DIR__."/../../../../../../translations/messages.en.yml", 'en'); + break; + } + + return $translator->trans($data); + } + public abstract static function getTitle() : string; public abstract static function getRouteName() : string; public abstract static function getSectionReferenceId() : string; diff --git a/PreparedResponse/Actions/Agent/MailAgent.php b/PreparedResponse/Actions/Agent/MailAgent.php index 23a071c6d..0292dfa3b 100644 --- a/PreparedResponse/Actions/Agent/MailAgent.php +++ b/PreparedResponse/Actions/Agent/MailAgent.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to agent'; + return self::dynamicTranslation("Mail to agent"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Agent/TransferTickets.php b/PreparedResponse/Actions/Agent/TransferTickets.php index 14dde0484..edc892ed6 100644 --- a/PreparedResponse/Actions/Agent/TransferTickets.php +++ b/PreparedResponse/Actions/Agent/TransferTickets.php @@ -15,7 +15,7 @@ public static function getId() public static function getDescription() { - return 'Transfer Tickets'; + return self::dynamicTranslation("Transfer Tickets"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Customer/MailCustomer.php b/PreparedResponse/Actions/Customer/MailCustomer.php index c5b6503a5..5dddbe216 100644 --- a/PreparedResponse/Actions/Customer/MailCustomer.php +++ b/PreparedResponse/Actions/Customer/MailCustomer.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to customer'; + return self::dynamicTranslation("Mail to customer"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/AddNote.php b/PreparedResponse/Actions/Ticket/AddNote.php index d2e90c9da..6a0de9918 100644 --- a/PreparedResponse/Actions/Ticket/AddNote.php +++ b/PreparedResponse/Actions/Ticket/AddNote.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Add Note'; + return self::dynamicTranslation("Add Note"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/Delete.php b/PreparedResponse/Actions/Ticket/Delete.php index b041bcad3..84671aa1c 100644 --- a/PreparedResponse/Actions/Ticket/Delete.php +++ b/PreparedResponse/Actions/Ticket/Delete.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Delete Ticket'; + return self::dynamicTranslation("Delete Ticket"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MailAgent.php b/PreparedResponse/Actions/Ticket/MailAgent.php index c9e212abc..2afd63156 100644 --- a/PreparedResponse/Actions/Ticket/MailAgent.php +++ b/PreparedResponse/Actions/Ticket/MailAgent.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to agent'; + return self::dynamicTranslation("Mail to agent"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MailCustomer.php b/PreparedResponse/Actions/Ticket/MailCustomer.php index 31eed7388..8441e2b5b 100644 --- a/PreparedResponse/Actions/Ticket/MailCustomer.php +++ b/PreparedResponse/Actions/Ticket/MailCustomer.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to customer'; + return self::dynamicTranslation("Mail to customer"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MailGroup.php b/PreparedResponse/Actions/Ticket/MailGroup.php index 01659c6f2..5d8d30bac 100644 --- a/PreparedResponse/Actions/Ticket/MailGroup.php +++ b/PreparedResponse/Actions/Ticket/MailGroup.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to group'; + return self::dynamicTranslation("Mail to group"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MailLastCollaborator.php b/PreparedResponse/Actions/Ticket/MailLastCollaborator.php index 8071c14d4..b0d5d846a 100644 --- a/PreparedResponse/Actions/Ticket/MailLastCollaborator.php +++ b/PreparedResponse/Actions/Ticket/MailLastCollaborator.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to last collaborator'; + return self::dynamicTranslation("Mail to last collaborator"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MailTeam.php b/PreparedResponse/Actions/Ticket/MailTeam.php index 553d2e583..9178848ad 100644 --- a/PreparedResponse/Actions/Ticket/MailTeam.php +++ b/PreparedResponse/Actions/Ticket/MailTeam.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mail to team'; + return self::dynamicTranslation("Mail to team"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/MarkSpam.php b/PreparedResponse/Actions/Ticket/MarkSpam.php index 2f2bd7e1b..afbcce15a 100644 --- a/PreparedResponse/Actions/Ticket/MarkSpam.php +++ b/PreparedResponse/Actions/Ticket/MarkSpam.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Mark Spam'; + return self::dynamicTranslation("Mark Spam"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateAgent.php b/PreparedResponse/Actions/Ticket/UpdateAgent.php index 8b71d64a2..985644515 100644 --- a/PreparedResponse/Actions/Ticket/UpdateAgent.php +++ b/PreparedResponse/Actions/Ticket/UpdateAgent.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Assign to agent'; + return self::dynamicTranslation("Assign to agent"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateGroup.php b/PreparedResponse/Actions/Ticket/UpdateGroup.php index 17f993716..f9f9fce20 100644 --- a/PreparedResponse/Actions/Ticket/UpdateGroup.php +++ b/PreparedResponse/Actions/Ticket/UpdateGroup.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Assign to group'; + return self::dynamicTranslation("Assign to group"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdatePriority.php b/PreparedResponse/Actions/Ticket/UpdatePriority.php index 10f7f44eb..6ce55559e 100644 --- a/PreparedResponse/Actions/Ticket/UpdatePriority.php +++ b/PreparedResponse/Actions/Ticket/UpdatePriority.php @@ -17,6 +17,7 @@ public static function getId() public static function getDescription() { return 'Set Priority As'; + return self::dynamicTranslation("Set Priority As"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateStatus.php b/PreparedResponse/Actions/Ticket/UpdateStatus.php index 8f45f16a5..7b788dc4d 100644 --- a/PreparedResponse/Actions/Ticket/UpdateStatus.php +++ b/PreparedResponse/Actions/Ticket/UpdateStatus.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Set Status As'; + return self::dynamicTranslation("Set Status As"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateTag.php b/PreparedResponse/Actions/Ticket/UpdateTag.php index a0b5156d6..cb487188c 100644 --- a/PreparedResponse/Actions/Ticket/UpdateTag.php +++ b/PreparedResponse/Actions/Ticket/UpdateTag.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Set Tag As'; + return self::dynamicTranslation("Set Tag As"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateTeam.php b/PreparedResponse/Actions/Ticket/UpdateTeam.php index 6dd369637..95fc9edb8 100644 --- a/PreparedResponse/Actions/Ticket/UpdateTeam.php +++ b/PreparedResponse/Actions/Ticket/UpdateTeam.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Assign to team'; + return self::dynamicTranslation("Assign to team"); } public static function getFunctionalGroup() diff --git a/PreparedResponse/Actions/Ticket/UpdateType.php b/PreparedResponse/Actions/Ticket/UpdateType.php index fab7f9597..5c787e773 100644 --- a/PreparedResponse/Actions/Ticket/UpdateType.php +++ b/PreparedResponse/Actions/Ticket/UpdateType.php @@ -16,7 +16,7 @@ public static function getId() public static function getDescription() { - return 'Set Type As'; + return self::dynamicTranslation("Set Type As"); } public static function getFunctionalGroup() diff --git a/Resources/config/services/automations.yaml b/Resources/config/services/automations.yaml index 643e3390c..6b65f9452 100644 --- a/Resources/config/services/automations.yaml +++ b/Resources/config/services/automations.yaml @@ -15,4 +15,8 @@ services: resource: '../../../PreparedResponse/Actions/*' arguments: ['@service_container', '@request_stack', '@doctrine.orm.entity_manager'] tags: - - { name: uvdesk.automations.prepared_response.actions } \ No newline at end of file + - { name: uvdesk.automations.prepared_response.actions } + + # Webkul\UVDesk\CoreFrameworkBundle\Segments\: + # resource: '../../../Segments/HomepageSectionItem' + # arguments: ['@service_container', '@request_stack'] \ No newline at end of file diff --git a/Resources/views/Agents/createSupportAgent.html.twig b/Resources/views/Agents/createSupportAgent.html.twig index 753e09cb5..8e67834e0 100644 --- a/Resources/views/Agents/createSupportAgent.html.twig +++ b/Resources/views/Agents/createSupportAgent.html.twig @@ -45,17 +45,17 @@ {{ uvdesk_extensibles.getRegisteredComponent(asideTemplate).renderSidebar(asideSidebarReference) | raw }}
-

Create Agent

+

{{ 'Create Agent'|trans }}

{# Registeration Form #}
{# Registeration Form Tabs #}
    -
  • General
  • -
  • Groups
  • +
  • {{ 'General'|trans }}
  • +
  • {{ 'Groups'|trans }}
  • {% if "ROLE_SUPER_ADMIN" not in user.roles %} -
  • Permission
  • +
  • {{ 'Permission'|trans }}
  • {% endif %}
@@ -79,14 +79,14 @@
- +
- +
@@ -139,8 +139,8 @@
- - Assigning group(s) to user to view tickets regardless assignment. + + {{ 'Assigning group(s) to user to view tickets regardless assignment.'|trans }}
diff --git a/Resources/views/Agents/listSupportAgents.html.twig b/Resources/views/Agents/listSupportAgents.html.twig index 76867e634..88be7cfd5 100755 --- a/Resources/views/Agents/listSupportAgents.html.twig +++ b/Resources/views/Agents/listSupportAgents.html.twig @@ -13,8 +13,7 @@ {{ uvdesk_extensibles.getRegisteredComponent(asideTemplate).renderSidebar(asideSidebarReference) | raw }}
-

Agents

- +

{{ 'Agents'|trans }}

{# Sort Agents #} @@ -46,7 +45,7 @@
{# Search Agent #} - + {# Create New Agent #} {{ 'New Agent'|trans }} diff --git a/Resources/views/Privileges/createSupportPrivelege.html.twig b/Resources/views/Privileges/createSupportPrivelege.html.twig index caf6fbb1d..f0abcaa62 100644 --- a/Resources/views/Privileges/createSupportPrivelege.html.twig +++ b/Resources/views/Privileges/createSupportPrivelege.html.twig @@ -11,20 +11,20 @@ {{ uvdesk_extensibles.getRegisteredComponent(asideTemplate).renderSidebar(asideSidebarReference) | raw }}
-

Add Privilege

+

{{ 'Add Privilege'|trans }}

{# Create Support Privilege Form #} {# Basic Details #}
- +
- +
@@ -33,13 +33,13 @@ {# Agent Resources #}
- - Choose set of privileges which will be available to the agent. + + {{ 'Choose set of privileges which will be available to the agent.'|trans }}
@@ -61,15 +61,15 @@ {# Mass Action #}
{# Advanced Resources #}
@@ -91,8 +91,8 @@ {# Mass Action #}
diff --git a/Resources/views/Snippets/createMemberTicket.html.twig b/Resources/views/Snippets/createMemberTicket.html.twig index 4efcce853..140a2e695 100644 --- a/Resources/views/Snippets/createMemberTicket.html.twig +++ b/Resources/views/Snippets/createMemberTicket.html.twig @@ -9,71 +9,70 @@ {% if not isTicketViewPage %} {# Name #}
- +
- Customer full name + {{ 'Customer full name'|trans }}
{# Email #}
- +
- Customer email address + {{ 'Customer email address'|trans }}
{% else %} {# Retrieve customer details from the current ticket being visited #} - Ticket will be created with current ticket's customer + {{ "Ticket will be created with current ticket's customer"|trans }} {% endif %} {# Ticket Type #}
- +
- - Choose ticket type + {{ 'Choose ticket type'|trans }}
{# Ticket Subject #}
- +
- Ticket subject + {{ 'Ticket subject'|trans }}
{# Ticket Message #}
- +
- Query message + {{ 'Ticket query message'|trans }}
{# Ticket Attachment #}
- +
diff --git a/Resources/views/SwiftMailer/listConfigurations.html.twig b/Resources/views/SwiftMailer/listConfigurations.html.twig index 0b746d956..37b075109 100644 --- a/Resources/views/SwiftMailer/listConfigurations.html.twig +++ b/Resources/views/SwiftMailer/listConfigurations.html.twig @@ -30,11 +30,11 @@
-

SwiftMailer Configurations

+

{{ 'SwiftMailer Configurations'|trans }}

@@ -42,11 +42,11 @@ - - - - - + + + + + @@ -75,9 +75,9 @@ <% if (isActive) { %> - + <% } else { %> - + <% } %>
IDEmailTypeStatusAction{{ 'ID'|trans }}{{ 'Email'|trans }}{{ 'Type'|trans }}{{ 'Status'|trans }}{{ 'Action'|trans }}
<%- transport %>Enabled{{ 'Enabled'|trans }}Disabled{{ 'Disabled'|trans }} diff --git a/Resources/views/SwiftMailer/manageConfigurations.html.twig b/Resources/views/SwiftMailer/manageConfigurations.html.twig index 25381075e..00f9f26f6 100644 --- a/Resources/views/SwiftMailer/manageConfigurations.html.twig +++ b/Resources/views/SwiftMailer/manageConfigurations.html.twig @@ -14,9 +14,9 @@
{% if configuration is defined and configuration.id is not empty %} -

Update configuration

+

{{ 'Update configuration'|trans }}

{% else %} -

Add configuration

+

{{ 'Add configuration'|trans }}

{% endif %}
@@ -25,32 +25,32 @@
{# Mailer Id #}
- +
{% if configuration is defined and configuration.id is not empty %} - + {% else %} - + {% endif %}
{# Transport Type #}
- + {% if configuration is defined and configuration is not empty %} {% else %} {% endif %}
@@ -68,7 +68,7 @@
- Enable Delivery + {{ 'Enable Delivery'|trans }}
@@ -90,7 +90,7 @@