Skip to content

Commit

Permalink
Try (and fail) to fix citations pane title
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic-DallOsto committed Aug 20, 2024
1 parent ddfc16e commit 9cb2ac2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cita/zoteroOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,11 @@ class ZoteroOverlay {
paneID: "zotero-editpane-citations-tab",
pluginID: config.addonID,
header: {
l10nID: getLocaleID("wikicite-citations-pane"),
l10nID: getLocaleID("wikicite_citations-pane_label"),
icon: `chrome://${config.addonRef}/content/skin/default/cita-small.svg`,
},
sidenav: {
l10nID: getLocaleID("wikicite-citations-pane"),
l10nID: getLocaleID("wikicite_citations-pane_tooltip"),
icon: `chrome://${config.addonRef}/content/skin/default/cita-small.svg`,
},
bodyXHTML: `<html:div id="citations-box-container" xmlns:html="http://www.w3.org/1999/xhtml"></html:div>`,
Expand Down
1 change: 1 addition & 0 deletions static/chrome/locale/en-US/wikicite.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ wikicite.citations-pane.linked.confirm.message = This citation is linked to item
wikicite.citations-pane.linked.confirm.title = Linked citation
wikicite.citations-pane.linked.confirm.unlink = Unlink
wikicite.citations-pane.more = More...
wikicite.citations-pane.tooltip = Citations
wikicite.crossref.get-citations.unsupported = Getting citations from Crossref not yet supported
wikicite.editor.cancel = Cancel
wikicite.editor.save = Save
Expand Down
12 changes: 12 additions & 0 deletions zotero-plugin.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ export default defineConfig({
from: /wikicite_prefs_citation-storage-(note|extra)=/g,
to: "$&\n .label=",
});
// add .label tag for citation pane label
replaceInFileSync({
files: localePath + "/**/*.ftl",
from: /citations-pane_label =/g,
to: "$&\n .label=",
});
// add .tooltip tags for citation pane tooltip
replaceInFileSync({
files: localePath + "/**/*.ftl",
from: /citations-pane_tooltip =/g,
to: "$&\n .tooltip=",
});

// Copy local citations network
mkdirSync("build/addon/chrome/content/Local-Citation-Network/");
Expand Down

1 comment on commit 9cb2ac2

@diegodlh
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7033ea2

Please sign in to comment.