WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.33k stars 970 forks source link

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

Open rofokken opened 1 week ago

rofokken commented 1 week ago

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

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

nijel commented 5 days ago

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.

github-actions[bot] commented 5 days ago

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] commented 5 days ago

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.