From 650c3935076165a2bd4626daba1012fc0fac9156 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 4 Feb 2013 01:56:29 -0500 Subject: [PATCH] Expose launchNonNativeFiles hidden pref in Firefox "Open PDFs and other files within Firefox when possible" --- chrome/content/zotero/preferences/preferences.js | 8 ++++++++ chrome/content/zotero/preferences/preferences.xul | 5 ++--- chrome/content/zotero/preferences/preferences_firefox.xul | 8 ++++++++ chrome/locale/en-US/zotero/zotero.properties | 1 + 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 13b7fcaf8e..38386a7bb1 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -90,6 +90,14 @@ function init() rows[i].firstChild.nextSibling.value = Zotero.isMac ? 'Cmd+Shift+' : 'Ctrl+Alt+'; } + // JS-based strings + var checkbox = document.getElementById('launchNonNativeFiles-checkbox'); + if (checkbox ) { + checkbox.label = Zotero.getString( + 'zotero.preferences.launchNonNativeFiles', Zotero.appName + ); + } + updateStorageSettings(null, null, true); updateWordProcessorInstructions(); refreshStylesList(); diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 575862bddc..c3f0d5f612 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -117,7 +117,7 @@ To add a new preference: