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

'format': 'File format not supported' #9392

Closed
2 tasks done
razor313 opened this issue Jun 13, 2023 · 6 comments
Closed
2 tasks done

'format': 'File format not supported' #9392

razor313 opened this issue Jun 13, 2023 · 6 comments
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.

Comments

@razor313
Copy link

Describe the issue

I've created a new project by importing translated files but once I want to download as the aresource (Android strings files) via wlc I face this error: Error: HTTP error 400: Bad Request {'format': 'File format not supported'}

Seems I have to change the project settings but I don't know how!

Please guide me on this matter, thanks in advance.

I already tried

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

Steps to reproduce the behavior

I've tried downloading it with other formats such iOS but it didn't work!

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

@razor313 razor313 added the question This is more a question for the support than an issue. label Jun 13, 2023
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

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

@nijel
Copy link
Member

nijel commented Jun 13, 2023

@razor313
Copy link
Author

@nijel Thank you for replying but It doesn't work properly, the output file isn't XML file since it doesn't have this

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name" translatable="false">APP_NAME</string>
</resources>

I need to convert it into XML file since the files are in XLIFF format on the weblate. I've tried the following commands to convert/download them as XML format but none of them have worked.

wlc download PROJECT_NAME/COMPONENT_NAME/en -c strings -o en-strings.xml

wlc download PROJECT_NAME/COMPONENT_NAME/en -c aresource -o en-strings.xml

Meanwhile, could you please take a look at #7943?

@nijel
Copy link
Member

nijel commented Jun 13, 2023

You need the XLIFF to be used as monolingual to support conversion to monolingual formats, see https://docs.weblate.org/en/latest/formats.html#bilingual-and-monolingual-formats

@razor313
Copy link
Author

I changed to XLIFF Translation File but I am still not able to set Monolingual base language file.

Screenshot 2023-06-13 at 16 31 27 Screenshot 2023-06-13 at 16 31 38

also, I get this Error: HTTP error 400: Bad Request {'format': 'File format not supported'} once try to download/convert it to android format (xml/aresource)

@github-actions
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 Jun 28, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue. wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants