weblate icon indicating copy to clipboard operation
weblate copied to clipboard

CSV version commit of translations is adding header info source, target

Open rofokken opened this issue 1 year ago • 3 comments

Describe the issue

When i read csv files from our project the csv files do not contain the header source, target. When i modify translations and commit them to our repository Weblate add's the header "source", "target" which is not the original state. I cannot disable this setting. I use file format "CSV File" which if i understand the documentation correctly should be headerless.

I already tried

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

Steps to reproduce the behavior

  1. Start a project and read i18 files from a remote repository
  2. I modify a translation
  3. I create a new commit and push it to the remote repo

Expected behavior

CSV translation is altered in original i18n CSV format

Screenshots

Screenshot - 2024-06-20T124727 684 Screenshot - 2024-06-20T125625 450

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

Weblate 4.18.2

Weblate deploy checks

No response

Additional context

No response

rofokken avatar Jun 20 '24 14:06 rofokken

CSV storage in the translate-toolkit (library Weblate uses for handling translation files) currently always includes the header even if it was not present in the original file.

nijel avatar Jun 24 '24 07:06 nijel

The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable).

github-actions[bot] avatar Jun 24 '24 07:06 github-actions[bot]

This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.

In case you need this feature soon, please consider helping or push it by funding the development.

github-actions[bot] avatar Jun 24 '24 07:06 github-actions[bot]