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

2019-10-04 Thread Christian Lohmaier
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:
> >> 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
https://gist.github.com/cloph/76d4c22f0e0d8c81c55a8acab98c3311

copying the builtin help here for reference.

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

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

--target=/path/to/save/to
the target directory (will be created if it doesn't exist already) to
use for the download

defaults to /var/tmp/weblate-download

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

--language=lang
the language to download, required.

--filter=componenteprefix
optional option to restrict the download to only those components that
start with "componentprefix"

--verbose
optional switch to output more progress information

--keyfile[=fileWithApiKey]
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)

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

Use at your own risk.

--help
show this help

ciao
Christian

-- 
To unsubscribe e-mail to: l10n+unsubscr...@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] Weblate: admin rights and TMXs

2019-10-04 Thread Olivier Hallot
Hi All

Em 25/09/2019 10:36, sophi escreveu:
> Hi Valter,
>>
>> 2- Where can I download TMX files, separate per single and/or whole
>> project?
> 
> Whole project is not possible I fear.
>>
>> 3- If I click on the Translation Memory link, I cannot see anything in
>> the below area. Maybe has it still to be uploaded?
> 
> Because it's not yet populated with the previous versions, but when
> Christian will have migrated the other projects, translation memory will
> have some memory :)

Pootle can export a tmx file of the language. I tried to import it in
weblate but got a

413 Request Entity Too Large
nginx/1.14.2

The issue hurts me because many string in the /shared/ folder of the
Help were refactored in master and they currently shows as untranslated
in weblate, forcing a translation from scratch.

Thanks

-- 
Olivier Hallot
LibreOffice Documentation Coordinator
Comunidade LibreOffice
Rio de Janeiro - Brasil - Local Time: UTC-03:00
http://tdf.io/joinus

-- 
To unsubscribe e-mail to: l10n+unsubscr...@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 Weblate

2019-10-04 Thread sophi
Hi,
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?
Cheers
Sophie


-- 
Sophie Gautier sophie.gaut...@documentfoundation.org
GSM: +33683901545
IRC: sophi
Foundation coordinator
The Document Foundation

-- 
To unsubscribe e-mail to: l10n+unsubscr...@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 Weblate

2019-10-04 Thread Sveinn í Felli

Þ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.


best,
Sveinn í Felli

--
To unsubscribe e-mail to: l10n+unsubscr...@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 Weblate

2019-10-04 Thread Christian Lohmaier
Hi *,

On Mon, Sep 30, 2019 at 7:45 PM Mihkel Tõnnov  wrote:
>
> Christian Lohmaier (), 30. september 2019 
> kell 16:02:
>
> What about batch *up*loading? If there's no way for that in Weblate, I see 
> two possibilities, neither of which is exactly good:
> a) committing the files to GitHub directly - but won't they then get 
> overwritten again by whatever is on Weblate?

They wouldn't get overridden by weblate, rather weblate would error
out with a merge error that I would then have to fix, and I'd rather
tend to avoid that :-)

> b) removing Estonian from Weblate and committing to GitHub directly - but 
> then there's no easily accessible public overview of the state of things.
> How is this solved for the few other teams who translate offline?

Thats even worse, then you wouldn't get the sanity-checks done by
weblate and similar and likely will mess with my process of updating
templates and committing to source again as well.

but there's option
 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

> There is literally no fluctuation in my team, only me :) / :(
> The reason for asking is that in Pootle I have set that any (not necessarily 
> even logged in) users can make suggestions, in case someone finds an error in 
> translation or has an improvement idea. This possibility has also been used a 
> few times. If this can be set up like this also in Weblate by Sophie or 
> anyone else, then fine by me.

Sure, that can be setup. so to confirm: you want anyone, including
anonymous users without any login to be able to make suggestions?

> In addition, I presume that if someone requests to join my language team, 
> that request would then be passed to me for approval, so I can make sure the 
> applicant has needed level of language skills, agree on style/terminology, 
> etc.

yes, basically it is handled with pootle as well for cases where
people don't find the admin-interface for it or where the old contact
is no longer active.

ciao
Christian

-- 
To unsubscribe e-mail to: l10n+unsubscr...@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