Skip to content
Snippets Groups Projects
Commit 5bbeeed5 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

Tag pretranslated content with ignore-same


It's not ignore-untranslated, but ignore-same in Weblate

Signed-off-by: default avatarJean-Noël Avila <jn.avila@free.fr>
parent 638b93aa
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -12,7 +12,7 @@ def main (f):
or re.fullmatch(r'((linkgit:)?(git[-a-z0-9[\]]+|mail)(\[[157]\]|\([157]\))(,|;)?(\n| )?)+', entry.msgid) \
or re.fullmatch(r'`[a-zA-Z-_]+`|(user|transfer|submodule|stash|status|splitIndex|showbranch|sendemail|repack|remote|receive|push|merge(tool)?|mailinfo|log|interactive|instaweb|i18n|help|gui|gitweb|fastimport|format|fetch|diff(tool)?|credential|commit|column|core|branch|apply|color|git-p4)\.[a-zA-Z_.]+', entry.msgid):
entry.msgstr = entry.msgid
entry.flags.append("ignore-translated")
entry.flags.append("ignore-same")
flags = set(entry.flags)
entry.flags = list(flags)
if 'fuzzy' in entry.flags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment