Traduire à l’aide de Weblate

Thank you for your interest in translating with Weblate! If you are new here, follow Make your first translation for a guided first contribution.

Habituellement, deux modes de traduction sont le plus utilisés :

  • Le projet accepte les traductions directes

  • Le projet accepte les suggestions faites par les utilisateurs.

Parfois nous acceptons aussi les suggestions anonymes.

Vous trouverez d’autres flux de traduction détaillés dans Flux de travail de traduction.

Les projets, ou les éléments qui les composent sont soit visibles par tous, ou seulement par un groupe dédié de traducteurs.

Projets de traduction

Les projets de traduction contiennent les composants connexes ; les ressources pour le même logiciel, livre ou projet.

../_images/project-overview.webp

Suggestions

Note

Les droits réels peuvent varier en fonction de la configuration de votre Weblate.

Anonymous users (by default) can only forward suggestions. Doing so is still available to signed-in users, in cases where uncertainty about a translation arises, prompting other translators to review it. Any user can clone an existing suggestion into the translation fields, including plural forms, and use it as the basis for a new suggestion or translation.

Toutes les suggestions sont analysées quotidiennement pour supprimer celles qui sont en double ou les suggestions qui représentent la traduction actuelle.

If you have the Accept suggestions permission, you can bulk accept all suggestions from a specific user by clicking the account check icon next to their suggestion. This is useful for quickly processing suggestions from trusted contributors. Suggestions failing quality checks are skipped and remain for manual review. Weblate shows the number of matching suggestions for confirmation and processes the acceptance in the background. If you can review the translation, you can accept and approve the suggestions in the same step.

Bulk acceptance selects suggestions from that user only for the current language in the current component. It does not select suggestions in other languages or components, even within the same project. For example, when translating a component into French, bulk acceptance selects only that user’s French suggestions in that component.

Commentaires

Trois types de commentaires peuvent être publiés :

Sélectionner le type correct du sujet dont vous voulez discuter. Les commentaires sur la chaîne source sont dans tous les cas utiles car ils donnent une appréciation de la chaîne originale, par exemple une demande pour qu’elle soit reformulée, ou si vous vous posez des questions à son propos.

Markdown syntax can be used in all comments, as well as mentioning other users by using @username. Use the Preview tab above the comment field to see how the Markdown and mentions will render before posting. Mention a maintainer or another translator when you need them to see a follow-up question; they can reply in the same Comments tab.

To find comments again, open your Profil utilisateur; the comment count links to your comment activity. To find strings with comments by a specific user, use Recherche. For example, comment_author:USERNAME finds strings with comments by that user, and source_comment_author:USERNAME finds strings with source string comments by that user. When you are signed in, the search filter menu also includes shortcuts for comments by you and source comments by you.

Variantes

Les variantes sont utilisées pour regrouper les différentes longueurs d’une chaîne. L’interface de votre projet peut alors utiliser différentes chaînes en fonction de la taille de l’écran ou de la fenêtre.

Étiquettes

Les libellés sont utilisées pour classer les chaînes de caractères dans un projet pour personnaliser ultérieurement le flux de travail de localisation (par exemple pour définir des catégories de chaînes de caractères).

Les libellés suivants sont utilisés par Weblate :

Traduit automatiquement

Chaîne traduite à l’aide de Traduction automatique.

La source doit être vérifiée

Chaîne marquée pour relecture à l’aide de Relecture des chaînes sources.

Voir aussi

String labels

Traduction

Sur la page de traduction, la chaîne source et une zone d’édition pour sa traduction sont affichées. Si la traduction utilise le pluriel, plusieurs chaînes sources et zones d’édition sont affichées, chacune étant décrite et libellée en fonction du cas pluriel.

Tous les caractères blancs spéciaux sont soulignés en rouge et indiqués par des symboles gris. Les espaces consécutives sont également soulignées en rouge pour alerter le traducteur d’un éventuel problème de formatage.

