lang: Do not check/build obsolete translation entries
This commit is contained in:
parent
c7354bdfe8
commit
671cd70af7
2 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,8 @@ def main():
|
|||
# build a catalog of all translations
|
||||
trans_table = {}
|
||||
for translation in po:
|
||||
if translation.obsolete:
|
||||
continue
|
||||
msgid = translation.msgid
|
||||
found = msgid in msgid_data
|
||||
if found:
|
||||
|
|
|
@ -121,6 +121,10 @@ def ign_char_last(c):
|
|||
def check_translation(entry, msgids, is_pot, no_warning, no_suggest, warn_empty, warn_same, information):
|
||||
"""Check strings to display definition."""
|
||||
|
||||
# do not check obsolete/deleted entriees
|
||||
if entry.obsolete:
|
||||
return True
|
||||
|
||||
# fetch/decode entry for easy access
|
||||
meta = entry.comment.split('\n', 1)[0]
|
||||
source = entry.msgid
|
||||
|
|
Loading…
Reference in a new issue