mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-08 06:24:50 +01:00
Fix text in standard buttons not being translated because of a change in Qt 5.3
This commit is contained in:
parent
60c327bde6
commit
f64107fa63
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ def qt_sources():
|
|||
qtdir = '/usr/src/qt5'
|
||||
j = partial(os.path.join, qtdir)
|
||||
return list(map(j, [
|
||||
'qtbase/src/widgets/widgets/qdialogbuttonbox.cpp',
|
||||
'qtbase/src/gui/kernel/qplatformtheme.cpp',
|
||||
'qtbase/src/widgets/dialogs/qcolordialog.cpp',
|
||||
'qtbase/src/widgets/dialogs/qfontdialog.cpp',
|
||||
]))
|
||||
|
|
@ -158,7 +158,7 @@ def run(self, opts):
|
|||
subprocess.check_call(['xgettext', '-j',
|
||||
'--default-domain=calibre', '-o', out.name,
|
||||
'--from-code=UTF-8', '--sort-by-file', '--omit-header',
|
||||
'--no-wrap', '-kQT_TRANSLATE_NOOP:2', '-ktr',
|
||||
'--no-wrap', '-kQT_TRANSLATE_NOOP:2', '-ktr', '-ktranslate:2',
|
||||
] + qt_inputs)
|
||||
|
||||
with open(out.name, 'rb') as f:
|
||||
|
|
|
|||
Loading…
Reference in a new issue