Skip to content

Commit

Permalink
Update menu titles, helptext
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Oct 28, 2020
1 parent bf62c83 commit 6925a74
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
26 changes: 13 additions & 13 deletions add-on/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
"description": "A menu item in Browser Action pop-up (panel_quickImport)"
},
"panel_quickImportTooltip": {
"message": "Import files to IPFS and copy a publicly shareable link to your clipboard",
"message": "Import files to IPFS and copy a publicly shareable link to your clipboard.",
"description": "A menu item tooltip in Browser Action pop-up (panel_quickImportTooltip)"
},
"panel_openWebui": {
"message": "Go to My Node…",
"description": "A menu item in Browser Action pop-up (panel_openWebui)"
},
"panel_openWebuiTooltip": {
"message": "Open your IPFS node's controls in your browser",
"message": "Open your IPFS node's controls in your browser.",
"description": "A menu item in Browser Action pop-up (panel_openWebuiTooltip)"
},
"panel_openPreferences": {
Expand All @@ -76,43 +76,43 @@
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectEnable)"
},
"panel_activeTabSiteIntegrationsToggle": {
"message": "Enable on $1",
"message": "Enable for $1",
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteIntegrationsToggle)"
},
"panel_activeTabSiteIntegrationsToggleTooltip": {
"message": "Enable/disable all IPFS integrations on $1",
"message": "Enable/disable all IPFS integrations on $1.",
"description": "A menu item tooltip in Browser Action pop-up (panel_activeTabSiteIntegrationsToggleTooltip)"
},
"panel_pinCurrentIpfsAddress": {
"message": "Pin IPFS Resource",
"message": "Pin IPFS Resources",
"description": "A menu item in Browser Action pop-up (panel_pinCurrentIpfsAddress)"
},
"panel_pinCurrentIpfsAddressTooltip": {
"message": "Pin this page's IPFS resources to your node to have a local copy that's available offline and never thrown away.",
"description": "A menu item tooltip in Browser Action pop-up (panel_pinCurrentIpfsAddressTooltip)"
},
"panelCopy_currentIpnsAddress": {
"message": "Copy IPNS Content Path",
"message": "Copy Content Path",
"description": "A menu item in Browser Action pop-up and right-click context menu (panelCopy_currentIpnsAddress)"
},
"panelCopy_currentIpnsAddressTooltip": {
"message": "A canonical content path that you can use with IPFS tools and gateways",
"message": "Use this content path with IPFS tools and gateways to reach the most recently updated version of this page.",
"description": "A menu item tooltip in Browser Action pop-up (panelCopy_currentIpnsAddressTooltip)"
},
"panelCopy_currentIpfsAddress": {
"message": "Copy IPFS Content Path",
"message": "Copy Content Path Snapshot",
"description": "A menu item in Browser Action pop-up and right-click context menu (panelCopy_currentIpfsAddress)"
},
"panelCopy_currentIpfsAddressTooltip": {
"message": "A content path that you can use with IPFS tools and gateways",
"message": "Use this content path with IPFS tools and gateways to reach this page at this moment in time. It won't change, even if the content changes later.",
"description": "A menu item tooltip in Browser Action pop-up (panelCopy_currentIpfsAddressTooltip)"
},
"panelCopy_copyRawCid": {
"message": "Copy CID",
"description": "A menu item in Browser Action pop-up and right-click context menu (panelCopy_copyRawCid)"
},
"panelCopy_copyRawCidTooltip": {
"message": "The unique IPFS content identifier for this page",
"message": "The unique IPFS content identifier for this page at this moment in time.",
"description": "A menu item tooltip in Browser Action pop-up (panelCopy_copyRawCidTooltip)"
},
"panelCopy_copyRawCidNotReadyHint": {
Expand All @@ -124,15 +124,15 @@
"description": "A menu item in Browser Action pop-up and right-click context menu (panel_copyCurrentPublicGwUrl)"
},
"panel_copyCurrentPublicGwUrlTooltip": {
"message": "This link works for anyone, even if they don't use IPFS",
"message": "A shareable link that works for anyone, even if they don't use IPFS.",
"description": "A menu item tooltip in Browser Action pop-up (panel_copyCurrentPublicGwUrlTooltip)"
},
"panel_copyCurrentPermalink": {
"message": "Copy Permalink",
"message": "Copy Shareable Snapshot",
"description": "A menu item in Browser Action pop-up (panel_copyCurrentPermalink)"
},
"panel_copyCurrentPermalinkTooltip": {
"message": "An immutable permalink using a content ID and IPFS gateway",
"message": "A shareable link to this page at this moment in time that works for anyone, even if they don't use IPFS. It won't change, even if the content changes later.",
"description": "A menu item tooltip in Browser Action pop-up (panel_copyCurrentPermalinkTooltip)"
},
"panel_contextMenuViewOnGateway": {
Expand Down
18 changes: 9 additions & 9 deletions add-on/src/popup/browser-action/context-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ function contextActions ({
text: browser.i18n.getMessage(contextMenuViewOnGateway),
onClick: () => onViewOnGateway(contextMenuViewOnGateway)
}) : null}
${navItem({
text: browser.i18n.getMessage('panel_pinCurrentIpfsAddress'),
title: browser.i18n.getMessage('panel_pinCurrentIpfsAddressTooltip'),
disabled: !activePinControls,
switchValue: (isPinned || isPinning) && !isUnPinning,
onClick: isPinned ? onUnPin : onPin
})}
${isRedirectContext ? navItem({
text: browser.i18n.getMessage(contextMenuCopyAddressAtPublicGw),
title: browser.i18n.getMessage('panel_copyCurrentPublicGwUrlTooltip'),
Expand All @@ -68,7 +75,7 @@ function contextActions ({
${navItem({
text: browser.i18n.getMessage(contextMenuCopyPermalink),
title: browser.i18n.getMessage('panel_copyCurrentPermalinkTooltip'),
helperText: currentTabPermalink,
helperText: 'foo ' + currentTabPermalink,
onClick: () => onCopy(contextMenuCopyPermalink)
})}
${isRedirectContext ? navItem({
Expand All @@ -80,7 +87,7 @@ function contextActions ({
${navItem({
text: browser.i18n.getMessage(contextMenuCopyCidAddress),
title: browser.i18n.getMessage('panelCopy_currentIpfsAddressTooltip'),
helperText: currentTabImmutablePath,
helperText: 'bar ' + currentTabImmutablePath,
onClick: () => onCopy(contextMenuCopyCidAddress)
})}
${navItem({
Expand All @@ -90,13 +97,6 @@ function contextActions ({
disabled: !activeCidResolver,
onClick: () => onCopy(contextMenuCopyRawCid)
})}
${navItem({
text: browser.i18n.getMessage('panel_pinCurrentIpfsAddress'),
title: browser.i18n.getMessage('panel_pinCurrentIpfsAddressTooltip'),
disabled: !activePinControls,
switchValue: (isPinned || isPinning) && !isUnPinning,
onClick: isPinned ? onUnPin : onPin
})}
</div>
`
}
Expand Down

0 comments on commit 6925a74

Please sign in to comment.