mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 01:36:24 +01:00 
			
		
		
		
	chore(i18n): translate "Note has been deleted"
This commit is contained in:
		| @@ -6,6 +6,7 @@ import attributeRenderer from "./attribute_renderer.js"; | |||||||
| import contentRenderer from "./content_renderer.js"; | import contentRenderer from "./content_renderer.js"; | ||||||
| import appContext from "../components/app_context.js"; | import appContext from "../components/app_context.js"; | ||||||
| import FNote from "../entities/fnote.js"; | import FNote from "../entities/fnote.js"; | ||||||
|  | import { t } from "./i18n.js"; | ||||||
|  |  | ||||||
| function setupGlobalTooltip() { | function setupGlobalTooltip() { | ||||||
|     $(document).on("mouseenter", "a", mouseEnterHandler); |     $(document).on("mouseenter", "a", mouseEnterHandler); | ||||||
| @@ -118,7 +119,7 @@ async function mouseEnterHandler(this: HTMLElement) { | |||||||
|  |  | ||||||
| async function renderTooltip(note: FNote | null) { | async function renderTooltip(note: FNote | null) { | ||||||
|     if (!note) { |     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; |     const hoistedNoteId = appContext.tabManager.getActiveContext()?.hoistedNoteId; | ||||||
|   | |||||||
| @@ -253,7 +253,6 @@ export default class HighlightsListWidget extends RightPanelWidget { | |||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             console.log(subHtml); |  | ||||||
|             if (prevEndIndex !== -1 && startIndex === prevEndIndex) { |             if (prevEndIndex !== -1 && startIndex === prevEndIndex) { | ||||||
|                 // If the previous element is connected to this element in HTML, then concatenate them into one. |                 // If the previous element is connected to this element in HTML, then concatenate them into one. | ||||||
|                 $highlightsList.children().last().append(subHtml); |                 $highlightsList.children().last().append(subHtml); | ||||||
|   | |||||||
| @@ -1620,5 +1620,8 @@ | |||||||
|     "clear-text-field": "Clear text field", |     "clear-text-field": "Clear text field", | ||||||
|     "show-recent-notes": "Show recent notes", |     "show-recent-notes": "Show recent notes", | ||||||
|     "full-text-search": "Full text search" |     "full-text-search": "Full text search" | ||||||
|  |   }, | ||||||
|  |   "note_tooltip": { | ||||||
|  |     "note-has-been-deleted": "Note has been deleted." | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -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.", |     "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", |     "restart-app-button": "Restartează aplicația pentru a aplica setările", | ||||||
|     "zoom-factor": "Factor de zoom" |     "zoom-factor": "Factor de zoom" | ||||||
|  |   }, | ||||||
|  |   "note_tooltip": { | ||||||
|  |     "note-has-been-deleted": "Notița a fost ștearsă." | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user