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

More automatic translations

parent d34b0751
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
This diff is collapsed.
......@@ -10,9 +10,11 @@ def main (f):
for entry in po:
if (re.fullmatch(r'-[-a-z0-9[\]]+', entry.msgid)) \
or re.fullmatch(r'((linkgit:)?git-[-a-z0-9[\]]+(\[1\]|\(1\))(\n| )?)+', entry.msgid) \
or re.fullmatch(r'`[A-Z-_]+`|(core|branch|diff)\.[a-zA-Z]+', entry.msgid):
or re.fullmatch(r'`[a-zA-Z-_]+`|(user|transfer|submodule|stash|status|splitIndex|showbranch|sendemail|repack|remote|receive|push|mergetool|mailinfo|log|interactive|instaweb|i18n|help|gui|gitweb|fastimport|format|fetch|difftool|credential|commit|column|core|branch|diff|apply|color)\.[a-zA-Z_.]+', entry.msgid):
entry.msgstr = entry.msgid
entry.flags.append("ignore-translated")
flags = set(entry.flags)
entry.flags = list(flags)
if 'fuzzy' in entry.flags:
entry.flags.remove('fuzzy')
entry.previous_msgid = None
......
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