diff --git a/src/calibre/gui2/dialogs/metadata_bulk.py b/src/calibre/gui2/dialogs/metadata_bulk.py
index b00205e6d6..b7d1d0c54b 100644
--- a/src/calibre/gui2/dialogs/metadata_bulk.py
+++ b/src/calibre/gui2/dialogs/metadata_bulk.py
@@ -4,7 +4,7 @@
'''Dialog to edit metadata in bulk'''
from threading import Thread
-import os, re, shutil
+import re
from PyQt4.Qt import QDialog, QGridLayout
from PyQt4 import QtGui
@@ -104,9 +104,9 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
s_r_functions = {
'' : lambda x: x,
- 'lower' : lambda x: x.lower(),
- 'upper' : lambda x: x.upper(),
- 'title' : lambda x: x.title(),
+ _('Lower Case') : lambda x: x.lower(),
+ _('Upper Case') : lambda x: x.upper(),
+ _('Title Case') : lambda x: x.title(),
}
def __init__(self, window, rows, db):
@@ -203,10 +203,11 @@ def prepare_search_and_replace(self):
self.search_for.editTextChanged[str].connect(self.s_r_paint_results)
self.replace_with.editTextChanged[str].connect(self.s_r_paint_results)
self.test_text.editTextChanged[str].connect(self.s_r_paint_results)
+ self.central_widget.setCurrentIndex(0)
def s_r_field_changed(self, txt):
txt = unicode(txt)
- for i in range(0,self.s_r_number_of_books):
+ for i in range(0, self.s_r_number_of_books):
if txt:
fm = self.db.field_metadata[txt]
id = self.ids[i]
diff --git a/src/calibre/gui2/dialogs/metadata_bulk.ui b/src/calibre/gui2/dialogs/metadata_bulk.ui
index c12182476c..1f544dcb9d 100644
--- a/src/calibre/gui2/dialogs/metadata_bulk.ui
+++ b/src/calibre/gui2/dialogs/metadata_bulk.ui
@@ -39,7 +39,7 @@
-
- 0
+ 2
@@ -47,7 +47,7 @@
-
-
+
&Author(s):
@@ -128,7 +128,7 @@
-
-
+
&Publisher:
@@ -148,7 +148,7 @@
-
-
+
Add ta&gs:
@@ -244,7 +244,7 @@
-
-
+
Remove &format:
@@ -329,16 +329,16 @@ Future conversion of these books will use the default settings.
true
+
-
-
+
-
-
-
+
Search &field:
@@ -348,7 +348,7 @@ Future conversion of these books will use the default settings.
-
-
+
&Search for:
@@ -358,7 +358,7 @@ Future conversion of these books will use the default settings.
-
-
+
&Replace with:
@@ -377,7 +377,7 @@ Future conversion of these books will use the default settings.
-
-
+
Apply function &after replace:
@@ -390,7 +390,7 @@ Future conversion of these books will use the default settings.
-
-
+
Test &text
@@ -400,7 +400,7 @@ Future conversion of these books will use the default settings.
-
-
+
Test re&sult
@@ -410,7 +410,7 @@ Future conversion of these books will use the default settings.
-
-
+
Your test: