add additional strings for settings\filters
This commit is contained in:
		
							parent
							
								
									6545f830f0
								
							
						
					
					
						commit
						8cc2f02829
					
				
					 2 changed files with 200 additions and 191 deletions
				
			
		|  | @ -1,192 +1,201 @@ | ||||||
| { | { | ||||||
|   "extension_name": { | 	"extension_name": { | ||||||
|     "message": "ShopAI", | 		"message": "ShopAI", | ||||||
|     "description": "Extension name" | 		"description": "Extension name" | ||||||
|   }, | 	}, | ||||||
|   "extension_description": { | 	"extension_description": { | ||||||
|     "message": "Shop wisely with AI!", | 		"message": "Shop wisely with AI!", | ||||||
|     "description": "Extension description" | 		"description": "Extension description" | ||||||
|   }, | 	}, | ||||||
|   "extension_version": { | 	"extension_version": { | ||||||
|     "message": "The Story Begins", | 		"message": "The Story Begins", | ||||||
|     "description": "Extension version name (not number)" | 		"description": "Extension version name (not number)" | ||||||
|   }, | 	}, | ||||||
|   "GUI_welcome_headline": { | 	"GUI_welcome_headline": { | ||||||
|     "message": "Welcome to ShopAI!", | 		"message": "Welcome to ShopAI!", | ||||||
|     "description": "Welcome message" | 		"description": "Welcome message" | ||||||
|   }, | 	}, | ||||||
|   "GUI_welcome_version": { | 	"GUI_welcome_version": { | ||||||
|     "message": "You’ve got version $manifest_version$.", | 		"message": "You’ve got version $manifest_version$.", | ||||||
|     "description": "Version number in welcome message", | 		"description": "Version number in welcome message", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "manifest_version": { | 			"manifest_version": { | ||||||
|         "content": "$1", | 				"content": "$1", | ||||||
|         "description": "The manifest version" | 				"description": "The manifest version" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "GUI_status_version": { | 	"GUI_status_version": { | ||||||
|     "message": "V$manifest_version$", | 		"message": "V$manifest_version$", | ||||||
|     "description": "Version number in status bars", | 		"description": "Version number in status bars", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "manifest_version": { | 			"manifest_version": { | ||||||
|         "content": "$1", | 				"content": "$1", | ||||||
|         "description": "The manifest version" | 				"description": "The manifest version" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "GUI_credits_0": { | 	"GUI_credits_0": { | ||||||
|     "message": "Made with love.", | 		"message": "Made with love.", | ||||||
|     "description": "credits #0" | 		"description": "credits #0" | ||||||
|   }, | 	}, | ||||||
|   "GUI_alert_confirm_action_text": { | 	"GUI_alert_confirm_action_text": { | ||||||
|     "message": "Are you sure you would want to do this?", | 		"message": "Are you sure you would want to do this?", | ||||||
|     "description": "confirm user's dangerous action" | 		"description": "confirm user's dangerous action" | ||||||
|   }, | 	}, | ||||||
|   "GUI_title_preferences": { | 	"GUI_title_preferences": { | ||||||
|     "message": "ShopAI Settings", | 		"message": "ShopAI Settings", | ||||||
|     "description": "Welcome message" | 		"description": "Welcome message" | ||||||
|   }, | 	}, | ||||||
|   "term_preferences": { | 	"term_preferences": { | ||||||
|     "message": "Settings" | 		"message": "Settings" | ||||||
|   }, | 	}, | ||||||
|   "term_about": { | 	"term_about": { | ||||||
|     "message": "About" | 		"message": "About" | ||||||
|   }, | 	}, | ||||||
|   "term_filters": { | 	"term_filters": { | ||||||
|     "message": "Filters" | 		"message": "Filters" | ||||||
|   }, | 	}, | ||||||
|   "term_apply": { | 	"term_apply": { | ||||||
|     "message": "Apply" | 		"message": "Apply" | ||||||
|   }, | 	}, | ||||||
|   "term_cancel": { | 	"term_cancel": { | ||||||
|     "message": "Cancel" | 		"message": "Cancel" | ||||||
|   }, | 	}, | ||||||
|   "term_general": { | 	"term_general": { | ||||||
|     "message": "General" | 		"message": "General" | ||||||
|   }, | 	}, | ||||||
|   "term_storage": { | 	"term_storage": { | ||||||
|     "message": "Storage" | 		"message": "Storage" | ||||||
|   }, | 	}, | ||||||
|   "term_help": { | 	"term_help": { | ||||||
|     "message": "Help" | 		"message": "Help" | ||||||
|   }, | 	}, | ||||||
|   "term_behavior": { | 	"term_behavior": { | ||||||
|     "message": "Behaviour" | 		"message": "Behaviour" | ||||||
|   }, | 	}, | ||||||
|   "term_analysis": { | 	"term_analysis": { | ||||||
|     "message": "Analysis" | 		"message": "Analysis" | ||||||
|   }, | 	}, | ||||||
|   "term_API_Key": { | 	"term_API_Key": { | ||||||
|     "message": "API Key" | 		"message": "API Key" | ||||||
|   }, | 	}, | ||||||
|  | 	"term_enable": { | ||||||
|  | 		"message": "Enable" | ||||||
|  | 	}, | ||||||
| 
 | 
 | ||||||
|   "settings_general_showApplicable": { | 	"settings_general_showApplicable": { | ||||||
|     "message": "Show product's ratings in this extension's icon" | 		"message": "Show product's ratings in this extension's icon" | ||||||
|   }, | 	}, | ||||||
|   "settings_general_injectToPage": { | 	"settings_general_injectToPage": { | ||||||
|     "message": "Inject a quick access button" | 		"message": "Inject a quick access button" | ||||||
|   }, | 	}, | ||||||
|   "settings_behavior_autoRun": { | 	"settings_behavior_autoRun": { | ||||||
|     "message": "Automatically run this extension on a supported page" | 		"message": "Automatically run this extension on a supported page" | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_description": { | 	"settings_filters_description": { | ||||||
|     "message": "Filters help determine the contents of the website before summarizing it." | 		"message": "Filters help determine the contents of the website before summarizing it." | ||||||
|   }, | 	}, | ||||||
|   "settings_storage_description": { | 	"settings_storage_description": { | ||||||
|     "message": "To speed up browsing, ShopAI stores information of the products you have previously visited. This information will be updated whenever the product's information has been changed. " | 		"message": "To speed up browsing, ShopAI stores information of the products you have previously visited. This information will be updated whenever the product's information has been changed. " | ||||||
|   }, | 	}, | ||||||
|   "settings_analysis_description": { | 	"settings_analysis_description": { | ||||||
|     "message": "ShopAI is powered by Google Gemini Pro to summarize the contents of the website and to provide a rating for the products. An API key by Google is required to use this feature. Usage of this feature is subject to Google's Terms and Conditions." | 		"message": "ShopAI is powered by Google Gemini Pro to summarize the contents of the website and to provide a rating for the products. An API key by Google is required to use this feature. Usage of this feature is subject to Google's Terms and Conditions." | ||||||
|   }, | 	}, | ||||||
|   "settings_storage_clear": { | 	"settings_storage_clear": { | ||||||
|     "message": "Empty" | 		"message": "Empty" | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_update": { | 	"settings_filters_update": { | ||||||
|     "message": "Update" | 		"message": "Update" | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_update_status": { | 	"settings_filters_update_status": { | ||||||
|     "message": "Updating the filter at $filter_url$…", | 		"message": "Updating the filter at $filter_url$…", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "filter_url": { | 			"filter_url": { | ||||||
|         "content": "$1" | 				"content": "$1" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_update_status_complete": { | 	"settings_filters_update_status_complete": { | ||||||
|     "message": "Updated the filter at $filter_url$.", | 		"message": "Updated the filter at $filter_url$.", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "filter_url": { | 			"filter_url": { | ||||||
|         "content": "$1" | 				"content": "$1" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_update_status_failure": { | 	"settings_filters_update_status_failure": { | ||||||
|     "message": "Can not update the filter at $filter_url$ due to error $error_message$.", | 		"message": "Can not update the filter at $filter_url$ due to error $error_message$.", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "error_message": { | 			"error_message": { | ||||||
|         "content": "$1" | 				"content": "$1" | ||||||
|       }, | 			}, | ||||||
|       "filter_url": { | 			"filter_url": { | ||||||
|         "content": "$2" | 				"content": "$2" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_search_prompt": { | 	"settings_filters_search_prompt": { | ||||||
|     "message": "Search" | 		"message": "Search" | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_update_stop": { | 	"settings_filters_update_stop": { | ||||||
|     "message": "No filters were updated as none were available." | 		"message": "No filters were updated as none were available." | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_open": { | 	"settings_filters_open": { | ||||||
|     "message": "Edit" | 		"message": "Edit" | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_add_one": { | 	"settings_filters_add_one": { | ||||||
|     "message": "Add the current source." | 		"message": "Add the current source." | ||||||
|   }, | 	}, | ||||||
|   "settings_filters_add_prompt": { | 	"settings_filters_add_prompt": { | ||||||
|     "message": "Enter the URL of the source to add." | 		"message": "Enter the URL of the source to add." | ||||||
|   }, | 	}, | ||||||
|  | 	"settings_filters_source_prompt": { | ||||||
|  | 		"message": "Source or Local Name" | ||||||
|  | 	}, | ||||||
|  | 	"settings_filters_content": { | ||||||
|  | 		"message": "Filter Contents" | ||||||
|  | 	}, | ||||||
| 
 | 
 | ||||||
|   "error_msg": { | 	"error_msg": { | ||||||
|     "message": "$error_code$: $error_msg$ \n$error_trace$", | 		"message": "$error_code$: $error_msg$ \n$error_trace$", | ||||||
|     "description": "The error message template", | 		"description": "The error message template", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "error_code": { | 			"error_code": { | ||||||
|         "content": "$1", | 				"content": "$1", | ||||||
|         "description": "The error code" | 				"description": "The error code" | ||||||
|       }, | 			}, | ||||||
|       "error_msg": { | 			"error_msg": { | ||||||
|         "content": "$2", | 				"content": "$2", | ||||||
|         "description": "The error message" | 				"description": "The error message" | ||||||
|       },  | 			},  | ||||||
| 	  "error_trace": { | 		"error_trace": { | ||||||
|         "content": "$3", | 				"content": "$3", | ||||||
|         "description": "The error trace" | 				"description": "The error trace" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "error_msg_GUI": { | 	"error_msg_GUI": { | ||||||
|     "message": "Unfortunately, an exception of type $error_code$ has occured. Click OK to terminate the script.", | 		"message": "Unfortunately, an exception of type $error_code$ has occured. Click OK to terminate the script.", | ||||||
|     "description": "The error message template for a full graphical UI", | 		"description": "The error message template for a full graphical UI", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "error_code": { | 			"error_code": { | ||||||
|         "content": "$1", | 				"content": "$1", | ||||||
|         "description": "The error code" | 				"description": "The error code" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "error_msg_fileNotFound": { | 	"error_msg_fileNotFound": { | ||||||
|     "message": "Could not find the file $file_path$.", | 		"message": "Could not find the file $file_path$.", | ||||||
|     "description": "The error message template for a file not found exception", | 		"description": "The error message template for a file not found exception", | ||||||
|     "placeholders": { | 		"placeholders": { | ||||||
|       "file_path": { | 			"file_path": { | ||||||
|         "content": "$1", | 				"content": "$1", | ||||||
|         "description": "The file path" | 				"description": "The file path" | ||||||
|       } | 			} | ||||||
|     } | 		} | ||||||
|   }, | 	}, | ||||||
|   "error_msg_notJSON": { | 	"error_msg_notJSON": { | ||||||
|     "message": "The file has been downloaded, but it is not the correct file type." | 		"message": "The file has been downloaded, but it is not the correct file type." | ||||||
|   } | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -55,11 +55,11 @@ | ||||||
| 						</ul> | 						</ul> | ||||||
| 						<div class="input-field"> | 						<div class="input-field"> | ||||||
| 							<input type="url" class="validate" placeholder=" "> | 							<input type="url" class="validate" placeholder=" "> | ||||||
| 							<label>Source or Local Name</label> | 							<label for="settings_filters_source_prompt"></label> | ||||||
| 						</div> | 						</div> | ||||||
| 						<div class="input-field"> | 						<div class="input-field"> | ||||||
| 							<textarea class="validate" placeholder=" "></textarea> | 							<textarea class="validate" type="code" placeholder=" "></textarea> | ||||||
| 							<label>Filter Content</label> | 							<label for="settings_filters_content"></label> | ||||||
| 						</div> | 						</div> | ||||||
| 					</fieldset> | 					</fieldset> | ||||||
|             </section> |             </section> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue