Traduir amb 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.
En general, hi ha dos modes de traducció més utilitzats:
Project accepts direct translations
Project accepta els suggeriments dels usuaris.
De vegades, també s’accepten suggeriments anònims.
There are more translation workflows detailed in Fluxos de treball de traducció.
Els projectes, o els components d’ells, són visibles per a tothom o només per a un determinat grup de traductors.
Vegeu també
Projectes de traducció¶
Els projectes de traducció tenen components relacionats; recursos per al mateix programari, llibre o projecte.
Enllaços de traducció¶
Després d’haver navegat a un component, un conjunt d’enllaços condueixen a la seva traducció real. La traducció es divideix a més en comprovacions individuals, com ara Cadenes no traduides o Cadenes inacabades. Si tot el projecte ja està traduït sense cap error, Totes les cadenes encara està disponible. Alternativament, podeu utilitzar la funció Cerca per trobar una cadena o un terme específics.
Suggeriments¶
Nota
Els permisos reals poden variar segons la configuració de Weblate.
Els usuaris anònims (per defecte) només poden reenviar suggeriments. Fer-ho encara està disponible per als usuaris que han iniciat la sessió, en els casos en què sorgeix una incertesa sobre una traducció, cosa que fa que altres traductors la revisin. Qualsevol usuari pot clonar un suggeriment existent als camps de traducció, incloses les formes plurals, i utilitzar-lo com a base per a un nou suggeriment o traducció.
Tots els suggeriments s’escanegen diàriament per eliminar els duplicats i els que coincideixen amb les traduccions actuals.
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.
Variants¶
Les variants s’utilitzen per agrupar variants de longitud diferent d’una cadena. La interfície del vostre projecte pot utilitzar diferents cadenes depenent de la mida d’una pantalla o finestra.
Vegeu també
Etiquetes¶
Les etiquetes s’utilitzen per categoritzar les cadenes dins d’un projecte per personalitzar encara més el flux de treball de localització (per exemple, per definir categories de cadenes).
Following labels are used by Weblate:
- Traduïda automàticament
String translated using Traducció automatitzada.
- Cal que es revisi l’origen
String marked for review using Ressenyes de cadenes d’origen.
Vegeu també
Translating¶
A la pàgina de traducció, es mostra la cadena d’origen i una àrea d’edició per a la seva traducció. Si la traducció és plural, es mostren múltiples cadenes d’origen i àrees d’edició, cadascuna descrita i etiquetada en la quantitat de formes plurals que té la llengua traduïda.
Tots els caràcters especials d’espais en blanc es subratllen en vermell i s’indiquen amb símbols grisos. Més d’un espai posterior també està subratllat en vermell per alertar el traductor d’un possible problema de format.
Various bits of extra info can be shown on this page, most of which coming from the project source code (like context, comments or where the message is being used). Translation fields for any secondary languages translators select in the preferences will be shown (see Llengües secundàries) above the source string.
A sota de la traducció, els traductors trobaran suggeriments fets per altres, per ser acceptats (✓), acceptats amb canvis (✏️), acceptats massivament per a un usuari concret (👤✓), clonats als camps de traducció (📑) o suprimits (🗑).
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 Context de la traducció, Glossari, and Comentaris when the source text needs clarification.
Editing source strings and keys¶
When Gestiona les cadenes 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.
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.
Vegeu també
Plurals¶
Les paraules que canvien de forma per tenir en compte la seva designació numèrica s’anomenen plurals. Cada llengua en té la seva pròpia definició. L’anglès, per exemple, n’admet un. En la definició singular d’un exemple «cotxe», implícitament es fa referència a un cotxe, en la definició plural de «cotxes», es fa referència a dos o més cotxes (o el concepte de cotxes com a substantiu). Llengües com, per exemple, el txec o l’àrab tenen més formes de plurals, i les seves regles per als plurals també són diferents.
Weblate té suport total per a cadascun d’aquests formularis, en cada idioma respectiu. Cada nombre gramatical es tradueix en un camp independent per a un conjunt predefinit de números cardinals específics per a l’idioma de traducció. El nombre de camps i com s’utilitzen al seu torn a l’aplicació o projecte traduït depèn de la fórmula plural configurada. Weblate mostra la informació bàsica i les Language Plural Rules del Consorci Unicode és una descripció més detallada.
Vegeu també
Alternative translations¶
Afegit a la versió 4.13.
Nota
Actualment només s’admet amb Multivalue CSV file.
Amb alguns formats, és possible tenir més traduccions per a una sola cadena. Podeu afegir més traduccions alternatives utilitzant el menú Eines. Qualsevol traducció alternativa en blanc s’eliminarà automàticament en desar-la.
Dreceres de teclat¶
Les tecles de drecera següents es poden utilitzar durant la traducció:
Keyboard shortcut |
Descripció |
|---|---|
? |
Obre les dreceres de teclat disponibles. |
Alt+Inici |
Navega a la primera traducció de la cerca actual. |
Alt+Final |
Navega a l’última traducció de la cerca actual. |
Alt+Pàg o Ctrl+↑ o Alt+↑ o Cmd+↑ |
Navega a l’anterior traducció de la cerca actual. |
Alt+PageDown o Ctrl+↓ o Alt+↓ o Cmd+↓ |
Navega a la següent traducció de la cerca actual. |
Ctrl+Enter o Cmd+Enter |
Envieu el formulari actual; això és el mateix que prémer Desa i continua mentre editeu la traducció. |
Ctrl+Maj+Retorn o Cmd+Maj+Enter |
Desmarca la traducció com a «cal editar» i l’envia. |
Ctrl+Alt+Enter or Cmd+Alt+Enter |
Approve the translation and save and continue. Only available to reviewers. |
Alt+Enter o Opció+Retorn |
Envieu la cadena com a suggeriment; això funciona igual que prémer Suggerir mentre editeu la traducció. |
Ctrl+E o Cmd+E |
Posa el focus a l’editor de la traducció. |
Ctrl+U o Cmd+U |
Posa el focus a l’editor dels comentaris. |
Ctrl+M o Cmd+M |
Shows Automatic suggestions tab, see Suggeriments automàtics. |
Ctrl+1 a Ctrl+9 o Cmd+1 a Cmd+9 |
Copia l’objecte col·locable de la cadena d’origen del número especificat. |
Ctrl+M seguit de 1 a 9 o Cmd+M seguit de 1 a 9 |
Copia la traducció automàtica del número proporcionat a la traducció actual. |
Ctrl+I seguit de 1 a 9 o Cmd+I seguit de 1 a 9 |
Ignora un element de la llista de comprovacions fallides. |
Ctrl+J o Cmd+J |
Shows the Nearby strings tab. |
Ctrl+S o Cmd+S |
Posa el focus al camp de cerca. |
Ctrl+O o Cmd+O |
Copia la cadena d’origen. |
Ctrl+Y o Cmd+Y |
Toggle the Needs editing checkbox. |
→ |
Navega a la cadena següent de la traducció. |
← |
Navega a la cadena anterior de la traducció. |
Teclat visual¶
Es mostra una petita fila de teclat visual just a sobre del camp de traducció. Les seves files són específiques de cada idioma; pot ser útil per a la puntuació local o els caràcters que són difícils d’escriure a mà.
Els símbols mostrats es divideixen en tres categories:
L’usuari configurat Caràcters especials definit a la Perfil d’usuari
Caràcters per idioma proporcionats per Weblate (p. ex., cometes o caràcters específics de RTL)
Caràcters configurats mitjançant
SPECIAL_CHARS
Context de la traducció¶
Aquesta descripció contextual proporciona informació relacionada amb la cadena actual.
- Atributs de cadena
Coses com l’identificador del missatge, el context (
msgctxt) o la ubicació al codi font.- Explicació
Further clarification can be provided in Weblate via Explicació.
- Captures de pantalla
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.
- Cadenes properes
Mostra les cadenes veïnes del fitxer de traducció. Normalment també s’utilitzen en un context similar i resulten útils per mantenir la traducció coherent.
- Altres aparicions
En cas que un missatge aparegui en diversos llocs (per exemple, diversos components), aquesta pestanya els mostra tots si es troba que no són coherents (vegeu Inconsistent). Podeu triar quin utilitzar.
- Memòria de traducció
Mireu cadenes similars traduïdes en el passat, vegeu Memòria de traducció.
- Glossari
Mostra els termes del glossari del projecte utilitzats al missatge actual.
- Historial
Llista de persones que han canviat aquest missatge recentment mitjançant Weblate.
- Projecte
Informació del projecte, com ara instruccions per als traductors, o un directori o enllaç a la cadena al dipòsit del sistema de control de versions que utilitza el projecte.
Si voleu enllaços directes, el format de traducció l’ha de suportar.
Adding an existing screenshot¶
To link a screenshot that has already been uploaded, open the string in the translation editor:
In the Screenshots panel, choose Add existing screenshot.
Browse the thumbnails, or enter a query in Search screenshots and choose Search. Use Previous and Next to browse additional results.
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.
Choose Add screenshot. The editor reloads on the same string and displays the associated screenshot in the Screenshots panel.
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.
Història de la traducció¶
Cada canvi es desa per defecte (tret que estigui desactivat a la configuració dels components) a la base de dades i es pot revertir. Opcionalment, les traduccions també es poden revertir al sistema de control de versions subjacent.
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.
Longitud de la cadena traduïda¶
Weblate pot limitar la durada d’una traducció de diverses maneres per garantir que la cadena traduïda no sigui massa llarga:
La limitació predeterminada per a la traducció és deu vegades més llarga que la cadena d’origen. Això es pot modificar amb
LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH. Si esteu colpejant això, també pot ser causat perquè una traducció monolingüe s’ha configurat incorrectament com a bilingüe, de manera que Weblate confongui la clau de traducció amb la cadena d’origen real. Vegeu Formats bilingües i monolingües per a més informació.Longitud màxima en caràcters definida pel fitxer de traducció o el senyalador, segons Longitud màxima de la traducció.
Mida màxima representada en píxels tal com la defineixen les banderes; vegeu Mida màxima de la traducció.
Suggeriments automàtics¶
Segons la configuració i l’idioma traduït, Weblate ofereix suggeriments de diverses eines de traducció automàtica i Memòria de traducció. Totes les traduccions automàtiques estan disponibles en una sola pestanya de cada pàgina de traducció.
You can also perform a concordance search on the Memòria de traducció.
Vegeu també
Podeu trobar la llista d’eines admeses a Suggeriments automàtics.
Traducció automatitzada¶
Podeu utilitzar la traducció automàtica per iniciar la traducció basada en fonts externes. Aquesta eina s’anomena Traducció automàtica accessible al menú Operacions, un cop hagueu seleccionat un component i un idioma:
Una operació similar Traducció automàtica per lots està disponible si heu seleccionat un idioma del projecte, un component o una categoria.
Són possibles dos modes de funcionament:
Ús d’altres components de Weblate com a font de traduccions.
Ús de serveis de traducció automàtica seleccionats amb traduccions per sobre d’un determinat llindar de qualitat.
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.
També podeu triar quines cadenes s’han de traduir automàticament.
Avís
Tingueu en compte que això sobreescriurà les traduccions existents si s’utilitza amb filtres amplis com ara Totes les cadenes.
Útil en diverses situacions, com ara consolidar la traducció entre diferents components (per exemple, l’aplicació i el seu lloc web) o quan s’inicia una traducció d’un nou component utilitzant traduccions existents (memòria de traducció).
The automatically translated strings are labelled Automatically translated.
Limitació de tarifes¶
Per evitar l’abús de la interfície, s’aplica una limitació de velocitat a diverses operacions, com ara la cerca, l’enviament de formularis de contacte o la traducció. Si se’n veu afectat, estàs bloquejat durant un període determinat, fins que pots tornar a realitzar l’operació.
Els límits per defecte i l’ajustament es descriuen al manual administratiu, vegeu Limitació de tarifes.
Cerca i substitueix¶
Change terminology effectively or perform bulk fixing of the strings using Search and replace in the Operations menu.
Suggeriment
Don’t worry about messing up the strings, as it is a two-step process. A preview of edited strings is shown before confirming the change. You can adjust the search parameters from the preview and update it before applying the replacement.
Edició massiva¶
L’edició massiva permet realitzar una operació per a diverses cadenes. Defineix cadenes cercant-les i accions a realitzar sobre les que coincideixen. Operacions suportades:
Change string state (for example to approve all unreviewed strings).
Adjust source-wide or language-specific translation flags (see Personalització del comportament mitjançant banderes)
Ajusteu les etiquetes de cadena (vegeu Etiquetes de cadena)
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
under Translation flags to add — matching translations.
Suggeriment
This tool is called Bulk edit, accessible in the Operations menu of each project, component or translation.
Vegeu també
Matrix View¶
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 vista matricial també és un molt bon punt de partida per trobar traduccions que falten en diferents idiomes i afegir-les ràpidament des d’una vista.
Zen Mode¶
Aquest mode simplifica el disseny i elimina elements addicionals de la IU, com ara Cadenes properes o el Glossari. Està disponible fent clic al botó Zen a la part superior dreta de l’editor normal (traducció d’una cadena).
You can select the Zen editor as your default editor using the Preferències tab on your Perfil d’usuari. You can also choose there between having translations listed Top to bottom or Side by side, depending on your personal preference.
Comentaris¶
Es poden publicar tres tipus de comentaris:
for translations
for source strings
per informar d’errors de cadena d’origen quan aquesta funcionalitat està activada utilitzant Activa les revisions d’origen.
Trieu el tipus adequat per al tema que voleu tractar. Els comentaris de la cadena d’origen són, en qualsevol cas, bons per proporcionar comentaris sobre la cadena original, per exemple, que s’ha de reformular o per fer preguntes al respecte.
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 Perfil d’usuari; the comment count links to your comment activity. To find strings with comments by a specific user, use Searching. For example,
comment_author:USERNAMEfinds strings with comments by that user, andsource_comment_author:USERNAMEfinds 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.Vegeu també
Receiving source string feedback
Ressenyes de cadenes d’origen
Activa les revisions d’origen