Divers éléments d’informations supplémentaires peuvent être affichés sur cette page, dont la plupart proviennent du code source du projet (comme le contexte, les commentaires ou l’endroit où le message est utilisé). Les champs de traduction pour les traducteurs de chaque langue secondaire sélectionnée dans les préférences, seront affichés (voir Langues secondaires) au-dessus de la chaîne source.

Below the translation, translators will find suggestions made by others, to be accepted (✓), accepted with changes (✏️), bulk accepted for a specific user (👤✓), cloned into the translation fields (📑) or deleted (🗑).

Translating special text safely

Some source strings contain text that the application interprets at runtime. Translate the human-readable parts, but keep technical markers intact unless the project instructions say otherwise.

Placeholders and format strings

Keep variables such as %s, %1$d, %(name)s, {count}, {{ value }}, or similar markers in the translation. Named placeholders describe the inserted value, but the names themselves are not translated. You can usually reorder numbered or named placeholders to fit the target language. Use the placeable copy shortcuts to insert them without typing mistakes.

Markup

Keep HTML and XML tags, tag names, and attribute names unchanged. Translate the visible text between tags and any attribute value that is meant for users, for example alternative text or a tooltip, when it appears as part of the translatable string. Make sure opening and closing tags still match after reordering the sentence.

Program syntax

Leave function names, commands, environment variables, spreadsheet functions, SQL keywords, and similar program syntax untranslated unless the project explicitly documents a localized form.

Punctuation and whitespace

Preserve punctuation and spaces that affect the interface, such as trailing colons, ellipses, leading or trailing spaces, and punctuation next to placeholders. Follow the target language’s typography when it differs from the source, and use comments when a source punctuation choice looks wrong.

Accelerators

Menu labels can mark keyboard accelerators with characters such as &, _, or ~. When the source has an accelerator, keep one in the translation. Choose a readable key in the translated label and avoid obvious conflicts with nearby menu items or buttons.

Plural forms

Translate each plural field Weblate shows. Do not combine forms into a single construction such as file(s) unless that is correct for the target language and project. If the source string uses an ambiguous plural, report it with a source string comment or review.

Weblate quality checks catch many technical mistakes in placeholders, markup, punctuation, whitespace, and plural forms. They do not replace translator judgment, so use Contexte de traduction, Glossaire, and Commentaires when the source text needs clarification.

Editing source strings and keys

When Gérer les chaînes is enabled and you have permission to edit source strings, choose Tools → Edit source in the translation editor. You can open this dialog from any language. Changes apply to the source string and its existing translations within the component.

The dialog lets you change the source text, supported key or context, and source explanation. Existing translations, history, comments, labels, and suggestions are retained. Changing source text marks existing translations as needing editing. Changing only the key, context, or explanation preserves their states. Renaming a key may require corresponding changes in your application code. New and renamed keys must be representable in the file format and its encoding. For example, PHP keys must use supported variable or array syntax, properties keys cannot introduce additional entries, and DTD keys must be XML names.

Changes are written to translation files through the normal pending-change queue and follow the project’s commit policy. Keys used by pending edits remain reserved until those edits are written. Weblate rejects collisions rather than merging strings. Reload the editor if another user has changed the source since you opened the dialog.

Source editing supports PO, TBX, plain XLIFF 1.2, XLIFF 2.0, and Apple XLIFF. Key editing supports JSON (plain, nested, ARB, WebExtension, and i18next), YAML, Ruby YAML, TOML, Go-i18n TOML, Java properties, GWT, PHP, DTD, Android, RESX, and simple Fluent messages. These monolingual formats also support source-text editing. PO contexts and TBX keys are editable; composite XLIFF keys are not.

YAML and TOML keys can be renamed within their existing mapping, but cannot be moved between mappings or renamed inside arrays. Editing source text with unsupported inline markup, changing the number of plural forms or terminology alternatives, and editing components with an intermediate language file are not supported.

Pluriels

Words changing form to account for their numeric designation are called plurals. Each language has its own definition of them. English, for example, supports one. In the singular definition of an example « car », implicitly one car is referenced, in the plural definition of « cars », two or more cars are referenced (or the concept of cars as a noun). Languages like, for example, Czech or Arabic have more forms of plurals, and their rules for plurals are different as well.

