Skip to content

Add a command to export translations#450

Draft
guillaumedc wants to merge 1 commit into
mainfrom
chore/translation
Draft

Add a command to export translations#450
guillaumedc wants to merge 1 commit into
mainfrom
chore/translation

Conversation

@guillaumedc
Copy link
Copy Markdown

@guillaumedc guillaumedc commented May 20, 2026

Related issue(s)

How to test manually

Reviewer checklist

  • Code is manually tested
  • Interface works on both mobiles and big screens
  • Interface works on both Firefox and Chrome
  • Tests are up to date
  • Documentation is up to date
  • Pull request has been reviewed and approved

@guillaumedc guillaumedc marked this pull request as draft May 20, 2026 14:13
@guillaumedc guillaumedc self-assigned this May 20, 2026
@guillaumedc guillaumedc linked an issue May 21, 2026 that may be closed by this pull request
namespace App\Misc;

use Symfony\Component\Translation\TranslatableMessage;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J’ajouterais bien le même commentaire dans Bileto pour expliciter le rôle de ce fichier :

Suggested change
// This file contains translations keys that are built dynamically.
// The translation:extract command cannot find them otherwise, and delete the
// keys from the translations files. By listing them manually in this file, the
// command detects them, even if this file is never used in the application.

Search.ReplyTo: 'Reply to a message'
Search.ResetFilters: Reset
Search.Sender: Sender
Search.Size: __Search.Size
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Search.Size: __Search.Size
Search.Size: Size

Generics.messages.welcome: Welcome
Generics.messages.welcomeAgentJ: 'Welcome on AgentJ'
Generics.messages.welcomeHomeMessage: 'Welcome to <span style="white-space: nowrap">AgentJ</span>,<br/> please authenticate'
Generics.units.bytes: __Generics.units.bytes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Generics.units.bytes: __Generics.units.bytes
Generics.units.bytes: Bytes

Entities.Message.authorized: 'that have been Authorized'
Entities.Message.banned: 'that have been Banned'
Entities.Message.dateAuthRequestAt: 'Authentication request sent the'
Entities.Message.deleted: __Entities.Message.deleted
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Entities.Message.deleted: __Entities.Message.deleted
Entities.Message.deleted: Deleted

->add('imapHost')
->add('imapPort', IntegerType::class, [
'label' => 'Entities.ImapConnector.fields.imap_port',
'label' => new TranslatableMessage('Entities.ImapConnector.fields.imap_port'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'label' => new TranslatableMessage('Entities.ImapConnector.fields.imap_port'),
'label' => new TranslatableMessage('Entities.ImapConnector.fields.imapPort'),

Entities.ImapConnector.fields.imapNoValidateCert: 'Do not validate certificates'
Entities.ImapConnector.fields.imapPort: Port
Entities.ImapConnector.fields.imapProtocol: Encryption
Entities.ImapConnector.fields.imap_port: __Entities.ImapConnector.fields.imap_port
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cette ligne sera supprimée après application du changement dans app/src/Form/ImapConnectorType.php

Entities.Domain.fields.humanAuthenticationFooter: "Pied de page de la page d'authentification humaine"
Entities.Domain.fields.humanAuthenticationStylesheet: "Feuille de style personnalisée de la page d'authentification humaine"
Entities.Domain.fields.level: 'Seuil de spam'
Entities.Domain.fields.logo: __Entities.Domain.fields.logo
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Entities.Domain.fields.logo: __Entities.Domain.fields.logo
Entities.Domain.fields.logo: Logo

Entities.ImapConnector.fields.imapNoValidateCert: 'Ne pas valider les certificats'
Entities.ImapConnector.fields.imapPort: Port
Entities.ImapConnector.fields.imapProtocol: Chiffrement
Entities.ImapConnector.fields.imap_port: __Entities.ImapConnector.fields.imap_port
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ligne supprimée après application de la correction sur app/src/Form/ImapConnectorType.php

Generics.messages.welcome: Bienvenue
Generics.messages.welcomeAgentJ: 'Bienvenue sur AgentJ'
Generics.messages.welcomeHomeMessage: "Bienvenue sur <span style='white-space: nowrap'>AgentJ</span>,<br> veuillez vous authentifier"
Generics.units.bytes: __Generics.units.bytes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Generics.units.bytes: __Generics.units.bytes
Generics.units.bytes: Octets

Search.ReplyTo: 'Réponse à un message'
Search.ResetFilters: Réinitialiser
Search.Sender: Expéditeur
Search.Size: __Search.Size
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Search.Size: __Search.Size
Search.Size: Taille

@marien-probesys marien-probesys self-requested a review May 22, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate the extraction of translations

2 participants