chore(i18n): translate "Note has been deleted"

This commit is contained in:
Elian Doran 2025-01-07 12:44:30 +02:00
parent 1dcc839bab
commit ab9769c93b
No known key found for this signature in database
4 changed files with 9 additions and 3 deletions

View File

@ -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 '<div>Note has been deleted.</div>';
return `<div>${t("note_tooltip.note-has-been-deleted")}</div>`;
}
const hoistedNoteId = appContext.tabManager.getActiveContext()?.hoistedNoteId;

View File

@ -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);

View File

@ -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."
}
}

View File

@ -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ă."
}
}