Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weblate commit undecod #7728

Closed
2 tasks done
danjor opened this issue Jun 1, 2022 · 1 comment
Closed
2 tasks done

Weblate commit undecod #7728

danjor opened this issue Jun 1, 2022 · 1 comment
Labels
duplicate Similar issue or pull request already exists. enhancement Adding or requesting a new feature.

Comments

@danjor
Copy link

danjor commented Jun 1, 2022

Describe the issue

Hello,

I'm using XLF files with a git repository.
Original XLF being imported into Weblate using Pull :

<trans-unit id="1976632937776863230" datatype="html">
        <source>The modification operation of this domain is not allowed. A syntax error occurred in the value of the &quot;Remote Service Provider Metadata&quot; attribute. </source>
        <target state="translated">L&apos;opération de modification de ce domaine n&apos;est pas autorisée. Une erreur de syntaxe s&apos;est produite dans la valeur de l&apos;attribut &quot;Metadata du fournisseur de service distant&quot;. </target>
        <note priority="1" from="description">Detailed error when saml meta data is not well formatted</note>
</trans-unit>

Then commit and push, and the file have been changed to :

<trans-unit id="1976632937776863230" datatype="html">
        <source>The modification operation of this domain is not allowed. A syntax error occurred in the value of the "Remote Service Provider Metadata" attribute.</source>
        <target state="translated">L'opération de modification de ce domaine n'est pas autorisée. Une erreur de syntaxe s'est produite dans la valeur de l'attribut "Metadata du fournisseur de service distant".</target>
        <note priority="1" from="description">Some info</note>
</trans-unit>

Before impoting :

  • double cote " were encoded with "
  • single cote ' were encoded with '

After exporting :

  • encoded double cote " were decoded with "
  • encoded single cote ' were decoded with '

Expected encoded characters so be kepts as is and stay encoded.
Expected not encoded characters so be kepts as is and stay not encoded.

I already tried

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

Steps to reproduce the behavior

  1. Go to '...'
  2. Scroll down to '...'
  3. Click on '...'
  4. See error

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

4.12.2

Weblate deploy checks

No response

Additional context

No response

@nijel nijel added enhancement Adding or requesting a new feature. duplicate Similar issue or pull request already exists. labels Jun 1, 2022
@nijel
Copy link
Member

nijel commented Jun 1, 2022

Duplicate of #7729

@nijel nijel marked this as a duplicate of #7729 Jun 1, 2022
@nijel nijel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Similar issue or pull request already exists. enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants