Unable to download translations from Pontoon Test project

I’m running a custom docker instance of Pontoon and am attempting to download the translations for a particular project. This causes a few failures in the server that are somewhat puzzling to me. I am using the Pontoon Test starter project and attempting to download the translations from aboutAccounts.properties.

The first failure
requests.exceptions.MissingSchema: Invalid URL 'aboutAccounts.properties': No schema supplied. Perhaps you meant http://aboutAccounts.properties?

And then 2 other failures for google translate and microsoft translate. It is surprising to me that a translation download would lead to downstream machine translation requests. Is there something I need to do in order enable file-based downloads for projects?

1 Like

Hello,

Thank you for bringing this issue to our attention.

It would be really helpful if you could provide us with a screenshot of your project administration page. This will help us to determine the root cause of the issues you’re encountering.

Looking forward to your response to better resolve this issue for you.

1 Like

I’m not allowed to upload attachments because I’m a new user. Is there a setting that you’re curious about in particular?

Could you tell us what you have under “Repository settings”, specifically in the “URL” and “Download prefix or path to TOML file” fields. Also do you have anything in the “Configuration file” field?

Repository settings URL is the following which is an internal instance of github

git@bbgithub.dev.bloomberg.com:moconor2/pontoon-test.git

“Download prefix or path to TOML file” is empty as is Configuration File

Can you try filling out the “Download prefix or path to TOML file” field as outlined in step 5 of this documentation: https://mozilla-pontoon.readthedocs.io/en/latest/user/localizing-your-projects.html#adding-a-new-project-to-pontoon

1 Like

This results in a 404 with the prefix specified as

https://bbgithub.dev.bloomberg.com/raw/moconor2/pontoon-test/master/{locale_code}

Request URL resolved to
<OUR_SITE_URL>/translations/?code=de&slug=pontoon-test&part=aboutAccounts.properties

We’re probably hitting the following issue here:

Downloading translations won’t work, because public download links are not available. I assume making the repository public is not an option for you?

Thanks for your reply, mathjazz. We definitely do not want to make our repository public in terms of hosting it on github directly but we can make it public within our own enterprise instance of github. Is there a setting I’m missing that would enable public download links? Or are those only available for repos hosted directly on github rather than enterprise instances? I can confirm that the repo I’m using is currently set to public.