[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libreoffice-l10n] Migrating 6.3 project to Weblate


Hi Sveinn, *,

On Wed, Nov 13, 2019 at 1:28 PM Sveinn í Felli <sv1@fellsnet.is> wrote:
> Þann 4.10.2019 16:06, skrifaði Christian Lohmaier:
> > […]
> > As I like perl better than python, I wrote a helper script that will
> > take care of downloading multiple files
> > https://gist.github.com/cloph/76d4c22f0e0d8c81c55a8acab98c3311
> […]
> Was trying to get your script running:
> $ perl weblate-download.pl -t /tmp/pofiles -p libo_ui-master -l is
> Got this back: "Too late for "-CSDA" option at weblate-download.pl line 1."

The -C option is meant to switch all perl handles to use UTF-8, the
letters SDA specify what the utf8 should apply to.
S: stdin, stdout, stderr
D: input and output streams (→ reading/writing files)
A: arguments (options passed to the script)

> Tried to remove the -CSDA options from the file and got this:

if you don't run the script itself (chmod u+x weblate-download.pl and
then ./weblate-download.pl directly), it is better to run
perl -CSDA weblate-download.pl …
But the error is not related to connection failures, but rather would
lead to wrongly encoded filenames and similar (but should not be an
issue for LO's pootle, all filenames are ASCII)

> Error while downloading componentlist: 500 Can't connect to
> weblate.documentfoundation.org:443
> aborting... if the message is about too many requests, consult --help
> for keyfile option
>
> Aha, a missing API-key, right?

Without API you can only do a limited number of requests per day,
while OK to get a list of files/components, not enough to actually
download them all.
But you're already getting a different error 500 is internal server
error. Maybe you were unlucky with your timing and you tried just when
the machine was rebooted. The 500 error /can't connect message is not
related to the api-request limit.

> Also, whatever I've tried in the wlc-client points to a missing API-key.

So if you tried numerous times: are you behind a (mandatory) proxy?

> So, two questions:
>
> 1. the key in question, is it the SSH-RSA key listed at 'About Weblate /
> Weblate keys' in <https://weblate.documentfoundation.org/keys/> ?

No, that is for when weblate is pushing changes to the git repository.
You can find your api-key/token in your user profile
(user-icon → Settings → Api-access)
https://weblate.documentfoundation.org/accounts/profile/#api

> 2. where can I find simple example on how to install the key? Is it done
> through the wlc-client or just by throwing a file with the key contents
> into my .ssh folder?

The weblate-download script would look in ~/.config/tdf-weblate by
default (should contain just the key, nothing else), or you can use -k
/path/to/someother/file to use a different file.

But your problem is not related to the keyfile (you'll need it anyway,
since LibreOffice consists of too many components to fit in the limit)
- but you should be able to download ~95 files (the other 5 are used
to get the list of components) and then it would fail with something
like this:
Successfully downloaded /tmp/pofiles/is/dictionaries//cs_CZ.po
Successfully downloaded /tmp/pofiles/is/dictionaries//vi.po
Error: downloading /tmp/pofiles/is/dictionaries//pt_PT.po failed200 OK
Error: downloading /tmp/pofiles/is/dictionaries//gd_GB.po failed200 OK
Error: downloading /tmp/pofiles/is/dictionaries//sw_TZ.po failed200 OK
Error: downloading /tmp/pofiles/is/dictionaries//be_BY.po failed200 OK
Error: downloading /tmp/pofiles/is/dictionaries//sv_SE.po failed200 OK
Error while downloading componentlist: 429 Too Many Requests
aborting... if the message is about too many requests, consult --help
for keyfile option

ciao
Christian

--
To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

References:
[libreoffice-l10n] Migrating 6.3 project to Weblatesophi <sophi@libreoffice.org>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateValter Mura <valtermura@libreoffice.org>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateMihkel Tõnnov <mihhkel@gmail.com>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateChristian Lohmaier <lohmaier+ooofuture@googlemail.com>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateMihkel Tõnnov <mihhkel@gmail.com>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateChristian Lohmaier <lohmaier+ooofuture@googlemail.com>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateSveinn í Felli <sv1@fellsnet.is>
Re: [libreoffice-l10n] Migrating 6.3 project to Weblatesophi <sophi@libreoffice.org>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateChristian Lohmaier <lohmaier+ooofuture@googlemail.com>
Re: [libreoffice-l10n] Migrating 6.3 project to WeblateSveinn í Felli <sv1@fellsnet.is>
Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.