From f7e2f0f87f889b83e8ab4809bde213680d378c5d Mon Sep 17 00:00:00 2001 From: Constance RICHARD Date: Fri, 23 Aug 2024 15:14:36 +0200 Subject: [PATCH] Convert yaml translations to xliff --- tests/Fixtures/Services.php | 6 +- translations/PrestaMailReceiverBundle.en.xlf | 507 ++++++++++++++++++ translations/PrestaMailReceiverBundle.en.yaml | 185 ------- translations/PrestaMailReceiverBundle.fr.xlf | 507 ++++++++++++++++++ translations/PrestaMailReceiverBundle.fr.yaml | 185 ------- 5 files changed, 1017 insertions(+), 373 deletions(-) create mode 100644 translations/PrestaMailReceiverBundle.en.xlf delete mode 100644 translations/PrestaMailReceiverBundle.en.yaml create mode 100644 translations/PrestaMailReceiverBundle.fr.xlf delete mode 100644 translations/PrestaMailReceiverBundle.fr.yaml diff --git a/tests/Fixtures/Services.php b/tests/Fixtures/Services.php index 8f31e8c..2da667e 100644 --- a/tests/Fixtures/Services.php +++ b/tests/Fixtures/Services.php @@ -8,7 +8,7 @@ final class Services { - private const TRANSLATION_CATALOG = __DIR__ . '/../../translations/PrestaMailReceiverBundle.fr.yaml'; + private const TRANSLATION_CATALOG = __DIR__ . '/../../translations/PrestaMailReceiverBundle.fr.xlf'; private static $services = []; @@ -16,8 +16,8 @@ public static function translator(): TranslatorInterface { if (!isset(self::$services[__FUNCTION__])) { self::$services[__FUNCTION__] = $translator = new Translator('fr_FR'); - $translator->addLoader('yaml', new YamlFileLoader()); - $translator->addResource('yaml', self::TRANSLATION_CATALOG, 'fr_FR', 'PrestaMailReceiverBundle'); + $translator->addLoader('xliff', new XliffFileLoader()); + $translator->addResource('xliff', self::TRANSLATION_CATALOG, 'fr_FR', 'PrestaMailReceiverBundle'); } return self::$services[__FUNCTION__]; diff --git a/translations/PrestaMailReceiverBundle.en.xlf b/translations/PrestaMailReceiverBundle.en.xlf new file mode 100644 index 0000000..154c223 --- /dev/null +++ b/translations/PrestaMailReceiverBundle.en.xlf @@ -0,0 +1,507 @@ + + + + + + email_received.batch.set_status + Status change + + + email_received.flash.set_status.no_status + Unable to find the status to assign. + + + email_received.flash.set_status.error + An error occurred during the status change. + + + email_received.flash.set_status.success + Status change completed. + + + email_received.flash.email_dispatched + The email has been reprocessed + + + email_received.flash.tested + The email has been tested on the conditions of the rules without performing any actions + + + email_received.menu.executions + Associated executions + + + email_received.form.label.body + Email body + + + email_received.form.label.raw + Raw email + + + email_received.form.label.recipient + To + + + email_received.form.label.sender + From + + + email_received.form.label.subject + Subject + + + email_received.filter.label.body + Email body + + + email_received.filter.label.recipient + Sent to + + + email_received.filter.label.sender + Sent by + + + email_received.filter.label.status + Statut + + + email_received.filter.label.subject + Subject + + + email_received.list.label.body + Email body + + + email_received.list.label.recipient + To + + + email_received.list.label.sender + From + + + email_received.list.label.sent_at + Sent on + + + email_received.list.label.status + Status + + + email_received.list.label.subject + Subject + + + email_received.show.label.subject + Subject + + + email_received.show.label.sender + Sender + + + email_received.show.label.recipient + Recipient + + + email_received.show.label.body + Body + + + email_received.show.label.attachments + Attachments + + + email_received.show.label.headers + Headers + + + email_received.show.label.general + General + + + email_received.status.label_errored + in error + + + email_received.status.label_waiting + pending + + + email_received.status.label_treated + processed + + + email_received.status.label_unmatched + not applied + + + email_received.name + Emails received + + + rule.menu.executions + Associated executions + + + rule.form.choice.condition_operator.or + At least one condition must be verified + + + rule.form.choice.condition_operator.and + All conditions must be verified + + + rule.form.label.actions + Actions + + + rule.form.label.conditions + Conditions + + + rule.form.label.name + Name + + + rule.form.label.condition_operator + Operator + + + rule.form.label.breakpoint + Breakpoint + + + rule.form.label.to + Recipient + + + rule.form.label.operator + Operator + + + rule.form.label.value + Value + + + rule.form.label.from + Sender + + + rule.form.help.actions + Actions + + + rule.form.help.conditions + Conditions + + + rule.form.help.name + Rule name + + + rule.form.help.to + Only one recipient expected + + + rule.form.help.breakpoint + When executing actions, if an action with a breakpoint is performed without errors, then the following actions are not performed + + + rule.list.label.name + Name + + + rule.list.label.conditions + Conditions + + + rule.list.label.actions + Actions + + + rule.name + Rules + + + rule.condition.label_subject_match + Subject + + + rule.condition.label_body_match + Email body + + + rule.condition.label_has_attachments + Has one or more attachments + + + rule.condition.label_recipient_match + Recipient + + + rule.condition.label_sender_match + Sender + + + rule.action.label_forward + Forward + + + rule.action.label_notify + Notify + + + rule.label_conditions + Conditions + + + rule.label_actions + Actions + + + rule.description.conditions.body_match + The email body %operator% "%value%" + + + rule.description.conditions.has_attachment + The email has an attachment + + + rule.description.conditions.recipient_match + The email recipient %operator% "%value%" + + + rule.description.conditions.sender_match + The email sender %operator% "%value%" + + + rule.description.conditions.subject_match + The email subject %operator% "%value%" + + + rule.description.conditions.operator.unknown + [unknown] + + + rule.description.conditions.operator.match + matches the regular expression (Regexp) + + + rule.description.conditions.operator.contains + contains + + + rule.description.conditions.operator.equals + is equal to + + + rule.description.actions.forward + Forward to "%to%" + + + rule.description.actions.notify + The address "%from%" will notify "%to%" + + + execution.name + Executions + + + execution.list.label.email + Email + + + execution.list.label.rule + Rule + + + execution.list.label.satisfied + Satisfied by the rule + + + execution.list.label.performed + Action performed + + + execution.list.label.date + Date + + + execution.filter.label.email + Email + + + execution.filter.label.rule + Rule + + + execution.filter.label.satisfied + Satisfied by the rule + + + execution.filter.label.performed + Action performed + + + execution.filter.label.date + Date + + + execution.show.label.email + Email + + + execution.show.label.rule + Rule + + + execution.show.label.satisfied + Satisfied by the rule + + + execution.show.label.performed + Action performed + + + execution.show.label.test_condition + Execution of conditions test + + + execution.show.label.date + Date + + + execution.show.label.evaluations.condition + Condition assessed + + + execution.show.label.evaluations.satisfied + Condition satisfied + + + execution.show.label.evaluations.error + Error + + + execution.show.label.results.action + Action taken + + + execution.show.label.results.result + Action result + + + execution.show.label.results.error + Error + + + execution.result.success + Successful + + + execution.result.failed + Failed + + + execution.result.skipped + Not performed + + + rule_group.name + Rules group + + + rule_group.list.label.name + Name + + + rule_group.form.label.name + Name + + + rule_group.form.label.rules_elements + Rules + + + rule_group.elements.form.label.rules + Rules + + + rule_group.elements.form.label.breakpoint + Breakpoint + + + list.label__action + Actions + + + breadcrumb.link_rule_list + Rules + + + breadcrumb.link_rule_create + Rules + + + breadcrumb.link_execution_list + Executions + + + breadcrumb.link_rule_group_list + Rules group + + + breadcrumb.link_email_list + Emails received + + + form.group_rule_form_fieldset_general + General + + + form.group_rule_form_fieldset_conditions + Set the conditions + + + form.group_rule_form_fieldset_actions + Set the actions + + + form.group_rule_group_name + Rules group + + + show.group_email_received_show_label_general + General + + + show.group_email_received_show_label_headers + Headers + + + show.group_execution_show_fieldset_evaluations + Condition assessments + + + show.group_execution_show_fieldset_general + General + + + show.group_execution_show_fieldset_results + Action results + + + action_test_dispatch_email + List of processed tests + + + action_dispatch_email + Reprocess + + + + diff --git a/translations/PrestaMailReceiverBundle.en.yaml b/translations/PrestaMailReceiverBundle.en.yaml deleted file mode 100644 index 3cd3a6f..0000000 --- a/translations/PrestaMailReceiverBundle.en.yaml +++ /dev/null @@ -1,185 +0,0 @@ -email_received: - batch: - set_status: 'Status change' - flash: - set_status: - no_status: 'Unable to find the status to assign.' - error: 'An error occurred during the status change.' - success: 'Status change completed.' - email_dispatched: The email has been reprocessed - tested: The email has been tested on the conditions of the rules without performing any actions - menu: - executions: Associated executions - form: - label: - body: Email body - raw: Raw email - recipient: To - sender: From - subject: Subject - filter: - label: - body: Email body - recipient: Sent to - sender: Sent by - status: Statut - subject: Subject - list: - label: - body: Email body - recipient: To - sender: From - sent_at: Sent on - status: Status - subject: Subject - show: - label: - subject: 'Subject' - sender: 'Sender' - recipient: 'Recipient' - body: 'Body' - attachments: Attachments - headers: Headers - general: General - status: - label_errored: in error - label_waiting: pending - label_treated: processed - label_unmatched: not applied - - name: Emails received - -rule: - menu: - executions: Associated executions - form: - choice: - condition_operator: - or: At least one condition must be verified - and: All conditions must be verified - label: - actions: Actions - conditions: Conditions - name: Name - condition_operator: Operator - breakpoint: Breakpoint - to: Recipient - operator: Operator - value: Value - from: Sender - help: - actions: Actions - conditions: Conditions - name: Rule name - to: Only one recipient expected - breakpoint: When executing actions, if an action with a breakpoint is performed without errors, then the following actions are not performed - list: - label: - name: Name - conditions: Conditions - actions: Actions - name: Rules - condition: - label_subject_match: Subject - label_body_match: Email body - label_has_attachments: Has one or more attachments - label_recipient_match: Recipient - label_sender_match: Sender - action: - label_forward: Forward - label_notify: Notify - label_conditions: Conditions - label_actions: Actions - description: - conditions: - body_match: The email body %operator% "%value%" - has_attachment: The email has an attachment - recipient_match: The email recipient %operator% "%value%" - sender_match: The email sender %operator% "%value%" - subject_match: The email subject %operator% "%value%" - operator: - unknown: [unknown] - match: matches the regular expression (Regexp) - contains: contains - equals: is equal to - actions: - forward: Forward to "%to%" - notify: The address "%from%" will notify "%to%" - -execution: - name: Executions - list: - label: - email: Email - rule: Rule - satisfied: Satisfied by the rule - performed: Action performed - date: Date - filter: - label: - email: Email - rule: Rule - satisfied: Satisfied by the rule - performed: Action performed - date: Date - show: - label: - email: Email - rule: Rule - satisfied: Satisfied by the rule - performed: Action performed - test_condition: Execution of conditions test - date: Date - evaluations: - condition: Condition assessed - satisfied: Condition satisfied - error: Error - results: - action: Action taken - result: Action result - error: Error - result: - success: Successful - failed: Failed - skipped: Not performed - -rule_group: - name: Rules group - list: - label: - name: Name - form: - label: - name: Name - rules_elements: Rules - elements: - form: - label: - rules: Rules - breakpoint: Breakpoint - -list: - label__action: Actions - -breadcrumb: - link_rule_list: Rules - link_rule_create: Rules - link_execution_list: Executions - link_rule_group_list: Rules group - link_email_list: Emails received - -form: - group_rule_form_fieldset_general: General - group_rule_form_fieldset_conditions: Set the conditions - group_rule_form_fieldset_actions: Set the actions - group_rule_group_name: Rules group - -show: - group_email_received_show_label_general: General - group_email_received_show_label_headers: Headers - group_execution_show_fieldset_evaluations: Condition assessments - group_execution_show_fieldset_general: General - group_execution_show_fieldset_results: Action results - -action_test_dispatch_email: List of processed tests -action_dispatch_email: Reprocess diff --git a/translations/PrestaMailReceiverBundle.fr.xlf b/translations/PrestaMailReceiverBundle.fr.xlf new file mode 100644 index 0000000..879b84e --- /dev/null +++ b/translations/PrestaMailReceiverBundle.fr.xlf @@ -0,0 +1,507 @@ + + + + + + email_received.batch.set_status + Changement de statut + + + email_received.flash.set_status.no_status + Impossible de trouver le statut à affecter. + + + email_received.flash.set_status.error + Une erreur est survenue pendant le changement de statut. + + + email_received.flash.set_status.success + Changement de statut effectué. + + + email_received.flash.email_dispatched + Le mail a bien été retraité + + + email_received.flash.tested + Le mail a été testé sur les conditions des règles sans effectuer les actions + + + email_received.menu.executions + Exécutions associées + + + email_received.form.label.body + Corps du mail + + + email_received.form.label.raw + Mail brut + + + email_received.form.label.recipient + À + + + email_received.form.label.sender + De + + + email_received.form.label.subject + Objet + + + email_received.filter.label.body + Corps du mail + + + email_received.filter.label.recipient + Envoyé à + + + email_received.filter.label.sender + Envoyé par + + + email_received.filter.label.status + Statut + + + email_received.filter.label.subject + Objet + + + email_received.list.label.body + Corps du mail + + + email_received.list.label.recipient + À + + + email_received.list.label.sender + De + + + email_received.list.label.sent_at + Envoyé le + + + email_received.list.label.status + Statut + + + email_received.list.label.subject + Objet + + + email_received.show.label.subject + Sujet + + + email_received.show.label.sender + Expéditeur + + + email_received.show.label.recipient + Destinataire + + + email_received.show.label.body + Corps + + + email_received.show.label.attachments + Pièces jointes + + + email_received.show.label.headers + Headers + + + email_received.show.label.general + Général + + + email_received.status.label_errored + en erreur + + + email_received.status.label_waiting + en attente + + + email_received.status.label_treated + traité + + + email_received.status.label_unmatched + inappliqué + + + email_received.name + Mails reçus + + + rule.menu.executions + Exécutions associées + + + rule.form.choice.condition_operator.or + Au moins une condition doit être vérifiée + + + rule.form.choice.condition_operator.and + Toutes les conditions doivent être vérifiées + + + rule.form.label.actions + Actions + + + rule.form.label.conditions + Conditions + + + rule.form.label.name + Nom + + + rule.form.label.condition_operator + Opérateur + + + rule.form.label.breakpoint + Point d'arrêt + + + rule.form.label.to + Destinataire + + + rule.form.label.operator + Opérateur + + + rule.form.label.value + Valeur + + + rule.form.label.from + Expéditeur + + + rule.form.help.actions + Actions + + + rule.form.help.conditions + Conditions + + + rule.form.help.name + Nom de la règle + + + rule.form.help.to + Un seul destinataire attendu + + + rule.form.help.breakpoint + Lors de l'exécution des actions, si une action ayant un point d'arrêt est effectuée sans erreurs alors les actions suivantes ne sont pas effectuées + + + rule.list.label.name + Nom + + + rule.list.label.conditions + Conditions + + + rule.list.label.actions + Actions + + + rule.name + Règles + + + rule.condition.label_subject_match + Sujet + + + rule.condition.label_body_match + Corps du mail + + + rule.condition.label_has_attachments + A une ou des pièces jointes + + + rule.condition.label_recipient_match + Destinataire + + + rule.condition.label_sender_match + Expéditeur + + + rule.action.label_forward + Transférer + + + rule.action.label_notify + Notifier + + + rule.label_conditions + Conditions + + + rule.label_actions + Actions + + + rule.description.conditions.body_match + Le corps du mail %operator% "%value%" + + + rule.description.conditions.has_attachment + Le mail a une pièce jointe + + + rule.description.conditions.recipient_match + Le destinataire du mail %operator% "%value%" + + + rule.description.conditions.sender_match + L'expéditeur du mail %operator% "%value%" + + + rule.description.conditions.subject_match + Le sujet du mail %operator% "%value%" + + + rule.description.conditions.operator.unknown + [inconnu] + + + rule.description.conditions.operator.match + correspond à l'expression régulière (Regexp) + + + rule.description.conditions.operator.contains + contient + + + rule.description.conditions.operator.equals + est égal à + + + rule.description.actions.forward + Transférer à "%to%" + + + rule.description.actions.notify + L'adresse "%from%" va notifier "%to%" + + + execution.name + Exécutions + + + execution.list.label.email + Email + + + execution.list.label.rule + Règle + + + execution.list.label.satisfied + Satisfait par la règle + + + execution.list.label.performed + Action réalisée + + + execution.list.label.date + Date + + + execution.filter.label.email + Email + + + execution.filter.label.rule + Règle + + + execution.filter.label.satisfied + Satisfait par la règle + + + execution.filter.label.performed + Action réalisée + + + execution.filter.label.date + Date + + + execution.show.label.email + Email + + + execution.show.label.rule + Règle + + + execution.show.label.satisfied + Satisfait par la règle + + + execution.show.label.performed + Action réalisée + + + execution.show.label.test_condition + Exécution de test des conditions + + + execution.show.label.date + Date + + + execution.show.label.evaluations.condition + Condition évaluée + + + execution.show.label.evaluations.satisfied + Condition satisfaite + + + execution.show.label.evaluations.error + Erreur + + + execution.show.label.results.action + Action entreprise + + + execution.show.label.results.result + Résultat de l'action + + + execution.show.label.results.error + Erreur + + + execution.result.success + Réussie + + + execution.result.failed + Échouée + + + execution.result.skipped + Non exécutée + + + rule_group.name + Groupe de règles + + + rule_group.list.label.name + Nom + + + rule_group.form.label.name + Nom + + + rule_group.form.label.rules_elements + Règles + + + rule_group.elements.form.label.rules + Règles + + + rule_group.elements.form.label.breakpoint + Point d'arrêt + + + list.label__action + Actions + + + breadcrumb.link_rule_list + Règles + + + breadcrumb.link_rule_create + Règles + + + breadcrumb.link_execution_list + Exécutions + + + breadcrumb.link_rule_group_list + Groupement de règles + + + breadcrumb.link_email_list + Emails reçus + + + form.group_rule_form_fieldset_general + Général + + + form.group_rule_form_fieldset_conditions + Paramétrer les conditions + + + form.group_rule_form_fieldset_actions + Paramétrer les actions + + + form.group_rule_group_name + Groupement de règles + + + show.group_email_received_show_label_general + Général + + + show.group_email_received_show_label_headers + Headers + + + show.group_execution_show_fieldset_evaluations + Évaluations des conditions + + + show.group_execution_show_fieldset_general + Général + + + show.group_execution_show_fieldset_results + Résultats des actions + + + action_test_dispatch_email + Liste des tests lancés + + + action_dispatch_email + Relancer + + + + diff --git a/translations/PrestaMailReceiverBundle.fr.yaml b/translations/PrestaMailReceiverBundle.fr.yaml deleted file mode 100644 index 31aac76..0000000 --- a/translations/PrestaMailReceiverBundle.fr.yaml +++ /dev/null @@ -1,185 +0,0 @@ -email_received: - batch: - set_status: 'Changement de statut' - flash: - set_status: - no_status: 'Impossible de trouver le statut à affecter.' - error: 'Une erreur est survenue pendant le changement de statut.' - success: 'Changement de statut effectué.' - email_dispatched: Le mail a bien été retraité - tested: Le mail a été testé sur les conditions des règles sans effectuer les actions - menu: - executions: Exécutions associées - form: - label: - body: Corps du mail - raw: Mail brut - recipient: À - sender: De - subject: Objet - filter: - label: - body: Corps du mail - recipient: Envoyé à - sender: Envoyé par - status: Statut - subject: Objet - list: - label: - body: Corps du mail - recipient: À - sender: De - sent_at: Envoyé le - status: Statut - subject: Objet - show: - label: - subject: 'Sujet' - sender: 'Expéditeur' - recipient: 'Destinataire' - body: 'Corps' - attachments: Pièces jointes - headers: Headers - general: Général - status: - label_errored: en erreur - label_waiting: en attente - label_treated: traité - label_unmatched: inappliqué - - name: Mails reçus - -rule: - menu: - executions: Exécutions associées - form: - choice: - condition_operator: - or: Au moins une condition doit être vérifiée - and: Toutes les conditions doivent être vérifiées - label: - actions: Actions - conditions: Conditions - name: Nom - condition_operator: Opérateur - breakpoint: Point d'arrêt - to: Destinataire - operator: Opérateur - value: Valeur - from: Expéditeur - help: - actions: Actions - conditions: Conditions - name: Nom de la règle - to: Un seul destinataire attendu - breakpoint: Lors de l'exécution des actions, si une action ayant un point d'arrêt est effectuée sans erreurs alors les actions suivantes ne sont pas effectuées - list: - label: - name: Nom - conditions: Conditions - actions: Actions - name: Règles - condition: - label_subject_match: Sujet - label_body_match: Corps du mail - label_has_attachments: A une ou des pièces jointes - label_recipient_match: Destinataire - label_sender_match: Expéditeur - action: - label_forward: Transférer - label_notify: Notifier - label_conditions: Conditions - label_actions: Actions - description: - conditions: - body_match: Le corps du mail %operator% "%value%" - has_attachment: Le mail a une pièce jointe - recipient_match: Le destinataire du mail %operator% "%value%" - sender_match: L'expéditeur du mail %operator% "%value%" - subject_match: Le sujet du mail %operator% "%value%" - operator: - unknown: [inconnu] - match: correspond à l'expression régulière (Regexp) - contains: contient - equals: est égal à - actions: - forward: Transférer à "%to%" - notify: L'adresse "%from%" va notifier "%to%" - -execution: - name: Exécutions - list: - label: - email: Email - rule: Règle - satisfied: Satisfait par la règle - performed: Action réalisée - date: Date - filter: - label: - email: Email - rule: Règle - satisfied: Satisfait par la règle - performed: Action réalisée - date: Date - show: - label: - email: Email - rule: Règle - satisfied: Satisfait par la règle - performed: Action réalisée - test_condition: Exécution de test des conditions - date: Date - evaluations: - condition: Condition évaluée - satisfied: Condition satisfaite - error: Erreur - results: - action: Action entreprise - result: Résultat de l'action - error: Erreur - result: - success: Réussie - failed: Échouée - skipped: Non exécutée - -rule_group: - name: Groupe de règles - list: - label: - name: Nom - form: - label: - name: Nom - rules_elements: Règles - elements: - form: - label: - rules: Règles - breakpoint: Point d'arrêt - -list: - label__action: Actions - -breadcrumb: - link_rule_list: Règles - link_rule_create: Règles - link_execution_list: Exécutions - link_rule_group_list: Groupement de règles - link_email_list: Emails reçus - -form: - group_rule_form_fieldset_general: Général - group_rule_form_fieldset_conditions: Paramétrer les conditions - group_rule_form_fieldset_actions: Paramétrer les actions - group_rule_group_name: Groupement de règles - -show: - group_email_received_show_label_general: Général - group_email_received_show_label_headers: Headers - group_execution_show_fieldset_evaluations: Évaluations des conditions - group_execution_show_fieldset_general: Général - group_execution_show_fieldset_results: Résultats des actions - -action_test_dispatch_email: Liste des tests lancés -action_dispatch_email: Relancer