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

Context is ignored when uploading CSV file #10790

Closed
2 tasks done
dxdx123 opened this issue Jan 15, 2024 · 7 comments
Closed
2 tasks done

Context is ignored when uploading CSV file #10790

dxdx123 opened this issue Jan 15, 2024 · 7 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@dxdx123
Copy link

dxdx123 commented Jan 15, 2024

Describe the issue

Our project matches uniquely based on the ID, After uploading the translation file, the translation became disordered. where there might be multiple identical sources. When I upload the translation, Weblate matches it based on the source, and multiple modification records appear in the history, which is not what I expected. Do you have any good suggestions?

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

upload translate file

Expected behavior

No response

Screenshots

IMG_6809

IMG_6810
This translation has been updated twice, the last time was wrong, I hope it can be updated by key

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

5.0.2

Weblate deploy checks

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Jan 15, 2024

What file do you upload? Is it CSV file? Which columns does it have?

@dxdx123
Copy link
Author

dxdx123 commented Jan 16, 2024

it is a csv file。
IMG_6816

@nijel nijel changed the title After uploading the translation file, the translation became disordered. After uploading the CSV file, the translation became disordered. Jan 16, 2024
@nijel nijel changed the title After uploading the CSV file, the translation became disordered. Context is ignored when uploading CSV file Jan 16, 2024
@nijel
Copy link
Member

nijel commented Jan 16, 2024

Weblate tries to match by context first and if it doesn't find a matching string, it uses the source string only to match. Seems like something went wrong while parsing the CSV file. Maybe \ is double escaped in the uploaded CSV file?

Weblate shows single \, but Excel shows double \\. Then the contexts would not match and strings would get matched by source only.

@nijel nijel added the question This is more a question for the support than an issue. label Jan 16, 2024
Copy link

This issue has been marked as a question by a Weblate team member. Why? Because it belongs more to the professional Weblate Care or community Discussions than here. We strive to answer these reasonably fast here, too, but purchasing the support subscription is more responsible and faster for your business. And it makes Weblate stronger as well. Thanks!

In case your question is already answered, making a donation is the right way to say thank you!

@dxdx123
Copy link
Author

dxdx123 commented Jan 16, 2024

The test has been conducted, and manually changing the csv's key (context) to a single \ made it work properly. Thank you.

Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Jan 31, 2024
@nijel nijel self-assigned this Jan 31, 2024
@nijel nijel added bug Something is broken. and removed question This is more a question for the support than an issue. wontfix Nobody will work on this. labels Jan 31, 2024
@nijel nijel added this to the 5.4 milestone Jan 31, 2024
@nijel nijel closed this as completed in 71108e9 Jan 31, 2024
Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants