diff --git a/chrome.manifest b/chrome.manifest index d65aacb54..5063f2d5f 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -5,10 +5,11 @@ locale zotero af-ZA chrome/locale/af-ZA/zotero/ locale zotero ar chrome/locale/ar/zotero/ locale zotero bg-BG chrome/locale/bg-BG/zotero/ locale zotero ca-AD chrome/locale/ca-AD/zotero/ +locale zotero cs-CZ chrome/locale/cs-CZ/zotero/ locale zotero da-DK chrome/locale/da-DK/zotero/ locale zotero de-AT chrome/locale/de-AT/zotero/ locale zotero de-CH chrome/locale/de-CH/zotero/ -locale zotero de-DE chrome/locale/de-DE/zotero/ +locale zotero de chrome/locale/de/zotero/ locale zotero el-GR chrome/locale/el-GR/zotero/ locale zotero es-ES chrome/locale/es-ES/zotero/ locale zotero et-EE chrome/locale/et-EE/zotero/ @@ -30,6 +31,7 @@ locale zotero ru-RU chrome/locale/ru-RU/zotero/ locale zotero sr-YU chrome/locale/sr-YU/zotero/ locale zotero sv-SE chrome/locale/sv-SE/zotero/ locale zotero tr-TR chrome/locale/tr-TR/zotero/ +locale zotero vi-VN chrome/locale/vi-VN/zotero/ locale zotero zh-CN chrome/locale/zh-CN/zotero/ locale zotero zh-TW chrome/locale/zh-TW/zotero/ diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index d2f9bb478..52115d559 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -105,6 +105,7 @@ var Zotero_Browser = new function() { Zotero_Browser._scrapePopupShowing = false; Zotero.Ingester.ProxyMonitor.init(); Zotero.Ingester.MIMEHandler.init(); + Zotero.Cite.MIMEHandler.init(); Zotero.Translate.init(); window.addEventListener("load", @@ -623,15 +624,25 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) { * Attempts import of a file; to be run on local files only */ Zotero_Browser.Tab.prototype._attemptLocalFileImport = function(doc) { - var file = Components.classes["@mozilla.org/network/protocol;1?name=file"] - .getService(Components.interfaces.nsIFileProtocolHandler) - .getFileFromURLSpec(doc.documentURI); - - var me = this; - var translate = new Zotero.Translate("import"); - translate.setLocation(file); - translate.setHandler("translators", function(obj, item) { me._translatorsAvailable(obj, item) }); - translate.getTranslators(); + if(doc.documentURI.substr(doc.documentURI.length-4).toLowerCase() == ".csl") { + // read CSL string + var csl = Zotero.File.getContentsFromURL(doc.documentURI); + if(csl.indexOf("http://purl.org/net/xbiblio/csl") != -1) { + // looks like a CSL; try to import + Zotero.Cite.installStyle(csl, doc.documentURI); + } + } else { + // see if we can import this file + var file = Components.classes["@mozilla.org/network/protocol;1?name=file"] + .getService(Components.interfaces.nsIFileProtocolHandler) + .getFileFromURLSpec(doc.documentURI); + + var me = this; + var translate = new Zotero.Translate("import"); + translate.setLocation(file); + translate.setHandler("translators", function(obj, item) { me._translatorsAvailable(obj, item) }); + translate.getTranslators(); + } } /* diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index 9ad0e748b..80aef680a 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -1167,7 +1167,7 @@ var ZoteroItemPane = new function() switch (event.keyCode) { case event.DOM_VK_RETURN: - // Prevent blur on textbox above + // Prevent blur on containing textbox event.preventDefault(); var fieldname = target.getAttribute('fieldname'); diff --git a/chrome/content/zotero/locale/csl/locales-af-ZA.xml b/chrome/content/zotero/locale/csl/locales-af-ZA.xml new file mode 100644 index 000000000..2488c5659 --- /dev/null +++ b/chrome/content/zotero/locale/csl/locales-af-ZA.xml @@ -0,0 +1,147 @@ + + + + at + in + ibid + toegang verkry + opgehaal + van + voorhande + Verwysings + n.d. + en + et al. + + book + books + + + chapter + chapters + + + column + columns + + + figure + figures + + + folio + folios + + + number + numbers + + + reël + reëls + + + note + notes + + + opus + opera + + + bladsy + bladsye + + + paragraaf + paragrawe + + + part + parts + + + section + sections + + + volume + volumes + + + verse + verses + + bk + chap + col + fig + f + no + op + + bl + bll + + para + pt + sec + + v + vv + + vol + + + ¶¶ + + + § + §§ + + + redakteur + redakteurs + + + vertaler + vertalers + + + red + reds + + + vert + verts + + onder redaksie van + vertaal deur + red + verts + Januarie + Februarie + Maart + April + Mei + Junie + Julie + Augustus + September + Oktober + November + Desember + Jan + Feb + Mrt + Apr + Mei + Jun + Jul + Aug + Sep + Okt + Nov + Des + + diff --git a/chrome/content/zotero/locale/csl/locales-ar.xml b/chrome/content/zotero/locale/csl/locales-ar-AR.xml similarity index 100% rename from chrome/content/zotero/locale/csl/locales-ar.xml rename to chrome/content/zotero/locale/csl/locales-ar-AR.xml diff --git a/chrome/content/zotero/locale/csl/locales-bg-BG.xml b/chrome/content/zotero/locale/csl/locales-bg-BG.xml index 1b6b11544..16aaf4346 100644 --- a/chrome/content/zotero/locale/csl/locales-bg-BG.xml +++ b/chrome/content/zotero/locale/csl/locales-bg-BG.xml @@ -1,7 +1,7 @@ - at + в в пак там отворен на @@ -13,40 +13,40 @@ и и съавт. - book - books + книга + книги - chapter - chapters + глава + глави - column - columns + колона + колони - figure - figures + фигура + фигури - folio - folios + фолио + фолия - number - numbers + брой + броеве ред редове - note - notes + бележка + бележки - opus - opera + опус + опуси страница @@ -57,38 +57,38 @@ параграфи - part - parts + част + части - section - sections + раздел + раздели - volume - volumes + том + томове - verse - verses + стих + стихове - bk - chap - col - fig - f - бр. - op + кн + гл + кол + фиг + фол + бр + оп - с. + с с-ци - para - pt - sec + п + ч + разд - v - vv + ст + ст-ове т. diff --git a/chrome/content/zotero/locale/csl/locales-cs-CZ.xml b/chrome/content/zotero/locale/csl/locales-cs-CZ.xml new file mode 100644 index 000000000..987d35036 --- /dev/null +++ b/chrome/content/zotero/locale/csl/locales-cs-CZ.xml @@ -0,0 +1,165 @@ + + + + at + in + ibid + accessed + retrieved + from + forthcoming + references + n.d. + and + et al. + + + + book + books + + + chapter + chapters + + + column + columns + + + figure + figures + + + folio + folios + + + number + numbers + + + line + lines + + + note + notes + + + opus + opera + + + page + pages + + + paragraph + paragraph + + + part + parts + + + section + sections + + + volume + volumes + + + verse + verses + + + + bk + chap + col + fig + f + no + op + + p + pp + + para + pt + sec + + v + vv + + vol + + + + + ¶¶ + + + § + §§ + + + + + editor + editors + + + translator + translators + + + + + ed + eds + + + tran + trans + + + + edited by + translated by + + + ed + trans + + + January + February + March + April + May + June + July + August + September + October + November + December + + + Jan + Feb + Mar + Apr + May + Jun + Jul + Aug + Sep + Oct + Nov + Dec + + \ No newline at end of file diff --git a/chrome/content/zotero/locale/csl/locales-de-DE.xml b/chrome/content/zotero/locale/csl/locales-de-DE.xml index 8f24cb0a3..90b3fa8d3 100644 --- a/chrome/content/zotero/locale/csl/locales-de-DE.xml +++ b/chrome/content/zotero/locale/csl/locales-de-DE.xml @@ -1,52 +1,52 @@ - at + auf in ebd. zugegriffen abgerufen von - i.E. + i. E. Quellenangabe - o.J. + o. J. und - u.a. + u. a. - book - books + Buch + Bücher - chapter - chapters + Kapitel + Kapitel - column - columns + Spalte + Spalten - figure - figures + Abbildung + Abbildungen - folio - folios + Blatt + Blätter - number - numbers + Nummer + Nummern Zeile Zeilen - note - notes + Note + Noten - opus - opera + Opus + Opera Seite @@ -57,38 +57,38 @@ Absätze - part - parts + Teil + Teile - section - sections + Abschnitt + Abschnitte - volume - volumes + Band + Bände - verse - verses + Vers + Verse - bk - chap - col - fig - f - Nr. + B + Kap + Sp + Abb + Fol + Nr op S. S. - para - pt - sec + Abs + Teil + Abschn - v - vv + V + Vv Bd. @@ -115,10 +115,10 @@ Übers. Übers. - Hg. v. - Übers. v. - ed - trans + herausgegeben von + übersetzt von + hg. v. + übers. v. Januar Februar März diff --git a/chrome/content/zotero/locale/csl/locales-el-GR.xml b/chrome/content/zotero/locale/csl/locales-el-GR.xml index 987d35036..e96d5963e 100644 --- a/chrome/content/zotero/locale/csl/locales-el-GR.xml +++ b/chrome/content/zotero/locale/csl/locales-el-GR.xml @@ -1,6 +1,6 @@ - + at in ibid @@ -12,8 +12,6 @@ n.d. and et al. - - book books @@ -74,8 +72,6 @@ verse verses - - bk chap col @@ -95,8 +91,6 @@ vv vol - - ¶¶ @@ -105,8 +99,6 @@ § §§ - - editor editors @@ -115,8 +107,6 @@ translator translators - - ed eds @@ -125,16 +115,10 @@ tran trans - - edited by translated by - - ed trans - - January February March @@ -147,13 +131,11 @@ October November December - - Jan Feb Mar Apr - May + May Jun Jul Aug @@ -162,4 +144,4 @@ Nov Dec - \ No newline at end of file + diff --git a/chrome/content/zotero/locale/csl/locales-en-US.xml b/chrome/content/zotero/locale/csl/locales-en-US.xml index 987d35036..1ffc4f611 100644 --- a/chrome/content/zotero/locale/csl/locales-en-US.xml +++ b/chrome/content/zotero/locale/csl/locales-en-US.xml @@ -12,6 +12,8 @@ n.d. and et al. + interview + letter @@ -129,6 +131,8 @@ edited by translated by + to + interview by ed diff --git a/chrome/content/zotero/locale/csl/locales-et-EE.xml b/chrome/content/zotero/locale/csl/locales-et-EE.xml index 987d35036..2361039a3 100644 --- a/chrome/content/zotero/locale/csl/locales-et-EE.xml +++ b/chrome/content/zotero/locale/csl/locales-et-EE.xml @@ -1,6 +1,6 @@ - + at in ibid @@ -12,8 +12,6 @@ n.d. and et al. - - book books @@ -74,8 +72,6 @@ verse verses - - bk chap col @@ -95,8 +91,6 @@ vv vol - - ¶¶ @@ -105,8 +99,6 @@ § §§ - - editor editors @@ -115,8 +107,6 @@ translator translators - - ed eds @@ -125,16 +115,10 @@ tran trans - - edited by translated by - - ed trans - - January February March @@ -147,13 +131,11 @@ October November December - - Jan Feb Mar Apr - May + May Jun Jul Aug @@ -162,4 +144,4 @@ Nov Dec - \ No newline at end of file + diff --git a/chrome/content/zotero/locale/csl/locales-fr-FR.xml b/chrome/content/zotero/locale/csl/locales-fr-FR.xml index 40b1bad63..a8f0c4c6c 100644 --- a/chrome/content/zotero/locale/csl/locales-fr-FR.xml +++ b/chrome/content/zotero/locale/csl/locales-fr-FR.xml @@ -1,28 +1,28 @@ - at + à dans ibid accédé retrouvé de à venir - Références + références pas de date et et coll. - book - books + livre + livres - chapter - chapters + chapitre + chapitres - column - columns + colonne + colonnes figure @@ -33,8 +33,8 @@ folios - number - numbers + numéro + numéros ligne @@ -46,7 +46,7 @@ opus - opera + opus page @@ -57,8 +57,8 @@ paragraphes - part - parts + partie + parties section @@ -69,10 +69,10 @@ volumes - verse - verses + verset + versets - bk + liv. chap col fig @@ -83,17 +83,17 @@ p pp - para - pt + par. + part. sec v vv - vol + vol. - - ¶¶ + § + §§ § @@ -117,8 +117,8 @@ édité par traduit par - ed - trans + éd + trad Janvier Février Mars diff --git a/chrome/content/zotero/locale/csl/locales-hu-HU.xml b/chrome/content/zotero/locale/csl/locales-hu-HU.xml index b77b99938..5cad5b890 100644 --- a/chrome/content/zotero/locale/csl/locales-hu-HU.xml +++ b/chrome/content/zotero/locale/csl/locales-hu-HU.xml @@ -8,41 +8,41 @@ elérés forrás megjelenés alatt - Hivatkozások + hivatkozások nd és et al. - book - books + könyv + könyv - chapter - chapters + fejezet + fejezet - column - columns + oszlop + oszlop - figure - figures + ábra + ábra - folio - folios + fóliáns + fóliáns - number - numbers + szám + szám sor sor - note - notes + jegyzet + jegyzet opus @@ -57,40 +57,40 @@ bekezdés - part - parts + rész + rész - section - sections + szakasz + szakasz - volume - volumes + kötet + kötet - verse - verses + versszak + versszak - bk - chap - col - fig - f - no + könyv + fej + oszl + ábr + fol + sz op o o - para - pt - sec + bek + rész + szak - v - vv + vsz + vsz - vol + köt ¶¶ diff --git a/chrome/content/zotero/locale/csl/locales-it-IT.xml b/chrome/content/zotero/locale/csl/locales-it-IT.xml index 052709a41..dd149a62e 100644 --- a/chrome/content/zotero/locale/csl/locales-it-IT.xml +++ b/chrome/content/zotero/locale/csl/locales-it-IT.xml @@ -1,91 +1,91 @@ - at + a in ibid consultato recuperato da futuro - Riferimenti + Citazioni bibliografiche S.d. e et al. - book - books + libro + libri - chapter - chapters + capitolo + capitoli - column - columns + colonna + colonne - figure - figures + figura + figure - folio - folios + foglio + fogli - number - numbers + numero + numeri riga righe - note - notes + nota + note - opus - opera + opera + opere pagina pagine + capoverso + capoversi + + + parte + parti + + paragrafo paragrafi - - part - parts - - - section - sections - volume - volumes + volumi - verse - verses + verso + versi - bk - chap - col - fig - f + lib. + cap. + col. + fig. + fgl. - op + op. pag. pagg. - para - pt - sec + cpv. + pt. + par. v vv diff --git a/chrome/content/zotero/locale/csl/locales-mn-MN.xml b/chrome/content/zotero/locale/csl/locales-mn-MN.xml index 987d35036..abc439842 100644 --- a/chrome/content/zotero/locale/csl/locales-mn-MN.xml +++ b/chrome/content/zotero/locale/csl/locales-mn-MN.xml @@ -1,6 +1,6 @@ - + at in ibid @@ -12,8 +12,6 @@ n.d. and et al. - - book books @@ -74,8 +72,6 @@ verse verses - - bk chap col @@ -95,8 +91,6 @@ vv vol - - ¶¶ @@ -105,8 +99,6 @@ § §§ - - editor editors @@ -115,8 +107,6 @@ translator translators - - ed eds @@ -125,16 +115,10 @@ tran trans - - edited by translated by - - ed trans - - January February March @@ -147,13 +131,11 @@ October November December - - Jan Feb Mar Apr - May + May Jun Jul Aug @@ -162,4 +144,4 @@ Nov Dec - \ No newline at end of file + diff --git a/chrome/content/zotero/locale/csl/locales-ro-RO.xml b/chrome/content/zotero/locale/csl/locales-ro-RO.xml index 9bb1476c6..7a9346467 100644 --- a/chrome/content/zotero/locale/csl/locales-ro-RO.xml +++ b/chrome/content/zotero/locale/csl/locales-ro-RO.xml @@ -1,7 +1,7 @@ - at + la în ibidem accesat în @@ -72,7 +72,7 @@ verset versete - car + cart cap col fig @@ -83,8 +83,8 @@ p pp - para - pt + paragr + part sec v @@ -101,47 +101,47 @@ editor - editors + editori - translator - translators + traducător + traducători ed - eds + ed - tran - trans + trad + trad - edited by - translated by + ediţie de + traducere de ed - trans - January - February - March - April - May - June - July - August - September - October - November - December - Jan - Feb - Mar - Apr - May - Jun - Jul - Aug - Sep - Oct - Nov - Dec + trad + ianuarie + februarie + martie + aprilie + mai + iunie + iulie + august + septembrie + octombrie + noiembrie + decembrie + ian + feb + mar + apr + mai + iun + iul + aug + sep + oct + nov + dec diff --git a/chrome/content/zotero/locale/csl/locales-sr-YU.xml b/chrome/content/zotero/locale/csl/locales-sr-YU.xml index d5b7d1c1b..070d6497a 100644 --- a/chrome/content/zotero/locale/csl/locales-sr-YU.xml +++ b/chrome/content/zotero/locale/csl/locales-sr-YU.xml @@ -5,48 +5,48 @@ у ibid приступљено - обновљено + преузето од долазећи - Референце + референце без датума и и остали - book - books + књига + књиге(а) - chapter - chapters + поглавље + поглавља - column - columns + колона + колоне(а) - figure - figures + цртеж + цртежа - folio - folios + фолио + фолиа - number - numbers + број + бројеви линија линије(а) - note - notes + белешка + белешке(и) - opus - opera + опус + опера страница @@ -57,38 +57,38 @@ параграфа(и) - part - parts + део + дела(ова) - section - sections + одељак + одељ(а)ка - volume - volumes + том + тома(ова) - verse - verses + строфа + строфе(а) - bk - chap - col - fig - f + књига + Пог. + кол. + црт. + ф. изд. - op + оп. стр. стр. - para - pt - sec + пар. + део + од. - v - vv + ст. + ст. том @@ -101,11 +101,11 @@ уредник - уредици + уредика(ци) преводилац - преводиоци + преводиоца(и) Ур. @@ -117,8 +117,8 @@ уредио превео - ed - trans + ур. + прев. Јануар Фебруар Март @@ -138,7 +138,7 @@ Мај Јуни Јули - Ауг. + Авг. Сеп. Окт. Нов. diff --git a/chrome/content/zotero/locale/csl/locales-vi-VN.xml b/chrome/content/zotero/locale/csl/locales-vi-VN.xml new file mode 100644 index 000000000..6df9c820f --- /dev/null +++ b/chrome/content/zotero/locale/csl/locales-vi-VN.xml @@ -0,0 +1,147 @@ + + + + at + trong + n.t. + truy cập + truy vấn + từ + sắp tới + tham khảo + không ngày + + và c.s. + + book + books + + + chapter + chapters + + + column + columns + + + figure + figures + + + folio + folios + + + number + numbers + + + dòng + dòng + + + note + notes + + + opus + opera + + + trang + trang + + + đoạn văn + đoạn văn + + + part + parts + + + section + sections + + + volume + volumes + + + verse + verses + + bk + chap + col + fig + f + số p.h. + op + + tr + tr + + para + pt + sec + + v + vv + + tập + + + ¶¶ + + + § + §§ + + + biên tập viên + biên tập viên + + + biên dịch viên + biên dịch viên + + + b.t.v. + b.t.v. + + + b.d.v. + b.d.v. + + biên tập bởi + biên dịch bởi + b.t. + b.d. + Tháng Giêng + Tháng Hai + Tháng Ba + Tháng Tư + Tháng Năm + Tháng Sáu + Tháng Bảy + Tháng Tám + Tháng Chín + Tháng Mười + Tháng Mười-Một + Tháng Chạp + tháng 1 + tháng 2 + tháng 3 + tháng 4 + tháng 5 + tháng 6 + tháng 7 + tháng 8 + tháng 9 + tháng 10 + tháng 11 + tháng 12 + + diff --git a/chrome/content/zotero/locale/csl/locales-zh-TW.xml b/chrome/content/zotero/locale/csl/locales-zh-TW.xml index 82a576471..afb7459fc 100644 --- a/chrome/content/zotero/locale/csl/locales-zh-TW.xml +++ b/chrome/content/zotero/locale/csl/locales-zh-TW.xml @@ -1,7 +1,7 @@ - at + 同上出處 被取用 @@ -13,40 +13,40 @@ 等人 - book - books + + - chapter - chapters + + - column - columns + + - figure - figures + + - folio - folios + 對開紙 + 對開紙 - number - numbers + 期數 + 期數 - note - notes + 筆記 + 筆記 - opus - opera + 作品 + 作品 @@ -57,40 +57,40 @@ 段落 - part - parts + + - section - sections + + - volume - volumes + + - verse - verses + 詩句 + 詩句 - bk - chap - col - fig - f + + + + + - op + - para - pt - sec + + + - v - vv + + - + ¶¶ diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 54c0a8f93..42a09f8ab 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -146,6 +146,9 @@ function populateQuickCopyList() { function buildQuickCopyFormatDropDown(menulist, currentFormat) { + menulist.selectedItem = null; + menulist.removeAllItems(); + // Prevent Cmd-w from setting "Wikipedia" menulist.onkeydown = function (event) { if ((Zotero.isMac && event.metaKey) || event.ctrlKey) { @@ -769,7 +772,26 @@ function runIntegrityCheck() { } -function rebuildTranslators() { +function updateTranslators() { + Zotero.Schema.updateScrapersRemote(true, function (xmlhttp, updated) { + var button = document.getElementById('updateButton'); + if (button) { + if (updated===-1) { + var label = Zotero.getString('zotero.preferences.update.upToDate'); + } + else if (updated) { + var label = Zotero.getString('zotero.preferences.update.updated'); + } + else { + var label = Zotero.getString('zotero.preferences.update.error'); + } + button.setAttribute('label', label); + } + }); +} + + +function resetTranslatorsAndStyles() { var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); @@ -778,9 +800,31 @@ function rebuildTranslators() { var index = ps.confirmEx(null, Zotero.getString('general.warning'), - Zotero.getString('zotero.preferences.advanced.rebuildTranslators.changesLost'), + Zotero.getString('zotero.preferences.advanced.resetTranslatorsAndStyles.changesLost'), buttonFlags, - Zotero.getString('zotero.preferences.advanced.rebuildTranslators.rebuildTable'), + Zotero.getString('zotero.preferences.advanced.resetTranslatorsAndStyles'), + null, null, null, {}); + + if (index == 0) { + Zotero.Schema.rebuildTranslatorsAndStylesTables(function (xmlhttp, updated) { + populateQuickCopyList(); + }); + } +} + + +function resetTranslators() { + var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Components.interfaces.nsIPromptService); + + var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) + + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL); + + var index = ps.confirmEx(null, + Zotero.getString('general.warning'), + Zotero.getString('zotero.preferences.advanced.resetTranslators.changesLost'), + buttonFlags, + Zotero.getString('zotero.preferences.advanced.resetTranslators'), null, null, null, {}); if (index == 0) { @@ -789,6 +833,28 @@ function rebuildTranslators() { } +function resetStyles() { + var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Components.interfaces.nsIPromptService); + + var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) + + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL); + + var index = ps.confirmEx(null, + Zotero.getString('general.warning'), + Zotero.getString('zotero.preferences.advanced.resetStyles.changesLost'), + buttonFlags, + Zotero.getString('zotero.preferences.advanced.resetStyles'), + null, null, null, {}); + + if (index == 0) { + Zotero.Schema.rebuildStylesTable(function (xmlhttp, updated) { + populateQuickCopyList(); + }); + } +} + + function onOpenURLSelected() { var openURLMenu = document.getElementById('openURLMenu'); diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 6550d5d9b..5aef1d7b1 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -114,7 +114,7 @@ To add a new preference: -