Grunderna i Weblate

Projekt- och komponentstruktur

I Weblate är översättningar organiserade i projekt och komponenter. Varje projekt kan innehålla ett antal komponenter och dessa innehåller översättningar till enskilda språk. Komponenten motsvarar en översättningsbar fil (till exempel GNU gettext PO (Portable Object) eller Android-strängresurser). Projekten finns till för att hjälpa dig att organisera komponenter i logiska uppsättningar (till exempel för att gruppera alla översättningar som används inom en applikation).

Dessutom kan komponenter inom projekt struktureras med hjälp av kategorier. Komponenter kan tillhöra en kategori, och kategorier kan vara hierarkiska.

Internt har varje projekt översättningar till vanliga strängar som sprids till andra komponenter inom projektet som standard. Detta minskar bördan av repetitiva översättningar och översättningar i flera versioner. Översättningsspridningen kan inaktiveras per Komponentkonfiguration med hjälp av Tillåt spridning av översättning om översättningarna skulle skilja sig åt.

Integrering av arkiv

Weblate är byggt för att integreras med uppströms versionskontrollförvar, Kontinuerlig lokalisering beskriver byggstenar och hur förändringarna flödar mellan dem.

Se även

Arkitekturöversikt beskriver hur Weblate fungerar internt.

Användarattribution

Weblate sparar översättningarna som översättarna har skapat i versionskontrollförvaret med hjälp av namn och e-postadress. Att ha en riktig e-postadress kopplad till commit följer principerna för distribuerad versionskontroll och gör det möjligt för tjänster som GitHub att koppla dina bidrag i Weblate till din GitHub-profil.

Denna funktion medför också en risk för missbruk av e-postmeddelanden som publiceras i versionskontrollens commit. Dessutom finns det i praktiken inget sätt att redigera en sådan commit när den väl har publicerats på en offentlig hosting (som GitHub). Weblate gör det möjligt att välja ett privat commit-e-postmeddelande i Konto för att undvika detta.

Därför bör administratörer ta hänsyn till detta när de konfigurerar Weblate:

  • En sådan användning av e-post bör tydligt beskrivas i tjänstevillkoren om ett sådant dokument behövs. Juridisk modul kan hjälpa till med det.

  • PRIVATE_COMMIT_EMAIL_OPT_IN kan göra e-postmeddelanden privata som standard.

Make your first translation

You can contribute to a project using your web browser. You do not need to install Weblate or work with its source code repository.

Find your project and language

  1. Follow the translation link from the project you want to help. Projects can use Hosted Weblate or their own Weblate installation; use an account on that installation. If you arrive at its dashboard, choose Projects > Browse all projects to find the project.

  2. Sign in, or follow the site’s registration instructions. Access depends on the project: you might need to request permission from its maintainers. Some projects also accept suggestions without signing in.

  3. If you are signed in, open your user menu and choose Settings. Under Languages, select your Translated languages and, optionally, Secondary languages you understand. Secondary languages appear above the source as additional help. Save your settings. If you are contributing anonymously, skip this step and choose your language directly in the project as described below.

Language settings with French selected for translation and German as a secondary language.

Read the project’s translation instructions before starting. These can explain terminology, style, priorities, and how to contact the language team. If you cannot find them, ask the maintainers which component to start with.

Choose your language and a component. A component groups related strings, such as an application’s interface or its documentation. Open Untranslated strings to start with empty translations, or Unfinished strings to include translations that still need work. Use All strings or Söker to find existing translations. If your language is missing, use the option to start or request a translation when available, or contact the maintainers.

Translate a string

The editor shows the source text and a field for your translation. Read any explanation, screenshot, nearby strings, and glossary entries before writing. Short strings can have several meanings: ask in Kommentarer if the context is unclear. Other languages can help, but their translations can also contain mistakes.

Write a natural expression of the intended meaning in your language. Follow your language’s typography and the project’s terminology and style. Preserve technical markers such as placeholders and markup; see Translating special text safely. When Weblate displays several plural fields, complete each one according to its label; see Pluralformer.

French translation editor with plural forms, a missing-placeholder warning, the preferred glossary term for workspace, and a billing banner screenshot.

Use explanations, screenshots, and glossary terms to choose the right wording. Quality checks highlight problems such as the missing %(days)s placeholder in this draft. The translator can edit, save, or suggest a translation.

Choose the action that fits your contribution:

  • Save and continue saves your translation and opens the next string. Use Save and stay to remain on the current string.

  • Mark Needs editing when saving a translation that still needs work. Clear it after you have resolved the outstanding issues.

  • Suggest proposes a translation for someone to accept. Use this when you want another translator to consider your wording, or when the project only allows you to suggest changes. A suggestion does not replace the current translation until it is accepted.

  • Skip moves on without saving your edits. You can return later.

The available actions depend on your permissions and the project’s workflow. For example, an approved translation might only allow you to suggest a change. Saving in Weblate does not mean the translation is immediately published in the application: review, repository synchronization, and releases depend on the project. See Översättningsstatus and Översättningsarbetsflöden.

Check your work and ask for help

Read your translation again after saving. If Weblate reports failing quality checks, open their explanations and correct the problem. Ignore a check only when you have confirmed it is a false positive and your permissions allow it. Passing all checks does not guarantee that the meaning or tone is correct. Review suggestions from translation memory or machine translation just as carefully as text you write yourself.

Use a translation comment for questions about your language, or a source string comment for an unclear or incorrect original. Explain the problem and include the context you have found. If source editing or source review is available, follow the project’s instructions for proposing a correction; otherwise use its advertised contact or repository link. See Kommentarer and Mottagande av feedback om källsträngen.

Keep contributing

Watch projects you want to return to and choose your Aviseringar. Your Kontrollpanel helps you find watched translations in your selected languages. You can also help by reviewing existing translations and suggestions when your permissions allow it.

As you become familiar with the editor, explore Kortkommandon, Översättningskontext, Ordlista, and Söker. The editor’s History tab shows earlier changes to a string. See Inställningar for editor preferences and Ladda ner och ladda upp översättningar for downloading and uploading translations to work offline.