diff --git a/src/calibre/gui2/preferences/save_template.py b/src/calibre/gui2/preferences/save_template.py index ceb9f1c8e9..608183b416 100644 --- a/src/calibre/gui2/preferences/save_template.py +++ b/src/calibre/gui2/preferences/save_template.py @@ -23,9 +23,14 @@ class SaveTemplate(QWidget, Ui_Form): QWidget.__init__(self, *args) Ui_Form.__init__(self) self.setupUi(self) + self.orig_help_text = self.help_label.text() def initialize(self, name, default, help, field_metadata): variables = sorted(FORMAT_ARG_DESCS.keys()) + if name == 'send_to_device': + self.help_label.setText(self.orig_help_text + _( + '. This setting can be overridden for individual devices,' + ' by clicking the device icon and choosing "Configure this device".')) rows = [] for var in variables: rows.append(u'%s %s'% @@ -50,7 +55,6 @@ class SaveTemplate(QWidget, Ui_Form): if t.exec_(): self.opt_template.set_value(t.rule[1]) - def changed(self, *args): self.changed_signal.emit() @@ -69,7 +73,7 @@ class SaveTemplate(QWidget, Ui_Form): 'books will have the same name. Is this OK?')) except Exception as err: error_dialog(self, _('Invalid template'), - '

'+_('The template %s is invalid:')%tmpl + \ + '

'+_('The template %s is invalid:')%tmpl + '
'+str(err), show=True) return False return True @@ -81,8 +85,3 @@ class SaveTemplate(QWidget, Ui_Form): val = unicode(self.opt_template.text()) config.set(name, val) self.opt_template.save_history(self.option_name+'_template_history') - - - - - diff --git a/src/calibre/gui2/preferences/save_template.ui b/src/calibre/gui2/preferences/save_template.ui index 98515e8377..6f10a4c68f 100644 --- a/src/calibre/gui2/preferences/save_template.ui +++ b/src/calibre/gui2/preferences/save_template.ui @@ -6,7 +6,7 @@ 0 0 - 400 + 477 300 @@ -21,7 +21,7 @@ - + By adjusting the template below, you can control what folders the files are saved in and what filenames they are given. You can use the / character to indicate sub-folders. Available metadata variables are described below. If a particular book does not have some metadata, the variable will be replaced by the empty string. diff --git a/src/calibre/gui2/preferences/sending.ui b/src/calibre/gui2/preferences/sending.ui index 606934329e..7e6c3c011d 100644 --- a/src/calibre/gui2/preferences/sending.ui +++ b/src/calibre/gui2/preferences/sending.ui @@ -23,7 +23,7 @@ - Metadata &management: + Me&tadata management: opt_manage_device_metadata @@ -94,16 +94,6 @@ - - - Here you can control how calibre will save your books when you click the Send to Device button. This setting can be overriden for individual devices by customizing the device interface plugins in Preferences->Advanced->Plugins - - - true - - - -