Add strings from the Qt color dialog for translation

This commit is contained in:
Kovid Goyal 2014-08-15 15:56:49 +05:30
parent 94f0d12b62
commit c12eece047
2 changed files with 2 additions and 10 deletions

View File

@ -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:

View File

@ -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: