Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index

Hi Sophie, *,

On Fri, Oct 4, 2019 at 1:36 PM sophi <> 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:

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.

Usage: 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):

    " -t /tmp/pofiles -p libo_help-master -l fr"
    " -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:
Posting guidelines + more:
List archive:
Privacy Policy:


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.