mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	i18n: make duplicate notes suffix translatable
This commit is contained in:
		
							parent
							
								
									62696a4e0a
								
							
						
					
					
						commit
						256853a6f8
					
				| @ -923,8 +923,10 @@ function duplicateSubtree(origNoteId: string, newParentNoteId: string) { | |||||||
| 
 | 
 | ||||||
|     const res = duplicateSubtreeInner(origNote, origBranch, newParentNoteId, noteIdMapping); |     const res = duplicateSubtreeInner(origNote, origBranch, newParentNoteId, noteIdMapping); | ||||||
| 
 | 
 | ||||||
|     if (!res.note.title.endsWith('(dup)')) { |     const duplicateNoteSuffix = t("notes.duplicate-note-suffix"); | ||||||
|         res.note.title += " (dup)"; | 
 | ||||||
|  |     if (!res.note.title.endsWith(duplicateNoteSuffix) && !res.note.title.startsWith(duplicateNoteSuffix)) { | ||||||
|  |         res.note.title = t("notes.duplicate-note-title", { noteTitle: res.note.title, duplicateNoteSuffix: duplicateNoteSuffix }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     res.note.save(); |     res.note.save(); | ||||||
|  | |||||||
| @ -242,6 +242,8 @@ | |||||||
|     "visible-launchers-title": "Visible Launchers" |     "visible-launchers-title": "Visible Launchers" | ||||||
|   }, |   }, | ||||||
|   "notes": { |   "notes": { | ||||||
|     "new-note": "New note" |     "new-note": "New note", | ||||||
|  |     "duplicate-note-suffix": "(dup)", | ||||||
|  |     "duplicate-note-title": "{{ noteTitle }} {{ duplicateNoteSuffix }}" | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos