Project

General

Profile

Bug #15356

Feature #10034: Translation web platform

Feature #15079: Integrate the platform with our Git and ikiwiki infrastructure

Feature #15082: Have the Weblate Git communicate with our main Git repository

Automate adding new components to Weblate

Added by u over 1 year ago. Updated 3 months ago.

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

60%

Feature Branch:
Type of work:
Sysadmin
Blueprint:
Starter:
Affected tool:

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<name>.*)\.([^.]*)\.po$' \
tails weblate://tails/index master \
wiki/src/security/**.*.po

Related issues

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

History

#1 Updated by u over 1 year ago

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

#2 Updated by u over 1 year ago

We can use a githook for this.

#3 Updated by u over 1 year ago

  • Parent task changed from #10034 to #15074

#4 Updated by u over 1 year ago

  • Target version set to Tails_3.7

#5 Updated by u over 1 year ago

  • Parent task changed from #15074 to #15082

#6 Updated by u over 1 year ago

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

#7 Updated by u over 1 year ago

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

#8 Updated by bertagaz over 1 year ago

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

#9 Updated by u over 1 year ago

  • Assignee changed from u to hefee

#10 Updated by u over 1 year ago

  • Status changed from Confirmed to In Progress

#11 Updated by hefee over 1 year ago

  • % 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 #15185, too.

Maybe we can close this as duplicate?

#12 Updated by hefee over 1 year ago

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

#13 Updated by u about 1 year ago

  • 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 #15185, too.

Maybe we can close this as duplicate?

Ack.

#14 Updated by intrigeri 3 months ago

  • Assignee deleted (hefee)

Also available in: Atom PDF