88 KEY_DEVELOPER_COMMENT , KEY_OCCURRENCES ,
99 KEY_TAGS )
1010
11- TRANSIFEX_CDS_HOST = 'https ://cds.svc.transifex.net '
11+ TRANSIFEX_CDS_HOST = 'http ://localhost:10300 '
1212
1313TRANSIFEX_CDS_URLS = {
1414 'FETCH_AVAILABLE_LANGUAGES' : '/languages' ,
@@ -205,7 +205,8 @@ def fetch_translations(self, language_code=None):
205205 def push_source_strings (self , strings , purge = False ,
206206 do_not_keep_translations = False ,
207207 override_tags = False ,
208- override_occurrences = False ):
208+ override_occurrences = False ,
209+ force_source_update = False ):
209210 """Push source strings to CDS.
210211
211212 :param list(SourceString) strings: a list of `SourceString` objects
@@ -219,6 +220,8 @@ def push_source_strings(self, strings, purge=False,
219220 False appends them to existing tags.
220221 :param bool override_occurrences: True replaces all the occurrences of pushed strings.
221222 False appends them to existing occurrences.
223+ :param bool force_source_update: True forces the update of the source strings.
224+ False lets the normal revision logic handle the update.
222225 :return: the HTTP response object
223226 :rtype: requests.Response
224227 """
@@ -242,6 +245,7 @@ def push_source_strings(self, strings, purge=False,
242245 'keep_translations' : not do_not_keep_translations ,
243246 'override_tags' : override_tags ,
244247 'override_occurrences' : override_occurrences ,
248+ 'force_source_update' : force_source_update ,
245249 },
246250 }
247251 )
0 commit comments