Weblate has full support for each of these forms, in each respective language. Each grammatical number is translated in a separate field for a pre-defined set of cardinal numbers specific to the translation language. The number of fields and how they are in turn used in the translated application or project, depends on the configured plural formula. Weblate shows the basic information and the Language Plural Rules by the Unicode Consortium is a more detailed description.

Voir aussi

Plural definitions

../_images/plurals.webp

Traductions équivalentes

Ajouté dans la version 4.13.

Note

Ceci est pris en charge actuellement uniquement avec Fichier CSV multivaleurs.

Avec certains formats il est possible d’obtenir plusieurs traductions à partir d’une seule chaîne. Vous pouvez ajouter d’autres traductions alternatives en utilisant le menu Outils. Toute traduction alternative vide sera automatiquement supprimée à l’enregistrement.

Raccourcis clavier

Les raccourcis clavier suivants peuvent être utilisés lors de la traduction :

Raccourcis clavier

Description

?

Ouvrir les raccourcis clavier disponibles.

Alt+Home

Aller à la première traduction de la recherche actuelle.

Alt+End

Aller à la dernière traduction de la recherche actuelle.

Alt + Pg. Prec ou

Ctrl + ↑ ou

Alt + ↑ ou

Cmd+↑

Aller à la traduction précédente dans la recherche en cours.

Alt+Pg. Préc ou

Ctrl+↓ ou

Alt+↓ ou

Cmd+↓

Aller à la traduction suivante dans la recherche actuelle.

Ctrl+Entrée ou

Cmd+Entrée

Envoie le formulaire courant ; c’est la même chose que presser Enregistrer et poursuivre pendant la traduction.

Ctrl+Maj+Entrée ou

Cmd+Shift+Entrée

Ne plus marquer que la traduction doit être modifiée et la soumettre.

Ctrl+Alt+Enter or

Cmd+Alt+Enter

Approuve et enregistre la traduction puis continue. Disponible uniquement pour les approbateus.

Alt+Entrée ou

Option+Entrée

Soumettre la chaîne en tant que suggestion ; c’est la même chose que de presser Suggérer pendant la traduction.

Ctrl+E ou

Cmd+E

Focus sur l’éditeur de traduction.

Ctrl+U ou

Cmd+U

Focus sur l’éditeur du commentaire.

Ctrl+M ou

Cmd+M

Affiche l’onglet Automatic suggestions, consultez Suggestions automatiques.

Ctrl+1 à Ctrl+9 ou

Cmd+1 à Cmd+9

Copie les emplacements d’un numéro donné à partir de la chaîne source.

Ctrl+M suivi de 1 à 9 ou

Cmd+M suivi de 1 à 9

Copier la traduction automatique d’un nombre donné dans la traduction actuelle.

Ctrl+I suivi de 1 à 9 ou

Cmd+I suivi de 1 à 9

Ignorer un élément de la liste des vérifications en échec.

Ctrl+J ou

Cmd+J

Affiche l’onglet Chaînes à proximité.

Ctrl+S ou

Cmd + S

Focus sur le champ de recherche.

Ctrl+O ou

Cmd + O

Copier la chaîne source.

Ctrl+Y ou

Cmd + Y

Active / désactive la case à cocher Needs editing.

→

Afficher la chaîne de traduction suivante.

←

Afficher la chaîne de traduction précédente.

Clavier visuel

Un petit clavier visuel linéaire est affiché juste au-dessus du champ de traduction. Ses lignes sont spécifiques à chaque langue ; il peut être utile pour entrer la ponctuation locale ou des caractères difficiles à saisir.

Les symboles affichés se répartissent en trois catégories :

  • Caractères spéciaux configurés par l’utilisateur définis dans Profil utilisateur

  • Caractères par langue fournis par Weblate (par exemple, les guillemets ou les caractères spécifiques à l’écriture de droite à gauche)

  • Les caractères configurés en utilisant SPECIAL_CHARS

../_images/visual-keyboard.webp

