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

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

Hi Sophie, *,

On Fri, Oct 4, 2019 at 1:36 PM sophi <sophi@libreoffice.org> wrote:
> Le 04/10/2019 à 12:33, Sveinn í Felli a écrit :
> > Þann 4.10.2019 10:16, skrifaði Christian Lohmaier:
> >> c) for those projects really wanting to upload all at once: use the
> >> weblate client program and use a script to automate the upload using
> >> the API:
> >> https://docs.weblate.org/en/weblate-3.8/wlc.html
> >
> > This is interesting. I guess that those who are susceptible to use batch
> > upload/download are mostly language coordinators with some scripting
> > experience. We could of course share our scripts here.
> That's a good idea :) maybe best would be to store them in the 10n part
> of the wiki?

As I like perl better than python, I wrote a helper script that will
take care of downloading multiple files

copying the builtin help here for reference.

weblate-download.pl is used to download multiple po files for a project
from TDF's weblate server. Downloading will replicate the directory
structure as used in the repository. Note that anonymous access is
restricted to 100 requests/day.

Examples (use --help to see all options):

"weblate-download.pl -t /tmp/pofiles -p libo_help-master -l fr"
"weblate-download.pl -k -l vec -f dictionaries"

All options names are case-insensitive and can be abbreviated as long as
the prefix is still unique

the target directory (will be created if it doesn't exist already) to
use for the download

defaults to /var/tmp/weblate-download

the project to process - either "libo_ui-master" or "libo_help-master"
defaults to libo_ui-master

the language to download, required.

optional option to restrict the download to only those components that
start with "componentprefix"

optional switch to output more progress information

optional switch to enable authenticated API access. If "--keyfile" is
specified without a pathname, it defaults to ~/.config/tdf-weblate

If the option is not specified, anonymous access is used (restricted
to 100 requests/day) The file should contain just your personal API
key (found in weblate → profile-icon → settings → API access)

optional switch to overwrite already existing files. If not specified,
download will be skipped for existing files.

Use at your own risk.

show this help


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

Re: [libreoffice-l10n] Migrating 6.3 project to WeblateSveinn í Felli <sv1@fellsnet.is>
[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>
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.