mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Add strings from the Qt color dialog for translation
This commit is contained in:
parent
94f0d12b62
commit
c12eece047
@ -18,6 +18,7 @@ def qt_sources():
|
||||
j = partial(os.path.join, qtdir)
|
||||
return list(map(j, [
|
||||
'qtbase/src/widgets/widgets/qdialogbuttonbox.cpp',
|
||||
'qtbase/src/widgets/dialogs/qcolordialog.cpp',
|
||||
]))
|
||||
|
||||
class POT(Command): # {{{
|
||||
@ -156,7 +157,7 @@ class POT(Command): # {{{
|
||||
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',
|
||||
'--no-wrap', '-kQT_TRANSLATE_NOOP:2', '-ktr',
|
||||
] + qt_inputs)
|
||||
|
||||
with open(out.name, 'rb') as f:
|
||||
|
@ -262,15 +262,6 @@ if False:
|
||||
_('Fonts')
|
||||
_('&Step up')
|
||||
_('Step &down')
|
||||
_('Basic colors')
|
||||
_('Custom colors')
|
||||
_('&Add to Custom Colors')
|
||||
_('Hu&e')
|
||||
_('&Sat')
|
||||
_('&Val')
|
||||
_('&Red')
|
||||
_('&Green')
|
||||
_('Bl&ue')
|
||||
|
||||
_lcase_map = {}
|
||||
for k in _extra_lang_codes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user