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

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

Open
2 tasks done
rofokken opened this issue Jun 20, 2024 · 3 comments
Open
2 tasks done
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit

Comments

@rofokken
Copy link

rofokken commented Jun 20, 2024

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

  • I've read and searched the documentation.
  • 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 rofokken changed the title CSV version commit of translations is adding header info source, translation CSV version commit of translations is adding header info source, target Jun 20, 2024
@nijel
Copy link
Member

nijel commented Jun 24, 2024

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 nijel added enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. labels Jun 24, 2024
Copy link

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).

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This is not on the Weblate roadmap for now. Can be prioritized by sponsorship. enhancement Adding or requesting a new feature. translate-toolkit Issues which need to be fixed in the translate-toolkit
Projects
None yet
Development

No branches or pull requests

2 participants