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

Excel File Translation Upload Error #11872

Closed
2 tasks done
dxdx123 opened this issue Jun 17, 2024 · 6 comments · Fixed by #11885
Closed
2 tasks done

Excel File Translation Upload Error #11872

dxdx123 opened this issue Jun 17, 2024 · 6 comments · Fixed by #11885
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@dxdx123
Copy link

dxdx123 commented Jun 17, 2024

Describe the issue

There is an issue with uploading translations in the Excel file. If there are more than 4 entries, the translation cannot be uploaded, and an error message appears stating that the translation content cannot be found. Format:

source:
{"desc_list":[{"title": "基础规则","rows":["活动中,传说角色的单次邂逅出率为2%","在任意邂逅活动中,每邂逅1次,累计1次全局保底计数,全局保底计数达到100次时,<style=yellow>必定随机获得1名当期活动中的传说角色</style>。获得任意传说角色时,全局保底计数将被重置(当前全局保底:<style=yellow>{count}</style>次内必得随机传说角色)"]}]}

target:
{"desc_list":[{"title": "基本ルール11","desc":"【常設出会い】では現在実装済みの全てのキャラクターと出会う可能性があります"}]}

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 Excel

Expected behavior

No response

Screenshots

image

image

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

5.3.1, 5.5.5

Weblate deploy checks

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Jun 17, 2024

What error do you get exactly? Is some additional info available in Weblate logs?

@nijel nijel added the question This is more a question for the support than an issue. label Jun 17, 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 Jun 18, 2024

What error do you get exactly? Is some additional info available in Weblate logs?

When uploading 4 items:Processed 4 strings from the uploaded files (skipped: 4, not found: 0, updated: 0).
image

When uploading more than 5 items:Processed 23 strings from the uploaded files (skipped: 0, not found: 22, updated: 0).
image

After further investigation, it was found that the parsing of the csv file was abnormal and the header of the excel file was not parsed normally.
image

image

@nijel
Copy link
Member

nijel commented Jun 18, 2024

Seems like CSV dialect detection in confused by the data. We should have a way to skip that detection in this case.

@nijel nijel added enhancement Adding or requesting a new feature. and removed question This is more a question for the support than an issue. labels Jun 18, 2024
@nijel nijel self-assigned this Jun 18, 2024
nijel added a commit that referenced this issue Jun 18, 2024
The content is always utf-8 encoded, so avoid detecting it.

See #11872
nijel added a commit to translate/translate that referenced this issue Jun 18, 2024
@nijel nijel added this to the 5.6 milestone Jun 18, 2024
@nijel nijel closed this as completed in 36ff3de Jun 18, 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.

1 similar comment
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
enhancement Adding or requesting a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants