Skip to content

Fixing spacing punctuation in XLIFF placeholder breaks Angular application #17224

@Chocobozzz

Description

@Chocobozzz

Describe the issue

Weblate auto fixes (French) punctuation in a XLIFF placeholder where equiv-text is Angular code. Fixing the punctuation inside Angular code breaks the application.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Go on https://weblate.framasoft.org/translate/peertube/angular/fr_FR/?checksum=2ba6bdfd1d022e0b
  2. See weblate tries to fix the string (<x id="INTERPOLATION" equiv-text="{{ dailyUserVideoQuota | bytes : 0 }}"/> par jour) into (<x id="INTERPOLATION" equiv-text="{{ dailyUserVideoQuota | bytes : 0 }}"/> par jour), which breaks the Angular application.

Expected behavior

Do not try to fix placeholders, or provide a way to ignore placeholders using a flag

Screenshots

No response

Exception traceback

How do you run Weblate?

Other

Weblate versions

Weblate 5.14.3

Weblate deploy checks

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions