[nl-discuss] Critical error - Placeholders

Thanks Leo,

Adding an example (below):

While translating (into Dutch) in Pootle we encounter some critical
errors with Placeholders. Can anybody explain us how to solve these
errors as the translation seems ok to me? I do not see any way to solve
the error.

Example:
https://translations.documentfoundation.org/nl/libo61_ui/translate/#filter=checks&category=critical

Context: RID_STR_TRANSLATION_DEFAULT
Locations: basctl/inc/strings.hrc:87
Comments: xQyRD

Original [Default Language]
Translated [Standaardtaal]
Critical errors: Placeholders

Hi Cor and Leo

Tabbing on the icon of the error makes pootle ignore them.
The error is grayed out then.
That is how to resolve the error.
But it is strange that there are so many of them.

Greetings, Kees

Hi,

Context: RID_STR_TRANSLATION_DEFAULT
Locations: basctl/inc/strings.hrc:87
Comments: xQyRD

Original [Default Language]
Translated [Standaardtaal]
Critical errors: Placeholders

My guess is Pootle stumbles over the [] brackets which makes it think it
would be a placeholder, but in fact it is not.

  Eike

Hello,

yes, brackets in every form themselves are a rich source of false positives in Pootle.

Hello,

yes, brackets in every form themselves are a rich source of false positives in Pootle.

Hi,

IMHO, I think it is better to have some false positives than getting bad errors in the strings :slight_smile:

Hi,

Context: RID_STR_TRANSLATION_DEFAULT
Locations: basctl/inc/strings.hrc:87
Comments: xQyRD

Original         [Default Language]
Translated        [Standaardtaal]
Critical errors:    Placeholders

My guess is Pootle stumbles over the [] brackets which makes it think it
would be a placeholder, but in fact it is not.

Eike

Ciao

Hi *,

> Context: RID_STR_TRANSLATION_DEFAULT
> Locations: basctl/inc/strings.hrc:87
> Comments: xQyRD
>
> Original [Default Language]
> Translated [Standaardtaal]
> Critical errors: Placeholders

My guess is Pootle stumbles over the [] brackets which makes it think it
would be a placeholder, but in fact it is not.

FYI: the only place in LO where [ ] placeholders are used is in
windows installer strings, everywhere else it is not used as variable
and thus is false positive match in pootle.

ciao
Christian