VRAI bug (que tu as raison de souligner, j'aurais pas dû revert) : la fonction applySelectionFromMessage rejetait TOUT message si pageUrl n'était pas encore settée, ou si les URLs différaient sur un trailing slash / fragment / query. Et pageUrl se populate de façon async via chrome.tabs.query dans refreshPageContext — donc le premier SELECTION_CHANGED arrivait avant pageUrl, était rejeté, et la sélection n'était jamais appliquée. Fixes dans sidepanel.js : - applySelectionFromMessage : si pageUrl vide, on amorce depuis le message (pageUrl, pageTitle, pageDomain, pageFavicon). Sans ce fallback, le bouton « Clipper la sélection » n'apparaît jamais. - Comparaison d'URL tolérante (origin + pathname, sans trailing slash, hash, query). - refreshPageContext : ne pas marquer tab?.url undefined comme restricted. Version bumpée 0.4.1 → 0.4.2 (à chaque livraison comme demandé).
194 lines
4.3 KiB
JSON
194 lines
4.3 KiB
JSON
{
|
|
"extName": {
|
|
"message": "Memento Web Clipper"
|
|
},
|
|
"extDescription": {
|
|
"message": "Capture web pages and highlighted text into your Memento notebooks — connects to your own Memento server."
|
|
},
|
|
"extActionTitle": {
|
|
"message": "Clip to Memento"
|
|
},
|
|
"webClipper": {
|
|
"message": "Web Clipper"
|
|
},
|
|
"connected": {
|
|
"message": "Connected"
|
|
},
|
|
"disconnected": {
|
|
"message": "Not connected"
|
|
},
|
|
"instanceSettings": {
|
|
"message": "Memento URL"
|
|
},
|
|
"instanceUrlLabel": {
|
|
"message": "Your Memento instance URL"
|
|
},
|
|
"presetProduction": {
|
|
"message": "Production preset · memento-note.com"
|
|
},
|
|
"applyReconnect": {
|
|
"message": "Apply and reconnect"
|
|
},
|
|
"openMomento": {
|
|
"message": "Open Memento"
|
|
},
|
|
"settingsHint": {
|
|
"message": "Paste the HTTPS (or LAN) URL of your Memento server. Cookies in this browser handle sign-in."
|
|
},
|
|
"footerVersion": {
|
|
"message": "Memento Web Clipper 0.4.2"
|
|
},
|
|
"errPermissionDenied": {
|
|
"message": "Memento can't access this tab. Check keyboard/site extension permissions — or open the Side Panel."
|
|
},
|
|
"notebookUnnamed": {
|
|
"message": "Untitled notebook"
|
|
},
|
|
"noNotebooks": {
|
|
"message": "No notebooks yet"
|
|
},
|
|
"readingTimeOne": {
|
|
"message": "~1 minute read"
|
|
},
|
|
"readingTimeOther": {
|
|
"message": "Approx. $COUNT$ min read",
|
|
"placeholders": {
|
|
"COUNT": {
|
|
"content": "$1",
|
|
"example": "5"
|
|
}
|
|
}
|
|
},
|
|
"selectionDetected": {
|
|
"message": "Selection detected"
|
|
},
|
|
"ignore": {
|
|
"message": "ignore"
|
|
},
|
|
"selectionHint": {
|
|
"message": "Tip: highlight text on the page to clip a precise selection as a note."
|
|
},
|
|
"clipSelection": {
|
|
"message": "Clip selection"
|
|
},
|
|
"clipPage": {
|
|
"message": "Clip this page"
|
|
},
|
|
"saveLinkOnly": {
|
|
"message": "Save link only"
|
|
},
|
|
"pageNotAccessible": {
|
|
"message": "Can't clip here — this page blocks extension access."
|
|
},
|
|
"errLoginRequired": {
|
|
"message": "Please sign in to Memento in this browser first."
|
|
},
|
|
"errLoadNotebooks": {
|
|
"message": "Could not load notebooks. Try reconnecting."
|
|
},
|
|
"notebooksLoaded": {
|
|
"message": "Notebooks loaded"
|
|
},
|
|
"connecting": {
|
|
"message": "Connecting…"
|
|
},
|
|
"connectedToUrl": {
|
|
"message": "Connected to $URL$",
|
|
"placeholders": {
|
|
"URL": {
|
|
"content": "$1",
|
|
"example": "https://memento-note.com"
|
|
}
|
|
}
|
|
},
|
|
"restrictedPage": {
|
|
"message": "Restricted page — clip via the Memento toolbar or Side Panel."
|
|
},
|
|
"destinationNotebook": {
|
|
"message": "Destination notebook"
|
|
},
|
|
"activePage": {
|
|
"message": "Active page"
|
|
},
|
|
"previewBeforeSave": {
|
|
"message": "Review before saving"
|
|
},
|
|
"noteTitleLabel": {
|
|
"message": "Title"
|
|
},
|
|
"excerptLabel": {
|
|
"message": "Excerpt"
|
|
},
|
|
"saveToMomento": {
|
|
"message": "Save to Memento"
|
|
},
|
|
"back": {
|
|
"message": "Back"
|
|
},
|
|
"analyzingSource": {
|
|
"message": "Analyzing source"
|
|
},
|
|
"statusAnalyzing": {
|
|
"message": "Analyzing…"
|
|
},
|
|
"statusSaving": {
|
|
"message": "Saving…"
|
|
},
|
|
"processingDetail": {
|
|
"message": "Generating tags, a semantic summary, and embeddings."
|
|
},
|
|
"noteSaved": {
|
|
"message": "Note saved"
|
|
},
|
|
"sentToNotebook": {
|
|
"message": "Saved to $NOTEBOOK$",
|
|
"placeholders": {
|
|
"NOTEBOOK": {
|
|
"content": "$1",
|
|
"example": "Read later"
|
|
}
|
|
}
|
|
},
|
|
"viewInMomento": {
|
|
"message": "View in Memento"
|
|
},
|
|
"clipAnother": {
|
|
"message": "Clip another page"
|
|
},
|
|
"failure": {
|
|
"message": "Could not complete"
|
|
},
|
|
"genericError": {
|
|
"message": "Something went wrong reaching your Memento instance."
|
|
},
|
|
"retry": {
|
|
"message": "Retry"
|
|
},
|
|
"errNoSelection": {
|
|
"message": "Select text first, or clip the full page."
|
|
},
|
|
"errAnalyzeFailed": {
|
|
"message": "Could not analyze this page."
|
|
},
|
|
"errSaveFailed": {
|
|
"message": "Could not save your note."
|
|
},
|
|
"errNetwork": {
|
|
"message": "Network issue — check your connection and Memento URL."
|
|
},
|
|
"bannerPickText": {
|
|
"message": "Highlight text on the page, or clip the whole page."
|
|
},
|
|
"errLoginHintUrl": {
|
|
"message": "Connected to: $URL$",
|
|
"placeholders": {
|
|
"URL": {
|
|
"content": "$1"
|
|
}
|
|
}
|
|
},
|
|
"bannerDismiss": {
|
|
"message": "Dismiss"
|
|
}
|
|
}
|