Closes #372, Expose reportTranslationFailure in the preferences UI

This commit is contained in:
Dan Stillman 2006-10-19 22:33:22 +00:00
parent 88d67136b5
commit 66086627a7
3 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,7 @@
*/
var autoUpdateBox;
var reportTranslationFailure;
var positionMenu;
var parseEndnoteBox;
var automaticSnapshots;
@ -48,6 +49,9 @@ function init()
autoUpdateBox = document.getElementById('autoUpdateBox');
autoUpdateBox.checked = Zotero.Prefs.get('automaticScraperUpdates');
reportTranslationFailure = document.getElementById('reportTranslationFailure');
reportTranslationFailure.checked = Zotero.Prefs.get('reportTranslationFailure');
positionMenu = document.getElementById('positionMenu');
positionMenu.selectedIndex = zoteroPaneOnTopInitial = Zotero.Prefs.get('zoteroPaneOnTop') ? 0 : 1;
@ -76,6 +80,7 @@ function init()
function accept()
{
Zotero.Prefs.set('automaticScraperUpdates', autoUpdateBox.checked);
Zotero.Prefs.set('reportTranslationFailure', reportTranslationFailure.checked);
Zotero.Prefs.set('zoteroPaneOnTop', positionMenu.selectedIndex == 0);
if(Zotero.Prefs.get('parseEndNoteMIMETypes') != parseEndnoteBox.checked)

View File

@ -47,6 +47,8 @@
<checkbox id="autoUpdateBox" label="&zotero.preferences.autoUpdate.label;"/>
<checkbox id="reportTranslationFailure" label="&zotero.preferences.reportTranslationFailure.label;"/>
<checkbox id="parseEndnoteBox" label="&zotero.preferences.parseEndnote.label;"/>
<checkbox id="automaticSnapshots" label="&zotero.preferences.automaticSnapshots.label;"/>

View File

@ -1,6 +1,7 @@
<!ENTITY zotero.name "Zotero">
<!ENTITY zotero.preferences.title "Zotero Preferences">
<!ENTITY zotero.preferences.autoUpdate.label "Automatically check for updated scrapers">
<!ENTITY zotero.preferences.reportTranslationFailure.label "Report broken site translators">
<!ENTITY zotero.preferences.position.label "Display Zotero">
<!ENTITY zotero.preferences.position.above "above">
<!ENTITY zotero.preferences.position.below "below">