mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	add translation for ribbon widgets: edited_notes.js
This commit is contained in:
		
							parent
							
								
									d47a5c4ffe
								
							
						
					
					
						commit
						4270ab416e
					
				| @ -3,6 +3,7 @@ import server from "../../services/server.js"; | ||||
| import froca from "../../services/froca.js"; | ||||
| import NoteContextAwareWidget from "../note_context_aware_widget.js"; | ||||
| import options from "../../services/options.js"; | ||||
| import { t } from "../../services/i18n.js"; | ||||
| 
 | ||||
| const TPL = ` | ||||
| <div class="edited-notes-widget"> | ||||
| @ -15,7 +16,7 @@ const TPL = ` | ||||
|         } | ||||
|     </style> | ||||
|      | ||||
|     <div class="no-edited-notes-found">No edited notes on this day yet ...</div> | ||||
|     <div class="no-edited-notes-found">${t("edited_notes.no_edited_notes_found")}</div> | ||||
|      | ||||
|     <div class="edited-notes-list"></div> | ||||
| </div> | ||||
| @ -38,7 +39,7 @@ export default class EditedNotesWidget extends NoteContextAwareWidget { | ||||
|             activate: | ||||
|                 (this.note.getPromotedDefinitionAttributes().length === 0 || !options.is('promotedAttributesOpenInRibbon')) | ||||
|                 && options.is('editedNotesOpenInRibbon'), | ||||
|             title: 'Edited Notes', | ||||
|             title: t("edited_notes.title"), | ||||
|             icon: 'bx bx-calendar-edit' | ||||
|         }; | ||||
|     } | ||||
| @ -72,7 +73,7 @@ export default class EditedNotesWidget extends NoteContextAwareWidget { | ||||
|             const $item = $('<span class="edited-note-line">'); | ||||
| 
 | ||||
|             if (editedNote.isDeleted) { | ||||
|                 const title = `${editedNote.title} (deleted)`; | ||||
|                 const title = `${editedNote.title} ${t("edited_notes.deleted")}`; | ||||
|                 $item.append( | ||||
|                     $("<i>") | ||||
|                         .text(title) | ||||
|  | ||||
| @ -672,5 +672,10 @@ | ||||
|         "expand": "展开", | ||||
|         "book_properties": "书籍属性", | ||||
|         "invalid_view_type": "无效的查看类型 '{{type}}'" | ||||
|     }, | ||||
|     "edited_notes": { | ||||
|         "no_edited_notes_found": "今天还没有编辑过的笔记...", | ||||
|         "title": "编辑过的笔记", | ||||
|         "deleted": "(已删除)" | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -673,5 +673,10 @@ | ||||
|         "expand": "Expand", | ||||
|         "book_properties": "Book Properties", | ||||
|         "invalid_view_type": "Invalid view type '{{type}}'" | ||||
|     }, | ||||
|     "edited_notes": { | ||||
|         "no_edited_notes_found": "No edited notes on this day yet ...", | ||||
|         "title": "Edited Notes", | ||||
|         "deleted": "(deleted)" | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nriver
						Nriver