Contexte de traduction

Cette description contextuelle fournit des informations connexes sur la chaîne actuelle.

Attributs de la chaîne

Des éléments comme l’ID de message, le contexte (msgctxt) ou l’emplacement dans le code source.

Explication

Further clarification can be provided in Weblate via Explication.

Captures d’écran

Screenshots can be uploaded directly from this panel using Upload screenshot, or linked using Add existing screenshot to show where and how the string is used. Source-language screenshots are shown for every translation of the string, while translation-specific screenshots are shown only for that translation; see Screenshots and visual context.

Chaînes à proximité

Affiche les chaînes à proximité dans le fichier de traduction. Elles sont généralement utilisées dans un contexte similaire et s’avèrent utiles pour garder la cohérence de la traduction.

Autres occurrences

Dans le cas où un message apparaît à plusieurs endroits (par exemple, plusieurs composants), cet onglet les affiche tous s’ils sont jugés incohérents (voir Incohérence). Vous pouvez choisir lequel utiliser.

Mémoire de traduction

Regarder les chaînes de caractères similaires traduites dans le passé, voir Mémoire de traduction.

Glossaire

Affiche les termes du glossaire du projet utilisés dans le message actuel.

Historique

Liste des personnes qui ont récemment modifié ce message en utilisant Weblate.

Projet

Informations sur le projet, comme des instructions pour les traducteurs, un répertoire ou un lien vers la chaîne dans le dépôt du système de contrôle des versions utilisé par le projet.

Si vous souhaitez des liens directs, le format de traduction doit les prendre en charge.

Adding an existing screenshot

To link a screenshot that has already been uploaded, open the string in the translation editor:

  1. In the Screenshots panel, choose Add existing screenshot.

  2. Browse the thumbnails, or enter a query in Search screenshots and choose Search. Use Previous and Next to browse additional results.

  3. Select a screenshot by clicking its card. The card is highlighted and marked Selected. To select with a keyboard, press Tab to reach the cards, use the arrow keys to move between them, and press Space to select a card.

  4. Choose Add screenshot. The editor reloads on the same string and displays the associated screenshot in the Screenshots panel.

Screenshot picker with a highlighted card marked Selected.

The picker shows screenshots from the current component in the source language or the current translation language. A source-language screenshot is linked to the source string and shown for every translation. A translation-language screenshot is shown only for that language. Screenshots already linked to the string are excluded from the picker.

This action requires the Edit screenshot permission. To upload a new image, use Upload screenshot instead. Use Manage screenshots for the full screenshot management interface.

Historique de la traduction

Chaque modification est enregistrée par défaut (sauf si désactivé dans les paramètres du composant) dans la base de données, et peut être annulée. En option, il est également possible d’annuler toute modification dans le système de contrôle de version sous-jacent.

Each change shows an origin badge next to the username: Web, API, Repository, or System. Changes made by automation identify the installed add-on and its execution log in the tooltip of an Automation origin badge. Hover over a badge or focus it with the keyboard to see an explanation of the origin. Session-authenticated API requests, including requests from the editor, count as web actions. Token-authenticated requests count as API actions. Strings imported from a repository count as repository changes, while uploads retain their web or API origin. Background tasks inherit the initiating origin; unrelated background work uses system. Historical changes without recorded origin have no badge.

Origin badges are visible to anyone who can view the change. Superusers also see an IP address badge when an address was recorded. Origin metadata is also available through the API to users who can access the change.

In the changes browser, use Older and Newer to browse history, or Latest to return to the newest matching changes. Jump to date starts with the latest changes on or before the selected date. You can then browse in either direction, keeping your search filters. Use Date range to restrict results to a particular period.

CSV downloads and RSS feeds use the search filters, not your browsing position or jump date. CSV downloads contain up to 2,000 matching changes, and RSS feeds contain the latest 10. Old numbered page links open the latest matching changes.

Longueur de la chaîne traduite

