Postupak prevođenja

Glasanje za prijedlog

Everyone can add suggestions by default, to be accepted by signed in users. Suggestion voting can be used to make use of a string when more than one signed-in user agrees, by setting up the Konfiguracija komponente with Suggestion voting to turn on voting, and Automatically accept suggestions to set a threshold for accepted suggestions (this includes a vote from the user making the suggestion if it is cast).

Napomena

Once automatic acceptance is set up, normal users lose the privilege to directly save translations or accept suggestions. This can be overridden with the Edit string when suggestions are enforced permission.

You can combine these with access control into one of the following setups:

  • Users suggest and vote for suggestions and a limited group controls what is accepted.

    • Uključi glasanje.

    • Isključi automatsko prihvaćanje.

    • Don’t let users save translations.

  • Korisnici predlažu i glasaju za prijedloge s automatskim prihvaćanjem nakon što se određeni broj korisnika slože.

    • Uključi glasanje.

    • Set the desired number of votes for automatic acceptance.

  • Optional voting for suggestions. (Can optionally be used by users when they are unsure about a translation by making multiple suggestions.)

    • Only turn on voting.

Dodatne informacije o izvornim izrazima

Enhance the translation process by adding additional info to the strings including explanations, string priorities, check flags and visual context. Some of that info may be extracted from the translation files and some may be added by editing the additional string info:

../_images/source-review-edit.webp

Access this directly from the translation interface by clicking the „Edit” icon next to Screenshot context or Flags.

../_images/source-information.webp

Prioriziranje izraza

String priority can be changed to offer higher priority strings for translation earlier by using the priority flag.

Savjet

This can be used to order the flow of translation in a logical manner.

Prevodilačke oznake

Customization of quality checks and other Weblate behavior, see Customizing behavior using flags.

The string flags are also inherited from the Prevodilačke oznake at Konfiguracija komponente and flags from the translation file (see Localization file formats).

Use Source flags — all languages to configure every translation of a string, and Translation flags to configure the current language. Translation flags override source values such as max-length and max-size. Removing a local value restores the inherited value. An explicit read-only flag on the source applies to every language and cannot be discarded by a translation.

The Tools menu can mark one translation or all languages read-only. When a translation is already read-only, choose Make read-only apply to all languages to move its flag to the source. Removing source-wide read-only preserves independently set translation flags. Editing flags requires source editing permission, or glossary editing permission for glossary entries, in each affected language.

Objašnjenje

Promijenjeno u verziji 4.1: In previous versions this has been called Extra context.

Promijenjeno u verziji 4.18: Support for syncing explanation with a file was introduced.

Use the explanation to clarify scope or usage of the translation. You can use Markdown to include links and other markup.

Some file formats support storing explanation within the file, see Objašnjenje.

Savjet

Weblate can also display description present in the translation file for some formats, see Opis izvornog izraza.

Screenshots and visual context

Možeš prenijeti snimku ekrana koja prikazuje određeni izvorni izraz koji se koristi u tvom programu. To pomaže prevoditeljima da razumiju gdje se izraz koristi i kako ga prevesti.

Prenesena snimka ekrana se prikazuje u bočnoj traci konteksta prijevoda:

../_images/screenshot-context.webp

In addition to Dodatne informacije o izvornim izrazima, screenshots can be managed in the Weblate UI, kept in sync from the repository, or handled through the Weblateov REST API.

Managing screenshots in the UI

Each screenshot is stored for a specific translation language. In the translate page, screenshots attached to the source language are shown for every translation of the string, while screenshots attached to any other language are shown only for that language. You can add a screenshot directly from the translate page using Upload screenshot in the Screenshots panel, or open the separate management interface under the Operations menu. There you can upload screenshots, assign them to source strings manually, or let Weblate find strings in the image using optical character recognition (OCR). Recognition runs in the background when a screenshot is added or replaced. Open the Image text tab to review suggested source strings. If recognition is still running, the list updates automatically when results are ready. Use Search to find source strings manually.

Recognized text is cached and refreshed when the image or recognition software changes. Existing screenshots are processed when opened if cached results are missing or outdated. Recognition does not assign strings automatically.

Image text suggestions process at most 512 recognized text parts and show at most 250 source strings. On dense images or large components, Weblate shows the matches found within the processing time limit and indicates when suggestions may be incomplete. Use Search to find other source strings.

Matching source strings can be assigned individually, in a selected batch, or all at once.

To associate an uploaded screenshot with the current string, use Add existing screenshot in the translation editor. See Adding an existing screenshot for the workflow and required permission.

The screenshot listing summarizes uploaded screenshots and lets you search or filter them:

../_images/screenshot-listing.webp

Once a screenshot is uploaded, this interface handles management and source string association:

../_images/screenshot-ocr.webp

Use the screenshot listing search to find screenshots by name, repository path, language, assigned source string, source string context, or source string location. The search accepts plain text as well as advanced screenshot queries, see snimke ekrana. For example, use NOT has:string to find unassigned screenshots, has:string to find assigned screenshots, or repository:fastlane to review screenshots discovered from repository paths.

You can upload a screenshot from a local file, paste it from the clipboard, or provide a URL to download an image from an external source. URL-based uploads may be restricted based on the ALLOWED_ASSET_DOMAINS setting, which controls which domains are trusted for downloading external assets, including any redirects followed while fetching the image, and ASSET_RESTRICT_PRIVATE, which rejects internal or non-public targets unless they are included in ASSET_PRIVATE_ALLOWLIST. The ALLOWED_ASSET_SIZE setting limits maximal size for the asset.

Upravljanje snimkama ekrana iz repozitorija

You can add or update screenshots directly from your Version Control System (VCS) repository.

To enable this feature, you can either set a screenshot file mask when creating a component, which will be monitored for updates in the repository, or you can add or update screenshots when uploading them manually.

To connect a manually uploaded screenshot with later repository updates, fill in Repository path to screenshot with the path tracked in the repository.

When the repository is updated, the system will automatically scan for changes. Existing screenshots in the repository will be updated, and new screenshots matching the specified screenshot file mask will be added to the component.

For application projects, a practical workflow is:

  1. Capture source-language screenshots for the most visible user interface.

  2. Store them in a stable repository path, for example below fastlane/metadata/android/en-US/images/phoneScreenshots/.

  3. Configure Maska snimke ekrana for that path.

  4. Update the component repository so Weblate discovers or refreshes the screenshots.

  5. Use image text recognition or source string search to assign screenshots to the matching source strings, and review the Source strings without screenshots counter for important strings still missing visual context.

Više informacija

Maska snimke ekrana

../_images/screenshot-filemask-repository-filename.webp

Managing screenshots through the API

Screenshot workflows are also available through the REST API. Use GET /api/components/(string:project)/(string:component)/screenshots/ to list screenshots for one component, POST /api/screenshots/ to create screenshots, POST /api/screenshots/(int:id)/file/ to replace the image, POST /api/screenshots/(int:id)/units/ and DELETE /api/screenshots/(int:id)/units/(int:unit_id) to manage source string associations, and DELETE /api/screenshots/(int:id)/ to delete screenshots. Screenshot API objects include the related translation and the optional repository path used for repository-based updates.