mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	add translation for buttons: edit button
This commit is contained in:
		
							parent
							
								
									75e8a6cdc0
								
							
						
					
					
						commit
						d84f4387c5
					
				| @ -2,6 +2,7 @@ import OnClickButtonWidget from "./onclick_button.js"; | ||||
| import appContext from "../../components/app_context.js"; | ||||
| import attributeService from "../../services/attributes.js"; | ||||
| import protectedSessionHolder from "../../services/protected_session_holder.js"; | ||||
| import { t } from "../../services/i18n.js"; | ||||
| 
 | ||||
| export default class EditButton extends OnClickButtonWidget { | ||||
|     isEnabled() { | ||||
| @ -14,7 +15,7 @@ export default class EditButton extends OnClickButtonWidget { | ||||
|         super(); | ||||
| 
 | ||||
|         this.icon("bx-edit-alt") | ||||
|             .title("Edit this note") | ||||
|             .title(t("edit_button.edit_this_note")) | ||||
|             .titlePlacement("bottom") | ||||
|             .onClick(widget => { | ||||
|                 this.noteContext.viewScope.readOnlyTemporarilyDisabled = true; | ||||
|  | ||||
| @ -555,5 +555,8 @@ | ||||
|     }, | ||||
|     "create_pane_button": { | ||||
|         "create_new_split": "拆分面板" | ||||
|     }, | ||||
|     "edit_button": { | ||||
|         "edit_this_note": "编辑此笔记" | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -556,5 +556,8 @@ | ||||
|     }, | ||||
|     "create_pane_button": { | ||||
|         "create_new_split": "Create new split" | ||||
|     }, | ||||
|     "edit_button": { | ||||
|         "edit_this_note": "Edit this note" | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nriver
						Nriver