Vendor polib used in setup

Trying to keep it available system-wide is too much pain.
This commit is contained in:
Kovid Goyal 2024-05-02 11:36:48 +05:30
parent e01a9c26c9
commit 068de19869
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 1824 additions and 1 deletions

1821
setup/polib.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -642,9 +642,11 @@ class GetTranslations(Translations): # {{{
self.upload_to_vcs('Fixed translations')
def check_for_user_manual_errors(self):
sys.path.insert(0, self.j(self.d(self.SRC), 'setup'))
import polib
del sys.path[0]
self.info('Checking user manual translations...')
srcbase = self.j(self.d(self.SRC), 'translations', 'manual')
import polib
changes = defaultdict(set)
for lang in os.listdir(srcbase):
if lang.startswith('en_') or lang == 'en':