mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Vendor polib used in setup
Trying to keep it available system-wide is too much pain.
This commit is contained in:
parent
e01a9c26c9
commit
068de19869
1821
setup/polib.py
Normal file
1821
setup/polib.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user