Styles->Cite section in Zotero preferences and split to "Word Processors" and "Styles" tabs

also change "Shortcut Keys" to just "Shortcuts" (since the icon is a key anyway)
This commit is contained in:
Simon Kornblith 2010-10-15 05:36:37 +00:00
parent 98ef051951
commit d4da080967
3 changed files with 67 additions and 40 deletions

View File

@ -46,6 +46,7 @@ function init()
} }
updateStorageSettings(null, null, true); updateStorageSettings(null, null, true);
updateWordProcessorInstructions();
refreshStylesList(); refreshStylesList();
refreshProxyList(); refreshProxyList();
populateQuickCopyList(); populateQuickCopyList();
@ -1813,3 +1814,12 @@ function updateProxyPrefs() {
document.getElementById('zotero-proxies-disableByDomain-checkbox').disabled = document.getElementById('zotero-proxies-disableByDomain-checkbox').disabled =
document.getElementById('zotero-proxies-disableByDomain-textbox').disabled = !transparent; document.getElementById('zotero-proxies-disableByDomain-textbox').disabled = !transparent;
} }
/**
* Determines if there are word processors, and if not, enables no word processor message
*/
function updateWordProcessorInstructions() {
if(document.getElementById("wordProcessors").childNodes.length == 2) {
document.getElementById("wordProcessors-noWordProcessorPluginsInstalled").hidden = undefined;
}
}

View File

@ -564,28 +564,41 @@ To add a new preference:
<prefpane id="zotero-prefpane-styles" <prefpane id="zotero-prefpane-styles"
label="&zotero.preferences.prefpane.styles;" label="&zotero.preferences.prefpane.cite;"
image="chrome://zotero/skin/prefs-styles.png"> image="chrome://zotero/skin/prefs-styles.png">
<preferences> <preferences>
<preference id="pref-styles-citePaperJournalArticleURL" name="extensions.zotero.export.citePaperJournalArticleURL" type="bool"/> <preference id="pref-styles-citePaperJournalArticleURL" name="extensions.zotero.export.citePaperJournalArticleURL" type="bool"/>
</preferences> </preferences>
<tabbox>
<tabs>
<tab label="&zotero.preferences.cite.wordProcessors;"/>
<tab label="&zotero.preferences.cite.styles;"/>
</tabs>
<tabpanels>
<tabpanel orient="vertical" id="wordProcessors">
<label id="wordProcessors-noWordProcessorPluginsInstalled" width="45em" hidden="true">
&zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled;
</label>
<label class="text-link" href="http://www.zotero.org/support/word_processor_plugin_installation#word_processor_plugins_for_zotero_2.0" value="&zotero.preferences.cite.wordProcessors.getPlugins;"/>
</tabpanel>
<tabpanel orient="vertical" id="styles">
<groupbox flex="1"> <groupbox flex="1">
<caption label="&zotero.preferences.styles.styleManager;"/> <caption label="&zotero.preferences.cite.styles.styleManager;"/>
<tree flex="1" id="styleManager" hidecolumnpicker="true" rows="6" <tree flex="1" id="styleManager" hidecolumnpicker="true" rows="6"
onselect="document.getElementById('styleManager-delete').disabled = undefined" onselect="document.getElementById('styleManager-delete').disabled = undefined"
onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedStyle(); }"> onkeypress="if (event.keyCode == event.DOM_VK_DELETE) { deleteSelectedStyle(); }">
<treecols> <treecols>
<treecol id="styleManager-title" label="&zotero.preferences.styles.styleManager.title;" flex="3"/> <treecol id="styleManager-title" label="&zotero.preferences.cite.styles.styleManager.title;" flex="3"/>
<treecol id="styleManager-updated" label="&zotero.preferences.styles.styleManager.updated;" flex="1"/> <treecol id="styleManager-updated" label="&zotero.preferences.cite.styles.styleManager.updated;" flex="1"/>
<treecol id="styleManager-csl" label="&zotero.preferences.styles.styleManager.csl;"/> <treecol id="styleManager-csl" label="&zotero.preferences.cite.styles.styleManager.csl;"/>
</treecols> </treecols>
<treechildren id="styleManager-rows"/> <treechildren id="styleManager-rows"/>
</tree> </tree>
<separator class="thin"/> <separator class="thin"/>
<hbox align="center" flex="1"> <hbox align="center" flex="1" height="40">
<label class="text-link" href="http://www.zotero.org/styles/" value="&zotero.preferences.export.getAdditionalStyles;" flex="1"/> <label class="text-link" href="http://www.zotero.org/styles/" value="&zotero.preferences.export.getAdditionalStyles;" flex="1"/>
<button disabled="true" id="styleManager-delete" label="-" onclick="deleteStyle()"/> <button disabled="true" id="styleManager-delete" label="-" onclick="deleteStyle()"/>
<button label="+" onclick="addStyle()"/> <button label="+" onclick="addStyle()"/>
@ -601,8 +614,9 @@ To add a new preference:
&zotero.preferences.export.citePaperJournalArticleURL.description; &zotero.preferences.export.citePaperJournalArticleURL.description;
</label> </label>
</groupbox> </groupbox>
</tabpanel>
<separator/> </tabpanels>
</tabbox>
</prefpane> </prefpane>

View File

@ -94,16 +94,19 @@
<!ENTITY zotero.preferences.quickCopy.siteEditor.outputFormat "Output Format"> <!ENTITY zotero.preferences.quickCopy.siteEditor.outputFormat "Output Format">
<!ENTITY zotero.preferences.quickCopy.dragLimit "Disable Quick Copy when dragging more than"> <!ENTITY zotero.preferences.quickCopy.dragLimit "Disable Quick Copy when dragging more than">
<!ENTITY zotero.preferences.prefpane.cite "Cite">
<!ENTITY zotero.preferences.cite.styles "Styles">
<!ENTITY zotero.preferences.cite.wordProcessors "Word Processors">
<!ENTITY zotero.preferences.cite.wordProcessors.noWordProcessorPluginsInstalled "No word processor plug-ins are currently installed.">
<!ENTITY zotero.preferences.cite.wordProcessors.getPlugins "Get word processor plug-ins...">
<!ENTITY zotero.preferences.prefpane.styles "Styles"> <!ENTITY zotero.preferences.cite.styles.styleManager "Style Manager">
<!ENTITY zotero.preferences.cite.styles.styleManager.title "Title">
<!ENTITY zotero.preferences.styles.styleManager "Style Manager"> <!ENTITY zotero.preferences.cite.styles.styleManager.updated "Updated">
<!ENTITY zotero.preferences.styles.styleManager.title "Title"> <!ENTITY zotero.preferences.cite.styles.styleManager.csl "CSL">
<!ENTITY zotero.preferences.styles.styleManager.updated "Updated">
<!ENTITY zotero.preferences.styles.styleManager.csl "CSL">
<!ENTITY zotero.preferences.export.getAdditionalStyles "Get additional styles..."> <!ENTITY zotero.preferences.export.getAdditionalStyles "Get additional styles...">
<!ENTITY zotero.preferences.prefpane.keys "Shortcut Keys"> <!ENTITY zotero.preferences.prefpane.keys "Shortcuts">
<!ENTITY zotero.preferences.keys.openZotero "Open/Close Zotero Pane"> <!ENTITY zotero.preferences.keys.openZotero "Open/Close Zotero Pane">
<!ENTITY zotero.preferences.keys.toggleFullscreen "Toggle Fullscreen Mode"> <!ENTITY zotero.preferences.keys.toggleFullscreen "Toggle Fullscreen Mode">