Checks and fixups

The quality checks help catch common translator errors, ensuring the translation is in good shape. The checks can be ignored in case of false positives. For practical translation guidance around placeholders, markup, punctuation, and plural forms, see Translating special text safely.

Once submitting a translation with a failing check, this is immediately shown to the user:

../_images/checks.webp

Automatic fixups

In addition to Quality checks, Weblate can fix some common errors in translated strings automatically. Use it with caution to not have it add errors.

Vedi anche

AUTOFIX_LIST

Sostitutivo dei puntini di sospensione finali

Nome della classe:

weblate.trans.autofixes.chars.ReplaceTrailingDotsWithEllipsis

Replace trailing dots (...) with an ellipsis () to make it consistent with the source string.

Rimozione dello spazio a larghezza zero

Nome della classe:

weblate.trans.autofixes.chars.RemoveZeroSpace

Zero width space is typically not desired in the translation. This fix will remove it unless it is present in the source string as well.

Rimozione caratteri di controllo

Nome della classe:

weblate.trans.autofixes.chars.RemoveControlChars

Removes control characters if the source does not contain any.

Devanagari danda

Nome della classe:

weblate.trans.autofixes.chars.DevanagariDanda

Replaces sentence full stop in Bangla by the Devanagari danda character ().

Spaziatura punteggiatura

Nome della classe:

weblate.trans.autofixes.chars.PunctuationSpacing

Added in version 5.3.

Ensures French uses correct punctuation spacing.

This fixup can be disabled via ignore-punctuation-spacing flag (which also disables Spaziatura punteggiatura).

Pulizia HTML non sicura

Nome della classe:

weblate.trans.autofixes.html.BleachHTML

Removes unsafe HTML markup from strings flagged as safe-html.

Vedi anche

HTML non sicuro

Riparatore spazi bianchi iniziali e finali

Nome della classe:

weblate.trans.autofixes.whitespace.SameBookendingWhitespace

Makes leading and trailing whitespace consistent with the source string. The behavior can be fine-tuned using ignore-begin-space and ignore-end-space flags to skip processing parts of the string.

Quality checks

Weblate employs a wide range of quality checks on strings. The following section describes them all in further detail. There are also language specific checks. Please file a bug if anything is reported in error.

Translation checks

Executed upon every translation change, helping translators maintain good quality translations.

Accelerator key

Added in version 2026.7.

Riepilogo:

Source and translation contain inconsistent accelerator keys.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.AcceleratorKeyCheck

Controlla l’identificatore:

accelerator

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

accelerator

Flag to ignore:

ignore-accelerator

Accelerator keys (also known as mnemonics) let users trigger a UI action from the keyboard. They are marked in the string by a single punctuation character, typically & (Qt, Windows), _ (GTK), or ~. Literal marker characters can usually be escaped by doubling them, and are ignored by this check. Enable this check with the accelerator: flag to explicitly choose the marker, for example accelerator:&, accelerator:_, or accelerator:~.

This check verifies that the source and the translation contain the same number of accelerator keys, and that the translation does not contain more than one.

Nota

A string such as Walter & Sons might be translated without the ampersand and trigger a false positive. Use the ignore-accelerator flag to skip the check for such strings.

AsciiDoc markup

Added in version 2026.8.

Riepilogo:

AsciiDoc markup does not match source.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.AsciiDocMarkupCheck

Controlla l’identificatore:

asciidoc-markup

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File AsciiDoc

Flag to enable:

asciidoc-text

Flag to ignore:

ignore-asciidoc-markup

This check compares the markups found in the source with the markups found in the translation. It includes:

  • inline and block macros (e.g. link: and image::)

  • cross-references (<<id>>)

  • passthroughs (e.g. +++...+++, $$...$$)

Macro attribute text and cross-reference labels may be translated; the macro name, target, and reference identifier must stay the same in both the source and the translation.

Markup BBCode

Cambiato nella versione 5.10: This checks no longer relies on unreliable automatic detection, it now needs to be turned on using the bbcode-text flag.

Riepilogo:

BBCode nella traduzione non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.BBCodeCheck

Controlla l’identificatore:

bbcode

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

bbcode-text

Flag to ignore:

ignore-bbcode

BBCode represents simple markup, like for example highlighting important parts of a message in bold font, or italics.

This check ensures they are also found in translation.

Nota

The method for detecting BBCode is currently quite simple so this check might produce false positives.

Caratteri attorno ai tag XML

Riepilogo:

I caratteri che circondano i tag XML nella traduzione non sono allineati con la fonte.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.XMLCharsAroundTagsCheck

Controlla l’identificatore:

xml-chars-around-tags

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-xml-chars-around-tags

Checks that the characters surrounding an XML tag are consistent between both source and translation. Ensures letters are not replaced with non-letters, and vice versa.

Nota

This check is disabled by the safe-html flag as the HTML cleanup done by it can produce HTML markup which is not valid XML.

Parole duplicate consecutive

Added in version 4.1.

Riepilogo:

Il testo contiene la stessa parola due volte di fila.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.duplicate.DuplicateCheck

Controlla l’identificatore:

duplicate

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-duplicate

Checks that no consecutive duplicate words occur in a translation. This usually indicates a mistake in the translation.

Suggerimento

This check includes language specific rules to avoid false positives. In case it triggers falsely in your case, let us know. See Reporting issues in Weblate.

Non segue il glossario

Added in version 4.5.

Riepilogo:

La traduzione non segue i termini definiti in un glossario.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.glossary.GlossaryCheck

Controlla l’identificatore:

check_glossary

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

check-glossary

Flag to ignore:

ignore-check-glossary

This check has to be turned on using check-glossary flag (see Customizing behavior using flags). Please consider following prior to enabling it:

  • It does exact string matching, the glossary is expected to contain terms in all variants.

  • Checking each string against glossary is expensive, it will slow down any operation in Weblate which involves running checks like importing strings or translating.

  • It also utilizes untranslatable glossary terms in Traduzione invariata.

Doppio spazio

Riepilogo:

La traduzione contiene un doppio spazio.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.DoubleSpaceCheck

Controlla l’identificatore:

