Bug #15356

Automate adding new components to Weblate

Added by Anonymous 2018-03-01 09:28:06 . Updated 2019-06-27 17:16:51 .

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
2018-03-01
Due date:
% Done:

60%

Feature Branch:
Type of work:
Sysadmin
Blueprint:

Starter:
Affected tool:
Deliverable for:
309

Description

For weblate to start tracking a file, we need to add it to the database BY HAND.
There is no way to do that for all the files, you need to add the folder information.
more info: https://docs.weblate.org/en/latest/admin/management.html#import-project

sudo -u weblate ./manage.py import_project \
—component-regexp ‘wiki/src/security/(?P.)\.([^.])\.po$’ \
tails weblate://tails/index master \
wiki/src/security/.*.po


Subtasks


Related issues

Related to Tails - Bug #15185: Automatically update Weblate components on mdwn file add/rename/delete in tails.bo git Resolved 2019-02-27
Related to Tails - Bug #15679: update puppet-tails to have scripts in weblate vm Resolved 2018-06-20

History

#1 Updated by Anonymous 2018-03-01 09:28:25

  • related to Bug #15185: Automatically update Weblate components on mdwn file add/rename/delete in tails.bo git added

#2 Updated by Anonymous 2018-03-01 09:30:47

We can use a githook for this.

#3 Updated by Anonymous 2018-03-02 10:54:50

#4 Updated by Anonymous 2018-03-02 10:55:00

  • Target version set to Tails_3.7

#5 Updated by Anonymous 2018-03-02 15:35:10

#6 Updated by Anonymous 2018-03-13 15:51:18

  • related to Bug #15357: Clarify how the review process of Weblate influences git commit added

#7 Updated by Anonymous 2018-03-13 15:51:27

  • related to deleted (Bug #15357: Clarify how the review process of Weblate influences git commit)

#8 Updated by bertagaz 2018-05-10 11:09:09

  • Target version changed from Tails_3.7 to Tails_3.8

#9 Updated by Anonymous 2018-06-12 09:01:56

  • Assignee set to hefee

#10 Updated by Anonymous 2018-06-12 14:12:25

  • Status changed from Confirmed to In Progress

#11 Updated by hefee 2018-06-12 16:16:20

  • % Done changed from 0 to 60

The snipset is not 100% correct as you also need a name-template. Anyways the same parameters should be used as done for inital importing.
The reference file is /usr/local/sbin/weblate-setup-project.sh (at least for docker) maybe the filepath is different for production.

The adding new component is handled in Bug #15185, too.

Maybe we can close this as duplicate?

#12 Updated by hefee 2018-06-20 15:15:38

  • related to Bug #15679: update puppet-tails to have scripts in weblate vm added

#13 Updated by Anonymous 2018-06-21 14:43:19

  • Status changed from In Progress to Duplicate

hefee wrote:
> The snipset is not 100% correct as you also need a name-template. Anyways the same parameters should be used as done for inital importing.
> The reference file is /usr/local/sbin/weblate-setup-project.sh (at least for docker) maybe the filepath is different for production.
>
> The adding new component is handled in Bug #15185, too.
>
> Maybe we can close this as duplicate?

Ack.

#14 Updated by intrigeri 2019-06-27 17:16:51

  • Assignee deleted (hefee)