From 002ccf8d621f2ca81b6744b8cb619797509d65e3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Sep 2015 16:46:20 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20#1500802=20[Minor=20bug=20German=20"?= =?UTF-8?q?=C3=A4"-character](https://bugs.launchpad.net/calibre/+bug/1500?= =?UTF-8?q?802)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/calibre/gui2/dialogs/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/search.py b/src/calibre/gui2/dialogs/search.py index 70c88946e0..00ea228476 100644 --- a/src/calibre/gui2/dialogs/search.py +++ b/src/calibre/gui2/dialogs/search.py @@ -6,6 +6,7 @@ from datetime import date from PyQt5.Qt import QDialog, QDialogButtonBox +from calibre import strftime from calibre.gui2.dialogs.search_ui import Ui_Dialog from calibre.library.caches import CONTAINS_MATCH, EQUALS_MATCH from calibre.gui2 import gprefs @@ -36,7 +37,7 @@ class SearchDialog(QDialog, Ui_Dialog): QDialog.__init__(self, parent) self.setupUi(self) self.um_label.setText(self.um_label.text() % localize_user_manual_link('http://manual.calibre-ebook.com/gui.html#the-search-interface')) - for val, text in [(0, '')] + [(i, date(2010, i, 1).strftime('%B')) for i in xrange(1, 13)]: + for val, text in [(0, '')] + [(i, strftime('%B', date(2010, i, 1).timetuple())) for i in xrange(1, 13)]: self.date_month.addItem(text, val) for val, text in [('today', _('Today')), ('yesterday', _('Yesterday')), ('thismonth', _('This month'))]: self.date_human.addItem(text, val)