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

Unable to create translation from "Upload Document" - Monolingual base language file (file does not exist) #7943

Closed
2 tasks done
Kentoseth opened this issue Jul 28, 2022 · 6 comments
Assignees
Labels
enhancement Adding or requesting a new feature. help wanted Extra attention is needed.
Milestone

Comments

@Kentoseth
Copy link

Describe the issue

So firstly I would like to say that I commend and thank you for making this wonderful software and allowing people to use it gratis for Libre projects.

However, in order to translate non-dev translations (like a book or document) is needlessly complex and has resulted in what I think is a bug:

I was trying to upload a new component in my Project via the "upload document" option.

matn-mod.txt

(attached document is a .txt file)

The first page allows me to upload the document but the next step forces me to "Specify configuration manually", without being able to proceed without choosing this:

box_1

Now I proceed to the bug below.

I already tried

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

Steps to reproduce the behavior

  1. Go to 'create new translation component'
  2. upload matn-txt file
  3. choose manual configuration option
  4. in manual configuration, fill in necessary details
  5. for "filemask" I used: *.txt
  6. for "Monolingual base language file" I used: matn-mod.txt
  7. Error: "File does not exist."

Expected behavior

I expected that the file would be found as I uploaded it. I thought maybe the '-' is an issue, so I also tried "matnmod.txt" as an uploaded file and then added in "Monolingual base language file" as "matnmod.txt" with the same error.

Screenshots

details_1


details_2

Exception traceback

None. This is on hosted weblate.

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

I would suggest simplifying the Document translate option. It is too complex for non-technical users and they would likely give up when attempting to fill in the manual config details.

@nijel
Copy link
Member

nijel commented Jul 29, 2022

The translate document workflow is indeed a bit clumsy. The uploaded document is stored in the internal repository and then normal configuration flow is started. In your case, the autodetection fails (because it doesn't look for txt files), and provides no clue how to continue.

@nijel nijel added enhancement Adding or requesting a new feature. help wanted Extra attention is needed. labels Jul 29, 2022
@Kentoseth
Copy link
Author

Thanks for the quick response.

Is there another (text) document format I can use instead of .txt that might resolve this?

@nijel nijel self-assigned this Aug 11, 2022
@nijel nijel added this to the 4.14 milestone Aug 11, 2022
@nijel
Copy link
Member

nijel commented Aug 11, 2022

The issue is not in the txt formats, but rather in the setup - you need to manually guess the filemask - it is <component_slug>/*.txt, monolingual base file should be <component_slug>/<source_language_code>.txt.

nijel added a commit that referenced this issue Aug 11, 2022
@nijel nijel closed this as completed in e167351 Aug 11, 2022
@github-actions
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.

@razor313
Copy link

I have the same issue but with Android format!

Screenshot 2023-06-13 at 15 14 09

I uploaded documents stored in the internal repository (local:)

@nijel
Copy link
Member

nijel commented Jun 13, 2023

@razor313 Please describe what you did in a separate issue.

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. help wanted Extra attention is needed.
Projects
None yet
Development

No branches or pull requests

3 participants