double_space

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-double-space

Checks that double space is present in translation to avoid false positives on other space-related checks.

Check is false when double space is found in source meaning double space is intentional.

Parti Fluent

Added in version 5.0.

Riepilogo:

Le parti Fluent devono corrispondere.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.fluent.parts.FluentPartsCheck

Controlla l’identificatore:

fluent-parts

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-parts

Flag to ignore:

ignore-fluent-parts

Each Fluent Message can have an optional value (the main text content), and optional attributes, each of which is a «part» of the Message. In Weblate, all these parts appear within the same block, using Fluent-like syntax to specify the attributes. For example:

This is the Message value
.title = This is the title attribute
.alt = This is the alt attribute

This check ensures that the translated Message also has a value if the source Message has one, or no value if the source has none. This also checks that the same attributes used in the source Message also appear in the translation, with no additions.

Nota

This check is not applied to Fluent Terms since Terms always have a value, and Term attributes tend to be locale-specific (used for grammar rules, etc.), and are not expected to appear in all translations.

Vedi anche

Fluent Attributes

Riferimenti Fluent

Added in version 5.0.

Riepilogo:

I riferimenti Fluent devono corrispondere.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.fluent.references.FluentReferencesCheck

Controlla l’identificatore:

fluent-references

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-references

Flag to ignore:

ignore-fluent-references

A Fluent Message or Term can reference another Message, Term, Attribute, or a variable. For example:

Here is a { message }, a { message.attribute } a { -term } and a { $variable }.
Within a function { NUMBER($num, minimumFractionDigits: 2) }

Generally, translated Messages or Terms are expected to contain the same references as the source, although not necessarily in the same order of appearance. So this check ensures that translations use the same references in their value as the source value, the same number of times, and with no additions. For Messages, this will also check that each Attribute in the translation uses the same references as the matching Attribute in the source.

When the source or translation contains Fluent Select Expressions, then each possible variant in the source must be matched with at least one variant in the translation with the same references, and vice versa.

Moreover, if a variable reference appears both in the Select Expression’s selector and within one of its variants, then all variants may also be considered as if they also contain that reference. The assumption being that the variant’s key may have made the reference redundant for that variant. For example:

{ $num ->
    [one] an apple
   *[other] { $num } apples
}

Here, for the purposes of this check, the [one] variant will also be considered to contain the $num reference.

However, a reference within the Select Expression’s selector, which can only be a variable of a Term Attribute in Fluent’s syntax, will not by itself count as a required reference because they do not form the actual text content of the string that the end-user will see, and the presence of a Select Expression is considered locale-specific. For example:

{ -term.starts-with-vowel ->
    [yes] an { -term }
   *[no] a { -term }
}

Here a reference to -term.starts-with-vowel is not expected to appear in translations, but a reference to -term is.

Traduzione Fluent HTML interno

Added in version 5.0.

Riepilogo:

Il target Fluent dovrebbe essere un codice HTML interno valido che corrisponda.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.fluent.inner_html.FluentTargetInnerHTMLCheck

Controlla l’identificatore:

fluent-target-inner-html

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-target-inner-html

Flag to ignore:

ignore-fluent-target-inner-html

This check will verify that the translated value of a Message or Term contains the same HTML elements as the source value.

First, if the source value fails the HTML interno sorgente Fluent check, then this check will do nothing. Otherwise, the translated value will also be checked under the same conditions.

Second, the HTML elements found in the translated value will be compared against the HTML elements found in the source value. Two elements will match if they share the exact same tag name, the exact same attributes and values, and all their ancestors match in the same way. This check will ensure that all the elements in the source appear somewhere in the translation, with the same number of appearances, and with no additional elements added. When there are multiple elements in the value, they need not appear in the same order in the translation value.

When the source or translation contains Fluent Select Expressions, then each possible variant in the source must be matched with at least one variant in the translation with the same HTML elements, and vice versa.

When using Fluent in combination with the Fluent DOM package, this check will ensure that the translation also includes any required data-l10n-name elements that appear in the source, or any of the allowed inline elements like <br>.

For example, the following source:

Source message <img data-l10n-name="icon"/> with icon

would match with:

Translated message <img data-l10n-name="icon"/> with icon

but not:

Translated message <img data-l10n-name="new-val"/> with icon

Translated message <br data-l10n-name="icon"/> with no icon

Sintassi Fluent traduzione

Added in version 5.0.

Riepilogo:

Errore di sintassi Fluent nella traduzione.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.fluent.syntax.FluentTargetSyntaxCheck

Controlla l’identificatore:

fluent-target-syntax

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-target-syntax

Flag to ignore:

ignore-fluent-target-syntax

In Weblate, Fluent strings use Fluent syntax for references and variables, but also for more complex features like defining attributes and selector variants, including plurals. This check ensures that the syntax used in the translation will be valid for Fluent.

Formatted strings

Checks that the formatting in strings is replicated between both source and translation. Omitting format strings in translation usually causes severe problems, so the formatting in strings should usually match the source.

Weblate supports checking format strings in several languages. The check is not enabled automatically, only if a string is flagged appropriately (e.g. c-format for C format). Gettext adds this automatically, but you will probably have to add it manually for other file formats or if your PO files are not generated by xgettext.

Most of the format checks allow omitting format strings for plural forms having a single count. This allows translators to write nicer strings for these cases (One apple instead of %d apple). Turn this off by adding strict-format flag.

The flags can be customized per string (see Additional info on source strings) or in a Component configuration. Having it defined per component is simpler, but it can lead to false positives in case the string is not interpreted as a formatting string, but format string syntax happens to be used.

Suggerimento

In case specific format check is not available in Weblate, you can use generic Segnaposti.

Besides checking, this will also highlight the formatting strings to easily insert them into translated strings:

../_images/format-highlight.webp

Stringa interpolazione AngularJS

Riepilogo:

Le stringhe interpolazione AngularJS non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.angularjs.AngularJSInterpolationCheck

Controlla l’identificatore:

angularjs_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

angularjs-format

Flag to ignore:

ignore-angularjs-format

Esempio di stringa di formato nominale:

Your balance is {{amount}} {{ currency }}

Formattazione dei componenti Automattic

Riepilogo:

I segnaposti percentuale non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.AutomatticComponentsCheck

Controlla l’identificatore:

automattic_components_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

automattic-components-format

Flag to ignore:

ignore-automattic-components-format

Esempio di stringa di formato semplice:

They bought {{strong}}apples{{/strong}}.

Formato C

Riepilogo:

La stringa in formato C non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.CFormatCheck

Controlla l’identificatore:

c_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

c-format

Flag to ignore:

ignore-c-format

Esempio di stringa di formato semplice:

There are %d apples

Esempio di stringa di formato posizionale:

Your balance is %1$d %2$s

Formato C#

Riepilogo:

La stringa in formato C# non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.CSharpFormatCheck

Controlla l’identificatore:

c_sharp_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File ResourceDictionary

Flag to enable:

c-sharp-format, csharp-format

Flag to ignore:

ignore-c-sharp-format

Esempio di stringa di formato posizionale:

There are {0} apples

Letterali modello ECMAScript

Riepilogo:

I valori letterali del modello ECMAScript non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.ESTemplateLiteralsCheck

Controlla l’identificatore:

es_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

draggable/i18n lang files

Flag to enable:

es-format

Flag to ignore:

ignore-es-format

Interpolation example:

There are ${number} apples

Interpolazione i18next

Added in version 4.0.

Riepilogo:

L’interpolazione i18next non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.I18NextInterpolationCheck

Controlla l’identificatore:

i18next_interpolation

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File JSON i18next, File JSON i18next

Flag to enable:

i18next-interpolation

Flag to ignore:

ignore-i18next-interpolation

Interpolation example:

There are {{number}} apples

Esempio di nidificazione:

There are $t(number) apples

ICU MessageFormat

Added in version 4.9.

Riepilogo:

Errori di sintassi e/o mancata corrispondenza segnaposto nelle stringhe ICU MessageFormat.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.icu.ICUMessageFormatCheck

Controlla l’identificatore:

icu_message_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File ARB, File Format.JS JSON

Flag to enable:

icu-message-format

Flag to ignore:

ignore-icu-message-format

Interpolation example:

There {number, plural, one {is one apple} other {are # apples}}.

This check has support for both pure ICU MessageFormat messages as well as ICU with simple XML tags. You can configure the behavior of this check by using icu-flags:*, either by opting into XML support or by disabling certain sub-checks. For example, the following flag enables XML support while disabling validation of plural sub-messages:

icu-message-format, icu-flags:xml:-plural_selectors

xml

Enable support for simple XML tags. By default, XML tags are parsed loosely. Stray < characters are ignored if they are not reasonably part of a tag.

strict-xml

Enable support for strict XML tags. All < characters must be escaped if they are not part of a tag.

-highlight

Disattiva l’evidenziazione dei segnaposto nell’editor.

-require_other

Disable requiring sub-messages to have an other selector.

-submessage_selectors

Skip checking that sub-message selectors match the source.

-types

Evita di verificare che i tipi di segnaposto corrispondano all’origine.

-extra

Skip checking that no placeholders are present that were not present in the source string.

-missing

Skip checking that no placeholders are missing that were present in the source string.

Additionally, when strict-xml is not enabled but xml is enabled, you can use the icu-tag-prefix:PREFIX flag to require that all XML tags start with a specific string. For example, the following flag will only allow XML tags to be matched if they start with <x::

icu-message-format, icu-flags:xml, icu-tag-prefix:"x:"

This would match <x:link>click here</x:link> but not <strong>this</strong>.

Formato Java

Riepilogo:

La stringa in formato Java non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.JavaFormatCheck

Controlla l’identificatore:

java_printf_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Risorse stringa Android, Risorse mobili Kotlin, Compose Multiplatform resources

Flag to enable:

java-printf-format

Flag to ignore:

ignore-java-printf-format

Esempio di stringa di formato semplice:

There are %d apples

Esempio di stringa di formato posizionale:

Your balance is %1$d %2$s

Cambiato nella versione 4.14: This used to be toggled by the java-format flag, it was changed for consistency with GNU gettext.

Formato messaggio Java

Riepilogo:

La stringa formato messaggio Java non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.JavaMessageFormatCheck

Controlla l’identificatore:

java_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Proprietà Java, Proprietà GWT

Flag to enable:

auto-java-messageformat, java-format

Automatic flag behavior:

auto-java-messageformat: Treat a text as conditional Java MessageFormat, enabling Formato messaggio Java only when the source contains Java MessageFormat placeholders.

Flag to ignore:

ignore-java-format

Esempio di stringa di formato posizionale:

There are {0} apples

Cambiato nella versione 4.14: This used to be toggled by java-messageformat flag, it was changed for consistency with GNU gettext.

This check validates that format string is valid for the Java MessageFormat class. Besides matching format strings in the curly braces, it also verifies single quotes as they have a special meaning. Whenever writing single quote, it should be written as ''. When not paired, it is treated as beginning of quoting and will not be shown when rendering the string.

Formato JavaScript

Riepilogo:

La stringa in formato JavaScript non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.JavaScriptFormatCheck

Controlla l’identificatore:

javascript_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

javascript-format

Flag to ignore:

ignore-javascript-format

Esempio di stringa di formato semplice:

There are %d apples

Formato Laravel

Riepilogo:

La stringa di formato Laravel non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.LaravelFormatCheck

Controlla l’identificatore:

laravel_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Stringhe PHP Laravel

Flag to enable:

laravel-format

Flag to ignore:

ignore-laravel-format

Esempio di stringa di formato nominale:

The :attribute must be :value

Formato Lua

Riepilogo:

La stringa Lua non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.LuaFormatCheck

Controlla l’identificatore:

lua_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

lua-format

Flag to ignore:

ignore-lua-format

Esempio di stringa di formato semplice:

There are %d apples

Formato Object Pascal

Riepilogo:

La stringa in formato Object Pascal non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.ObjectPascalFormatCheck

Controlla l’identificatore:

object_pascal_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

object-pascal-format

Flag to ignore:

ignore-object-pascal-format

Esempio di stringa di formato semplice:

There are %d apples

Objective-C format

Added in version 5.17.

Riepilogo:

Objective-C format string does not match source.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.ObjCFormatCheck

Controlla l’identificatore:

objc_format

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Stringhe Apple iOS, Formato Stringsdict

Flag to enable:

objc-format

Flag to ignore:

ignore-objc-format

Segnaposti percentuale

Added in version 4.0.

Riepilogo:

I segnaposti percentuale non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PercentPlaceholdersCheck

Controlla l’identificatore:

percent_placeholders

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

percent-placeholders

Flag to ignore:

ignore-percent-placeholders

Esempio di stringa di formato semplice:

There are %number% apples

Vedi anche

Formatted strings

Formato parentesi graffa Perl

Riepilogo:

La stringa in formato parentesi graffa Perl non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PerlBraceFormatCheck

Controlla l’identificatore:

perl_brace_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

perl-brace-format

Flag to ignore:

ignore-perl-brace-format

Esempio di stringa di formato nominale:

There are {number} apples

Formato Perl

Riepilogo:

La stringa in formato Perl non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PerlFormatCheck

Controlla l’identificatore:

perl_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

perl-format

Flag to ignore:

ignore-perl-format

Esempio di stringa di formato semplice:

There are %d apples

Esempio di stringa di formato posizionale:

Your balance is %1$d %2$s

Formato PHP

Riepilogo:

La stringa in formato PHP non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PHPFormatCheck

Controlla l’identificatore:

php_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

php-format

Flag to ignore:

ignore-php-format

Esempio di stringa di formato semplice:

There are %d apples

Esempio di stringa di formato posizionale:

Your balance is %1$d %2$s

Formato parentesi graffa Python

Riepilogo:

La stringa in formato Phython brace non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PythonBraceFormatCheck

Controlla l’identificatore:

python_brace_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

python-brace-format

Flag to ignore:

ignore-python-brace-format

Simple format string:

There are {} apples

Esempio di stringa di formato nominale:

Your balance is {amount} {currency}

Formato Python

Riepilogo:

La stringa in formato Phython non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.PythonFormatCheck

Controlla l’identificatore:

python_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

python-format

Flag to ignore:

ignore-python-format

Simple format string:

There are %d apples

Esempio di stringa di formato nominale:

Your balance is %(amount)d %(currency)s

Formato Qt

Riepilogo:

La stringa in formato Qt non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.qt.QtFormatCheck

Controlla l’identificatore:

qt_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

qt-format

Flag to ignore:

ignore-qt-format

Esempio di stringa di formato posizionale:

There are %1 apples

Formato Qt plurale

Riepilogo:

La stringa in formato Qt plurale non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.qt.QtPluralCheck

Controlla l’identificatore:

qt_plural_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

qt-plural-format

Flag to ignore:

ignore-qt-plural-format

Esempio di stringa di formato plurale:

There are %Ln apple(s)

Formato Ruby

Riepilogo:

La stringa in formato Ruby non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.ruby.RubyFormatCheck

Controlla l’identificatore:

ruby_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

ruby-format

Flag to ignore:

ignore-ruby-format

Esempio di stringa di formato semplice:

There are %d apples

Esempio di stringa di formato posizionale:

Your balance is %1$f %2$s

Esempio di stringa di formato nominale:

Your balance is %+.2<amount>f %<currency>s

Named template string:

Your balance is %{amount} %{currency}

Formato Scheme

Riepilogo:

La stringa in formato Scheme non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.SchemeFormatCheck

Controlla l’identificatore:

scheme_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

scheme-format

Flag to ignore:

ignore-scheme-format

Esempio di stringa di formato semplice:

There are ~d apples

Formattazione Vue I18n

Riepilogo:

La formattazione Vue I18n non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.format.VueFormattingCheck

Controlla l’identificatore:

vue_format

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

vue-format

Flag to ignore:

ignore-vue-format

Formattazione denominata:

There are {count} apples

Formattazione Rails i18n:

There are %{count} apples

Messaggi locali collegati:

@:message.dio @:message.the_world!

È stata tradotta

Riepilogo:

Questa stringa è stata tradotta in passato.

Scopo:

tutte le stringhe

Controlla la classe:

weblate.checks.consistency.TranslatedCheck

Controlla l’identificatore:

translated

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-translated

Means a string has been translated already. This can happen when the translations have been reverted in VCS or lost otherwise.

Incoerente

Riepilogo:

Questa stringa ha più di una traduzione in questo progetto o non è traducibile in alcuni componenti..

Scopo:

tutte le stringhe

Controlla la classe:

weblate.checks.consistency.ConsistencyCheck

Controlla l’identificatore:

inconsistent

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-inconsistent

Weblate checks translations of the same string across all translation within a project to help you keep consistent translations.

The check fails on differing translations of one string within a project. This can also lead to inconsistencies in displayed checks. You can find other translations of this string on the Other occurrences tab.

This check applies to all components in a project that have Permetti propagazione traduzione turned on.

Suggerimento

For performance reasons, the check might not find all inconsistencies, it limits number of matches.

Nota

This check also fires in case the string is translated in one component and not in another. It can be used as a quick way to manually handle strings which are untranslated in some components just by clicking on the Use this translation button displayed on each line in the Other occurrences tab.

You can use Traduzione automatica add-on to automate translating of newly added strings which are already translated in another component.

reStructuredText incoerente

Added in version 5.10.

Riepilogo:

Markup reStructuredText incoerente nel messaggio tradotto.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.RSTReferencesCheck

Controlla l’identificatore:

rst-references

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

rst-text

Flag to ignore:

ignore-rst-references

I riferimenti ai termini reStructuredText o altri markup non corrispondono all’origine, le cause tipiche di questi errori sono:

  • Apici inversi non corrispondenti o mancanti.

  • Missing spaces or interpunction around the reference. The reStructuredText inline blocks need to be separated by non-word characters.

  • Space between inline tag and backticks.

  • Il nome di riferimento non viene tradotto.

  • Using quotes instead of backticks.

  • Mismatched substitutions or footnote references.

Usato lettera Kashida

Riepilogo:

Non dovrebbero essere usate le lettere decorative kashida.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.KashidaCheck

Controlla l’identificatore:

kashida

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-kashida

The decorative Kashida letters should not be used in translation. These are also known as Tatweel.

Riferimenti markdown

Riepilogo:

I riferimenti ai collegamenti markdown non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.MarkdownRefLinkCheck

Controlla l’identificatore:

md-reflink

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File Markdown, MDX files

Flag to enable:

md-text

Flag to ignore:

ignore-md-reflink

I riferimenti ai collegamenti markdown non corrispondono al sorgente.

Vedi anche

Markdown links

Sintassi markdown

Riepilogo:

La sintassi markdown non corrisponde al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.MarkdownSyntaxCheck

Controlla l’identificatore:

md-syntax

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File Markdown, MDX files

Flag to enable:

md-text

Flag to ignore:

ignore-md-syntax

La sintassi markdown non corrisponde al sorgente

Vedi anche

Markdown inlines

Lunghezza massima della traduzione

Riepilogo:

La traduzione non deve eccedere la lunghezza indicata.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.MaxLengthCheck

Controlla l’identificatore:

max-length

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

max-length

Flag to ignore:

ignore-max-length

Checks that translations are of acceptable length to fit available space. This only checks for the length of translation characters.

Unlike the other checks, the flag should be set as a key:value pair like max-length:100.

The max-length flag also triggers Lunghezza stringa sorgente for source strings. For English source strings, including English variants, this check warns when the source uses more than 85% of the configured length to leave room for translation expansion. For other source languages, the configured max-length is used directly.

Suggerimento

This check looks at number of chars, what might not be the best metric when using proportional fonts to render the text. The Dimensione massima della traduzione check does check actual rendering of the text.

The replacements: flag might be also useful to expand placeables before checking the string.

When xml-text flag is also used, the length calculation ignores XML tags.

Maximum number of lines

Riepilogo:

Translation should not exceed given number of lines.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.MaxLinesCheck

Controlla l’identificatore:

max-lines

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

max-lines

Flag to ignore:

ignore-max-lines

Checks that translations do not exceed the configured maximum number of lines. This is useful for translations targeting fixed-height UI elements such as displays, terminals, or constrained containers where a specific number of visible lines is required.

Unlike the other checks, the flag should be set as a key:value pair like max-lines:3.

A translation with more lines than the configured value triggers a warning. Lines are counted by the number of newline characters plus one.

Suggerimento

This check counts display lines (separated by \\n), not wrapped lines. If your UI wraps text automatically, use Dimensione massima della traduzione instead.

Dimensione massima della traduzione

Riepilogo:

Rendered text should not exceed given size.

Scopo:

source and translated strings

Controlla la classe:

weblate.checks.render.MaxSizeCheck

Controlla l’identificatore:

max-size

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

max-size

Flag to ignore:

ignore-max-size

Rendered source or translation text should not exceed given size. It renders the text and checks if it fits into given boundaries. Word wrapping is applied when more than one line is configured.

This check needs one or two parameters - maximal width and maximal number of lines. In case the number of lines is not provided, one line text is considered.

You can also configure used font by font-* directives (see Customizing behavior using flags), for example following translation flags say that the text rendered with ubuntu font size 22 should fit into two lines and 500 pixels:

max-size:500:2, font-family:ubuntu, font-size:22

Suggerimento

You might want to set font-* directives in Component configuration to have the same font configured for all strings within a component. You can override those values per string in case you need to customize it per string.

The replacements: flag might be also useful to expand placeables before checking the string.

When xml-text flag is also used, the length calculation ignores XML tags.

\n non corrispondente

Riepilogo:

Il numero di \n valori letterali nella traduzione non corrisponde all’origine.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EscapedNewlineCountingCheck

Controlla l’identificatore:

escaped_newline

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-escaped-newline

Usually escaped newlines are important for formatting program output. Check fails if the number of \n literals in translation does not match the source.

Due punti non corrispondenti

Riepilogo:

Sorgente e traduzione non terminano entrambe con i due punti.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndColonCheck

Controlla l’identificatore:

end_colon

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-colon

Checks that colons are replicated between both source and translation. The presence of colons is also checked for various languages where they do not belong (Chinese or Japanese).

Vedi anche

Colon on Wikipedia

Puntini di sospensione non corrispondenti

Riepilogo:

Sorgente e traduzione non finiscono entrambe con i puntini di sospensione.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndEllipsisCheck

Controlla l’identificatore:

end_ellipsis

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-ellipsis

Checks that trailing ellipses are replicated between both source and translation. This only checks for real ellipsis () not for three dots (...).

An ellipsis is usually rendered nicer than three dots in print, and sounds better with text-to-speech.

Punto esclamativo non corrispondente

Riepilogo:

Sorgente e traduzione non terminano entrambe con un punto esclamativo.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndExclamationCheck

Controlla l’identificatore:

end_exclamation

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-exclamation

Checks that exclamations are replicated between both source and translation. The presence of exclamation marks is also checked for various languages where they do not belong (Chinese, Japanese, Korean, Armenian, Limbu, Myanmar or Nko).

Punto a capo non corrispondente

Riepilogo:

Sorgente e traduzione non terminano entrambe con un punto.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndStopCheck

Controlla l’identificatore:

end_stop

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-stop

Checks that full stops are replicated between both source and translation. The presence of full stops is checked for various languages where they do not belong (Chinese, Japanese, Devanagari or Urdu).

Interrobang non corrispondente

Riepilogo:

Sorgente e traduzione non finiscono entrambe con un’espressione interrobang.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndInterrobangCheck

Controlla l’identificatore:

end_interrobang

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-interrobang

Checks that interrobang marks are replicated between both source and translation. It allows the swap between «!?» and «?!».

Punto interrogativo non corrispondente

Riepilogo:

Sorgente e traduzione non terminano entrambe con un punto interrogativo.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndQuestionCheck

Controlla l’identificatore:

end_question

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-question

Checks that question marks are replicated between both source and translation. The presence of question marks is also checked for various languages where they do not belong (Armenian, Arabic, Chinese, Korean, Japanese, Ethiopic, Vai or Coptic).

Punto e virgola non corrispondente

Riepilogo:

Sorgente e traduzione non finiscono entrambe con punto e virgola.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndSemicolonCheck

Controlla l’identificatore:

end_semicolon

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-semicolon

Checks that semicolons at the end of sentences are replicated between both source and translation.

Mancata corrispondenza ritorni a capo

Riepilogo:

Il numero di linee nella traduzione non corrisponde a quelle nel sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.NewLineCountCheck

Controlla l’identificatore:

newline-count

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-newline-count

Usually newlines are important for formatting program output. Check fails if the number of new lines in translation does not match the source.

Plurali mancanti

Riepilogo:

Alcune forme plurali non sono state tradotte.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.consistency.PluralsCheck

Controlla l’identificatore:

plurals

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-plurals

Checks that all plural forms of a source string have been translated. Specifics on how each plural form is used can be found in the string definition.

Failing to fill in plural forms will in some cases lead to displaying nothing when the plural form is in use.

La stringa contiene più lettere maiuscole

Added in version 5.16.

Riepilogo:

La traduzione contiene parole con più lettere maiuscole fuori posto.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.MultipleCapitalCheck

Controlla l’identificatore:

multiple_capital

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-multiple-capital

Checks for misplaced capitalization by detecting words that contain consecutive uppercase letters in otherwise lowercase or normally capitalized text (for example, HEllo or CAmelCase). Strings that contain capitalization in the source string are allowed to contain capitalization in the translation.

Caratteri non standard in cabilo

Added in version 5.12.

Riepilogo:

Usa caratteri latini cabilo standardizzati (ad esempio ɣ invece del greco γ; ɛ invece di ε).

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.KabyleCharactersCheck

Controlla l’identificatore:

kabyle-characters

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-kabyle-characters

Checks that Kabyle translations use correct Kabyle letters and not similar Greek ones, which were often used before Kabyle characters were standardized in Unicode.

Segnaposti

Cambiato nella versione 4.3: Come segnaposto puoi usare un’espressione regolare.

Cambiato nella versione 4.13: With the case-insensitive flag, the placeholders are not case-sensitive.

Riepilogo:

Nella traduzione mancano alcuni segnaposto.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.placeholders.PlaceholderCheck

Controlla l’identificatore:

placeholders

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

placeholders

Flag to ignore:

ignore-placeholders

Translation is missing some placeholders. These are either extracted from the translation file or defined manually using placeholders flag, more can be separated with colon, strings with space can be quoted:

placeholders:$URL$:$TARGET$:"some long text"

In case you have some syntax for placeholders, you can use a regular expression:

placeholders:r"%[^% ]%"

You can also have case insensitive placeholders:

placeholders:$URL$:$TARGET$,case-insensitive

Carattere iniziale proibito

Added in version 5.9.

Riepilogo:

La stringa inizia con un carattere proibito in CSV.

Scopo:

stringhe del glossario

Controlla la classe:

weblate.checks.glossary.ProhibitedInitialCharacterCheck

Controlla l’identificatore:

prohibited_initial_character

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-prohibited-initial-character

The glossary is often shared as CSV and using some characters at the beginning is restricted by many applications as these can cause the text being evaluated as an expression. This also affects Glossari nel suggerimento automatico where many services use CSV for synchronizing glossaries and reject such strings.

Spaziatura punteggiatura

Cambiato nella versione 5.10: This check used to apply to Breton language as well, but it was limited to French only.

Riepilogo:

Spazio non interrompibile mancante prima del doppio segno di punteggiatura.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.PunctuationSpacingCheck

Controlla l’identificatore:

punctuation_spacing

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-punctuation-spacing

Checks that there is non breakable space before double punctuation sign (exclamation mark, question mark, semicolon and colon). This rule is used only in a few selected languages like French, where space before double punctuation sign is a typographic rule.

Espressione regolare

Cambiato nella versione 5.10: Extended support for advanced regular expressions including Unicode codepoint properties.

Riepilogo:

La traduzione non corrisponde all’espressione regolare.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.placeholders.RegexCheck

Controlla l’identificatore:

regex

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

regex

Flag to ignore:

ignore-regex

Translation does not match regular expression. The expression is either extracted from the translation file or defined manually using regex flag:

regex:^foo|bar$

The matching also supports Unicode codepoint properties, including scripts and blocks:

regex:^[-_\p{L}\p{N}\p{sc=Deva}\p{sc=Thai}]{1,32}$

Suggerimento

Use Segnaposti for detecting missing placeholders in the string.

Vedi anche

regex documentation

Errore di sintassi reStructuredText

Added in version 5.10.

Riepilogo:

Errore di sintassi reStructuredText nella traduzione.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.RSTSyntaxCheck

Controlla l’identificatore:

rst-syntax

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

rst-text

Flag to ignore:

ignore-rst-syntax

Errore di sintassi di reStructuredText nella traduzione. Problemi da ricercare:

  • Tag di chiusura/apertura non corrispondenti.

  • Missing spaces or interpunction around the reference. The reStructuredText inline blocks need to be separated by non-word characters.

  • Using quotes instead of backticks.

Traduzione riusata

Added in version 4.18.

Riepilogo:

Stringhe diverse vengono tradotte allo stesso modo.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.consistency.ReusedCheck

Controlla l’identificatore:

reused

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-reused

Check that fails if the same translation is used on different source strings. Such translations can be intentional, but can also confuse users.

Safe MDX

Added in version 2026.7.

Riepilogo:

JSX expressions in the translation do not match the source.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.mdx.SafeMDXCheck

Controlla l’identificatore:

safe-mdx

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

MDX files

Flag to enable:

safe-mdx

Flag to ignore:

ignore-safe-mdx

Uguale singolare/plurale

Riepilogo:

Alcune forme plurali sono state tradotte nello stesso modo del singolare.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.consistency.SamePluralsCheck

Controlla l’identificatore:

same-plurals

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-same-plurals

Check that fails if some plural forms are duplicated in the translation. In most languages they have to be different.

Nuova riga iniziale

Riepilogo:

Sorgente e traduzione non iniziano entrambe con una riga vuota.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.BeginNewlineCheck

Controlla l’identificatore:

begin_newline

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-begin-newline

Newlines usually appear in source strings for good reason, omissions or additions can lead to formatting problems when the translated text is put to use.

Vedi anche

Righe vuote

Spazi iniziali

Riepilogo:

Sorgente e traduzione non iniziano entrambe con lo stesso numero di spazi.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.BeginSpaceCheck

Controlla l’identificatore:

begin_space

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-begin-space

A space in the beginning of a string is usually used for indentation in the interface and thus important to keep.

Righe vuote

Riepilogo:

Sorgente e traduzione non finiscono entrambe con una riga vuota.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndNewlineCheck

Controlla l’identificatore:

end_newline

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-newline

Newlines usually appear in source strings for good reason, omissions or additions can lead to formatting problems when the translated text is put to use.

Vedi anche

Nuova riga iniziale

Spazio finale

Riepilogo:

Sorgente e traduzione non finiscono entrambe con uno spazio.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.EndSpaceCheck

Controlla l’identificatore:

end_space

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-end-space

Checks that trailing spaces are replicated between both source and translation.

Trailing space is usually utilized to space out neighbouring elements, so removing it might break layout.

Traduzione invariata

Riepilogo:

Sorgente e traduzione sono identiche.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.same.SameCheck

Controlla l’identificatore:

same

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-same

Happens if the source and corresponding translation strings are identical, down to at least one of the plural forms. Some strings commonly found across all languages are ignored, and various markups are stripped. This reduces the number of false positives.

This check can help find strings mistakenly untranslated.

The default behavior of this check is to exclude words from the built-in terms list from the checking. These are words which are frequently not being translated. This is useful to avoid false positives on short strings, which consist only of a single word which is the same in several languages. This list can be disabled by adding strict-same flag to a string or component.

Cambiato nella versione 4.17: With check-glossary flag (see Non segue il glossario), the untranslatable glossary terms are excluded from the checking.

HTML non sicuro

Riepilogo:

La traduzione usa una marcatore HTML non sicuro.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.SafeHTMLCheck

Controlla l’identificatore:

safe-html

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File HTML, File Markdown, MDX files, File AsciiDoc

Flag to enable:

auto-safe-html, safe-html

Automatic flag behavior:

auto-safe-html: Treat a text as conditional HTML, enabling HTML non sicuro only for plain text or source strings that contain standard HTML markup or valid custom elements. This is useful for extended Markdown variants such as MDX, where angle-bracket syntax may not be HTML.

Flag to ignore:

ignore-safe-html

The translation uses unsafe HTML markup. This check has to be enabled using safe-html flag (see Customizing behavior using flags). There is also accompanied autofixer which can automatically sanitize the markup.

Suggerimento

When md-text flag is also used, the Markdown style links are also allowed.

Vedi anche

The HTML check is performed by the Ammonia library.

URL

Riepilogo:

The translation does not contain a URL.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.URLCheck

Controlla l’identificatore:

url

Grilletto:

This check needs to be enabled using a flag.

Flag to enable:

url

Flag to ignore:

ignore-url

The translation does not contain a URL. This is triggered only in case the unit is marked as containing URL. In that case the translation has to be a valid URL.

Markup XML

Riepilogo:

I tag XML nella traduzione non corrispondono al sorgente.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.XMLTagsCheck

Controlla l’identificatore:

xml-tags

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-xml-tags

This usually means the resulting output will look different. In most cases this is not a desired result from changing the translation, but occasionally it is.

Checks that XML tags are replicated between both source and translation.

The check is automatically enabled for XML like strings. You might need to add xml-text flag in some cases to force turning it on.

Nota

This check is disabled by the safe-html flag as the HTML cleanup done by it can produce HTML markup which is not valid XML.

Sintassi XML

Riepilogo:

Traduzione con errori nel codice XML.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.markup.XMLValidityCheck

Controlla l’identificatore:

xml-invalid

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-xml-invalid

The XML markup is not valid.

The check is automatically enabled for XML like strings. You might need to add xml-text flag in some cases to force turning it on.

Nota

This check is disabled by the safe-html flag as the HTML cleanup done by it can produce HTML markup which is not valid XML.

Spazi larghezza zero

Riepilogo:

La traduzione contiene caratteri spazio a larghezza zero aggiuntivi.

Scopo:

stringhe tradotte

Controlla la classe:

weblate.checks.chars.ZeroWidthSpaceCheck

Controlla l’identificatore:

zero-width-space

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-zero-width-space

Zero-width space (<U+200B>) characters are used to break messages within words (word wrapping).

As they are usually inserted by mistake, this check is triggered once they are present in translation. Some programs might have problems when this character is used.

Source checks

Source checks can help developers improve the quality of source strings.

Puntini di sospensione

Riepilogo:

La stringa utilizza tre punti (...) anziché i puntini di sospensione (...).

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.source.EllipsisCheck

Controlla l’identificatore:

ellipsis

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-ellipsis

This fails when the string uses three dots (...) when it should use an ellipsis character ().

Using the Unicode character is in most cases the better approach and looks better rendered, and may sound better with text-to-speech.

HTML interno sorgente Fluent

Added in version 5.0.

Riepilogo:

La sorgente Fluent dovrebbe essere un HTML interno valido.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.fluent.inner_html.FluentSourceInnerHTMLCheck

Controlla l’identificatore:

fluent-source-inner-html

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-source-inner-html

Flag to ignore:

ignore-fluent-source-inner-html

Fluent is often used in contexts where the value for a Message (or Term) is meant to be used directly as .innerHTML (rather than .textContent) for some HTML element. For example, when using the Fluent DOM package.

The aim of this check is to predict how the value will be parsed as inner HTML, assuming an HTML5 conforming parser, to catch cases where there would be some «unintended» loss of the string, without being too strict about technical parsing errors that do not lead to a loss of the string.

This check is applied to the value of Fluent Messages or Terms, but not their Attributes. For Messages, the Fluent Attributes are often just HTML attribute values, so can be arbitrary strings. For Terms, the Fluent Attributes are often language properties that can only be referenced in the selectors of Fluent Select Expressions.

Generally, most Fluent values are not expected to contain any HTML markup. Therefore, this check does not expect or want translators and developers to have to care about strictly avoiding any technical HTML5 parsing errors (let alone XHTML parsing errors). Instead, this check will just want to warn them when they may have unintentionally opened an HTML tag or inserted a character reference.

Moreover, for the Fluent values that intentionally contain HTML tags or character references, this check will verify some «good practices», such as matching closing and ending tags, valid character references, and quoted attribute values. In addition, whilst the HTML5 specification technically allows for quite arbitrary tag and attribute names, this check will restrain them to some basic ASCII values that should cover the standard HTML5 element tags and attributes, as well as allow some custom element or attribute names. This is partially to ensure that the user is using HTML intentionally.

Esempi:

Esempi HTML interni fluenti

Value

Warns?

Reason

three<four

The <four part would be lost as .innerHTML.

three < four

no

The .innerHTML would match the .textContent.

three <four>

Manca un tag di chiusura.

three <four/>

four is not an HTML void element, so should not self-close.

<a-b>text</a-b>

no

Custom element tag with a matching closing tag.

a <img/> b

no

img is an HTML void element. Self-closing is allowed.

a <br> b

no

br is an HTML void element.

<img class=a/>

Il valore dell’attributo non è citato.

<aØ attr=''/>

Non-ASCII tag name.

kind&ethical

The &eth part would be converted to ð.

kind&eth;ical

no

The character reference seems to be intentional.

three&lte;four

The &lte; part would be converted to <e;.

three&lf;four

Il riferimento al carattere non è valido.

three<{ $val }

The Fluent variable may unintentionally become a tag.

&l{ $val }

The Fluent variable may unintentionally become a character reference.

Nota

This check will not ensure the inner HTML is safe or sanitized, and is not meant to protect against malicious attempts to alter the inner HTML. Moreover, it should be remembered that Fluent variables and references may expand to arbitrary strings, so could expand to arbitrary HTML unless they are escaped. As an exception, a < or & character before a Fluent reference will trigger this check since even an escaped value could lead to unexpected results.

Nota

The Fluent DOM package has further limitations, such as allowed tags and attributes, which this check will not enforce.

Sintassi Fluent sorgente

Added in version 5.0.

Riepilogo:

Errore di sintassi Fluent nel sorgente.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.fluent.syntax.FluentSourceSyntaxCheck

Controlla l’identificatore:

fluent-source-syntax

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

Formato fluente

Flag to enable:

fluent-source-syntax

Flag to ignore:

ignore-fluent-source-syntax

In Weblate, Fluent strings use Fluent syntax for references and variables, but also for more complex features like defining attributes and selector variants, including plurals. This check ensures that the syntax used in source will be valid for Fluent.

Sintassi ICU MessageFormat

Added in version 4.9.

Riepilogo:

Errori di sintassi nelle stringhe ICU MessageFormat.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.icu.ICUSourceCheck

Controlla l’identificatore:

icu_message_format_syntax

Grilletto:

This check needs to be enabled using a flag.

File formats automatically enabling this check:

File ARB, File Format.JS JSON

Flag to enable:

icu-message-format

Flag to ignore:

ignore-icu-message-format

Vedi anche

ICU MessageFormat

Non tradotta da molto tempo

Added in version 4.1.

Riepilogo:

La stringa non è stata tradotta da molto tempo.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.source.LongUntranslatedCheck

Controlla l’identificatore:

long_untranslated

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-long-untranslated

When the string has not been translated for a long time, it can indicate a problem in a source string making it hard to translate.

Stringhe con errori

Riepilogo:

La traduzione in diverse lingue contiene alcuni errori.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.source.MultipleFailingCheck

Controlla l’identificatore:

multiple_failures

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-multiple-failures

Numerous translations of this string have failing quality checks. This is usually an indication that something could be done to improve the source string.

This check failing can quite often be caused by a missing full stop at the end of a sentence, or similar minor issues which translators tend to fix in translation, while it would be better to fix it in the source string.

Variabili senza nome multiple

Added in version 4.1.

Riepilogo:

Nella stringa ci sono più variabili senza nome, rendendo impossibile per i traduttori riordinarle.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.format.MultipleUnnamedFormatsCheck

Controlla l’identificatore:

unnamed_format

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-unnamed-format

Nella stringa ci sono più variabili senza nome, rendendo impossibile per i traduttori riordinarle.

Consider using named variables instead to allow translators to reorder them.

Lunghezza stringa sorgente

Riepilogo:

Source string is close to or exceeds the configured maximum length for translations.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.source.SourceMaxLengthCheck

Controlla l’identificatore:

source-max-length

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-source-max-length

Translations often need more room than the source text, especially when the source language is English. This check helps maintainers find source strings that are already close to their configured max-length before translators have to shorten or omit meaning to fit the limit.

For English source strings, including English variants, the check reports strings using more than 85% of the configured max-length. For other source languages, it reports source strings longer than the configured max-length.

This catches source strings that are likely to make translations fail Lunghezza massima della traduzione, and source strings that already do not fit the declared limit.

Non al plurale

Riepilogo:

La stringa è usata come plurale, ma non usa forme plurali.

Scopo:

stringhe sorgente

Controlla la classe:

weblate.checks.source.OptionalPluralCheck

Controlla l’identificatore:

optional_plural

Grilletto:

This check is always enabled but can be ignored using a flag.

Flag to ignore:

ignore-optional-plural

The string is used as a plural, but does not use plural forms. In case your translation system supports this, you should use the plural aware variant of it.

For example with Gettext in Python it could be:

from gettext import ngettext

print(ngettext("Selected %d file", "Selected %d files", files) % files)

Posizionabili nel suggerimento automatico

Checks for placeables expose information on current placeables and this can be used to instruct automatic suggestion engines to keep them. The support for this varies in different services and in many cases there is no way to enforce keeping placeables intact.