@@ -63,6 +63,14 @@ def add_arguments(self, subparsers):
6363 '--no-wait' , action = 'store_true' , dest = 'no_wait' , default = False ,
6464 help = ('Disable polling for upload results' ),
6565 )
66+ parser .add_argument (
67+ '--override-tags' , action = 'store_true' , dest = 'override_tags' , default = False ,
68+ help = ('Override tags when pushing content' ),
69+ )
70+ parser .add_argument (
71+ '--do-not-keep-translations' , action = 'store_true' , dest = 'do_not_keep_translations' , default = False ,
72+ help = ('Remove translations when source strings change' ),
73+ )
6674 parser .add_argument (
6775 '--verbose' , '-v' , action = 'store_true' ,
6876 dest = 'verbose_output' , default = False ,
@@ -90,6 +98,8 @@ def handle(self, *args, **options):
9098 self .with_tags_only = options ['with_tags_only' ]
9199 self .without_tags_only = options ['without_tags_only' ]
92100 self .dry_run = options ['dry_run' ]
101+ self .override_tags = options ['override_tags' ]
102+ self .do_not_keep_translations = options ['do_not_keep_translations' ]
93103 self .no_wait = options ['no_wait' ]
94104 self .key_generator = options ['key_generator' ]
95105 extensions = options ['extensions' ]
@@ -182,7 +192,8 @@ def push_strings(self):
182192 'to Transifex...' .format (total )
183193 )
184194 status_code , response_content = tx .push_source_strings (
185- self .string_collection .strings .values (), self .purge
195+ self .string_collection .strings .values (), self .purge ,
196+ self .do_not_keep_translations , self .override_tags
186197 )
187198
188199 if self .no_wait :
0 commit comments