Skip to content

Commit

Permalink
lang: Do not check/build obsolete translation entries
Browse files Browse the repository at this point in the history
  • Loading branch information
wavexx committed Aug 9, 2022
1 parent 49abc39 commit 209a2ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/lang-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions lang/lang-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 209a2ed

Please sign in to comment.