Weblate peut limiter la longueur de la traduction de plusieurs façons pour s’assurer que la chaîne traduite n’est pas trop longue :

  • La limite par défaut pour la traduction est dix fois plus longue que la chaîne source. Elle peut être désactivée à l’aide de LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH. Dans le cas où vous atteignez cette limite, cela peut également être dû au fait que la traduction monolingue est configurée par erreur comme bilingue, ce qui fait que Weblate voit la clé de traduction comme chaîne source au lieu de la chaîne source réelle. Voir Formats monolingues et bilingues pour plus d’informations.

  • Longueur maximale en caractères définie par le fichier de traduction ou le drapeau, voir Taille maximum de la traduction.

  • Taille maximale du rendu en pixels définie par des drapeaux ; voir Taille maximale de la traduction.

Suggestions automatiques

Based on configuration and your translated language, Weblate provides suggestions from configured translation services, including machine translation tools and Mémoire de traduction. All machine translations are available in a single tab of each translation page.

Vous pouvez aussi réaliser une recherche de concordance sur le Mémoire de traduction.

Voir aussi

Vous pouvez trouver la liste des outils pris en charge dans Translation services.

Traduction automatique

You can use automatic translation to bootstrap translation based on external sources. This tool is called Automatic translation accessible in the Operations menu, once you have selected a component and a language:

../_images/automatic-translation.webp

A similar operation Batch automatic translation is available if you have selected a project language, a component or a category.

Only one automatic translation operation can process a component and language at a time. Background operations defer busy translations and resume them later, without repeating languages they have already completed. Synchronous API and command-line requests report an error immediately if the translation is busy.

Deux modes de fonctionnement sont possibles :

  • Utilisation d’autres composants Weblate comme source de traduction.

  • Utilisation de services de traduction automatique sélectionnés avec des traductions atteignant un certain seuil de qualité.

When using other components as the source, Weblate first looks for an exact match of both source text and context, including empty context. If none exists, it uses a translation matching only the source text. Context matches take precedence over source component order; component order breaks ties between equally matching candidates.

Weblate applies translations only when plural forms are compatible. If the source component uses different plural rules, pluralized strings are skipped and Weblate shows a warning, while single-form strings are still translated.

Vous pouvez également choisir les chaînes de caractères qui doivent être traduites automatiquement.

Avertissement

Soyez conscient que cela remplacera les traductions existantes si elles sont utilisées avec des filtres larges tels que Toutes les chaînes.

Cela peut s’avérer utile dans plusieurs situations, comme la consolidation de la traduction entre différents composants (par exemple entre l’application et son site web) ou de l’amorçage d’une traduction pour un nouveau composant en utilisant des traductions existantes (mémoire de traduction).

Les chaînes traduites automatiquement reçoivent la marque Traduit automatiquement.

Limite de requêtes

Pour éviter les abus de l’interface, la limitation du taux est appliquée à plusieurs opérations comme la recherche, l’envoi du formulaire de contact ou la traduction. Si vous êtes concerné par cela, vous resterez bloqué pendant un certain temps jusqu’à ce que vous puissiez recommencer l’opération.

Default limits and fine-tuning are described in the administrative manual, see Limite de requêtes.

Rechercher et remplacer

Search and replace is part of Modification en masse. Use it to change terminology or fix matching translations, with literal text or regular expressions.

Modification en masse

Bulk editing allows performing one operation for multiple strings. Define strings by searching for them and actions to perform on matching ones. Flag and label changes are grouped by what they affect, with separate Add flags and Remove flags fields for each flag group. Supported operations:

  • Changer l’état des chaînes (par exemple pour approuver toutes les chaînes non révisées).

  • Clear translations by setting the state to Empty.

  • Replace text, including regular expressions and captured groups.

  • Adjust source-wide or language-specific translation flags (see Personnaliser le comportement en utilisant des drapeaux)

  • Ajustement des libellés de chaînes de caractères (voir String labels)

Source flag and label operations affect all languages of matching strings. Translation flag operations affect only matching translations and skip source strings. Removing translation flags removes local values; inherited flags remain in effect. To mark matching translations read-only, add read-only using Add flags in the Translation flags section.

Indication

