mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
xgettext cant handle non-ascii chars in msgids with the --omit-header option
This commit is contained in:
parent
a9657651ef
commit
52f7b6c8ce
@ -246,7 +246,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
config[key] = []
|
config[key] = []
|
||||||
self.gui.search.clear_history()
|
self.gui.search.clear_history()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
test_widget('Interface', 'Search')
|
test_widget('Interface', 'Search')
|
||||||
|
|
||||||
|
@ -155,6 +155,8 @@ class OptionSet(object):
|
|||||||
for opt in self.preferences:
|
for opt in self.preferences:
|
||||||
if opt.help:
|
if opt.help:
|
||||||
opt.help = t(opt.help)
|
opt.help = t(opt.help)
|
||||||
|
if opt.name == 'use_primary_find_in_search':
|
||||||
|
opt.help = opt.help.format(u'ñ')
|
||||||
|
|
||||||
def option_parser(self, user_defaults=None, usage='', gui_mode=False):
|
def option_parser(self, user_defaults=None, usage='', gui_mode=False):
|
||||||
from calibre.utils.config import OptionParser
|
from calibre.utils.config import OptionParser
|
||||||
@ -441,7 +443,7 @@ def create_global_prefs(conf_obj=None):
|
|||||||
help=_(u'Characters typed in the search box will match their '
|
help=_(u'Characters typed in the search box will match their '
|
||||||
'accented versions, based on the language you have chosen '
|
'accented versions, based on the language you have chosen '
|
||||||
'for the calibre interface. For example, in '
|
'for the calibre interface. For example, in '
|
||||||
u'English, searching for n will match both ñ and n, but if '
|
u'English, searching for n will match both {} and n, but if '
|
||||||
'your language is Spanish it will only match n. Note that '
|
'your language is Spanish it will only match n. Note that '
|
||||||
'this is much slower than a simple search on very large '
|
'this is much slower than a simple search on very large '
|
||||||
'libraries. Also, this option will have no effect if you turn '
|
'libraries. Also, this option will have no effect if you turn '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user