diff --git a/src/public/app/services/note_tooltip.ts b/src/public/app/services/note_tooltip.ts
index be0f2dd80..a879ba987 100644
--- a/src/public/app/services/note_tooltip.ts
+++ b/src/public/app/services/note_tooltip.ts
@@ -6,6 +6,7 @@ import attributeRenderer from "./attribute_renderer.js";
import contentRenderer from "./content_renderer.js";
import appContext from "../components/app_context.js";
import FNote from "../entities/fnote.js";
+import { t } from "./i18n.js";
function setupGlobalTooltip() {
$(document).on("mouseenter", "a", mouseEnterHandler);
@@ -93,7 +94,7 @@ async function mouseEnterHandler(this: HTMLElement) {
cleanUpTooltips();
$(this).tooltip('show');
-
+
// Dismiss the tooltip immediately if a link was clicked inside the tooltip.
$(`.${tooltipClass} a`).on("click", (e) => {
cleanUpTooltips();
@@ -118,7 +119,7 @@ async function mouseEnterHandler(this: HTMLElement) {
async function renderTooltip(note: FNote | null) {
if (!note) {
- return '
Note has been deleted.
';
+ return `${t("note_tooltip.note-has-been-deleted")}
`;
}
const hoistedNoteId = appContext.tabManager.getActiveContext()?.hoistedNoteId;
diff --git a/src/public/app/widgets/highlights_list.ts b/src/public/app/widgets/highlights_list.ts
index 589d54682..403049629 100644
--- a/src/public/app/widgets/highlights_list.ts
+++ b/src/public/app/widgets/highlights_list.ts
@@ -253,7 +253,6 @@ export default class HighlightsListWidget extends RightPanelWidget {
continue;
}
- console.log(subHtml);
if (prevEndIndex !== -1 && startIndex === prevEndIndex) {
// If the previous element is connected to this element in HTML, then concatenate them into one.
$highlightsList.children().last().append(subHtml);
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json
index 5f9f13a68..fc5885a8d 100644
--- a/src/public/translations/en/translation.json
+++ b/src/public/translations/en/translation.json
@@ -1620,5 +1620,8 @@
"clear-text-field": "Clear text field",
"show-recent-notes": "Show recent notes",
"full-text-search": "Full text search"
+ },
+ "note_tooltip": {
+ "note-has-been-deleted": "Note has been deleted."
}
}
diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json
index 1b9356bab..e7e5f5520 100644
--- a/src/public/translations/ro/translation.json
+++ b/src/public/translations/ro/translation.json
@@ -1620,5 +1620,8 @@
"native-title-bar-description": "Pentru Windows și macOS, dezactivarea bării de titlu native face aplicația să pară mai compactă. Pe Linux, păstrarea bării integrează mai bine aplicația cu restul sistemului de operare.",
"restart-app-button": "Restartează aplicația pentru a aplica setările",
"zoom-factor": "Factor de zoom"
+ },
+ "note_tooltip": {
+ "note-has-been-deleted": "Notița a fost ștearsă."
}
}