This tool is called Bulk edit, accessible in the Operations menu of each project, component or translation.

Text replacement uses the strings matched by the search query or your selection. Choose Text for case-sensitive literal replacement, or Regular expression for a pattern. Leave Search string empty to disable replacement. An empty Replacement string removes matching text. Spaces and newlines in the fields are preserved, and each plural form is processed separately. The usual translation autofixes still apply. Strings where the replaced text would exceed the length limit of the translation editor are left unchanged, and the preview and result report how many were skipped.

Regular expression replacements use Python syntax: \g<1> inserts the first captured group, \g<name> inserts a named group, and \g<0> inserts the complete match. For example, search for (Hello), (world) and replace with \g<2>, \g<1> to swap the words. Invalid patterns or references are rejected; expressions that take too long to evaluate stop the operation.

Replacement can be combined with state, flag, and label changes. These other operations apply to all strings matched by the query, including strings whose text does not match the replacement pattern. Setting Empty clears all translation plural forms and cannot be combined with replacement. Source strings can be replaced when editable, but cannot be cleared. These operations require bulk-edit and edit permissions and respect read-only strings.

Each selected translation is processed independently, once per operation. Automatic propagation skips other selected translations so that their own replacement inputs are preserved. Eligible translations outside the selection can still receive propagated changes.

Preview changes is selected by default. The preview shows up to 250 changed strings, with checkboxes to choose which displayed strings to apply. Edit the parameters and choose Update preview to review a different operation. Select Apply all matching strings to process all current matches, including those not displayed. The query and permissions are checked again when applying changes. Source flag and label changes affect every language of the corresponding source, even when only one translation is selected. Uncheck Preview changes to apply directly.

Each bulk edit is limited to 20,000 matching strings. Narrow the search query if it exceeds this limit. This limit also applies to Automations and the bulk-edit add-on. Browser bulk edits run in the background and show progress after submission. The query and permissions are checked again when the task starts. The selected strings are processed in batches; if a later batch fails, earlier batches remain applied and the result reports the partial progress.

Regular expression replacement runs in a separate helper process with fixed resource limits shared across the bulk operation. Patterns and replacement strings are limited to 4096 characters each. Each plural form is limited to 1 MiB of UTF-8 input and output, and the operation can return at most 64 MiB of replacement text, including unchanged text. Literal replacement does not use this helper or these regex limits.

The helper has a cumulative CPU limit of 5 seconds and a 192 MiB address-space limit. Each match operation is limited to 0.3 seconds. The application waits at most 2 seconds per helper exchange and 10 seconds cumulatively; database work between exchanges does not count toward this waiting limit. Validation and replacement reuse the helper within one request, and components processed synchronously share its budget. A separate request or queued task gets a fresh budget.

Exceeding a limit stops regex processing and rolls back the current batch. Changes to batches completed earlier remain applied. The preview and actual execution enforce the same limits. On macOS the helper enforces time and output limits but cannot enforce the address-space limit; native regex compilation or matching can still exhaust memory there.

../_images/bulk-edit.webp ../_images/bulk-edit-preview.webp

Vue matricielle

You can compare different languages efficiently using this view. It is available on every component page, from the Operations menu. First select all languages you want to compare, confirm your selection, then click on any translation to open and edit it.

La présentation matricielle est aussi un bon point de départ pour trouver les traductions manquantes dans les différentes langues et pour les ajouter rapidement dans une fenêtre.

../_images/matrix-view.webp

Mode Zen

Ce mode simplifie l’affichage et supprime les éléments supplémentaires de l’interface utilisateur tels que les Chaînes à proximité ou le Glossaire. Il est disponible en cliquant sur le bouton Zen dans le coin supérieur droit de l’éditeur standard (traduction d’une chaîne).

Vous pouvez choisir l’éditeur Zen comme éditeur par défaut en utilisant l’onglet Préférences de votre Profil utilisateur. Vous pouvez aussi y définir l’affichage des traductions triées De haut en bas ou Côte à côte, en fonction de vos préférences.

../_images/zen-mode.webp