From b7954a9087bcd3d331fde5ceb3a29eef85fe29fe Mon Sep 17 00:00:00 2001 From: Teddy Gustiaux Date: Sun, 3 Feb 2019 15:12:29 -0500 Subject: [PATCH] feat: add translation capabilities to the manifest --- src/_locales/en/messages.json | 15 +++++++++++++++ src/_locales/fr/messages.json | 15 +++++++++++++++ src/_locales/hu/messages.json | 15 +++++++++++++++ src/_locales/ru/messages.json | 15 +++++++++++++++ src/manifest.json | 10 +++++----- 5 files changed, 65 insertions(+), 5 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 835fc7b..c747960 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -1,4 +1,19 @@ { + "manifest_extension_description": { + "message": "Allows you to choose the default bookmark location folder and quickly bookmark pages there via a dedicated icon." + }, + "manifest_page_action_default_title": { + "message": "The icon is disabled. Enable it in the add-on settings." + }, + "manifest_browser_action_default_title": { + "message": "Quick bookmarking to folder" + }, + "manifest_shortcut_quick_bookmark_description": { + "message": "Shortcut to quickly bookmark the current page." + }, + "manifest_shortcut_browser_action_description": { + "message": "Shortcut to open the quick bookmarking to folder dialog." + }, "icon_remove_bookmark": { "message": "Remove the bookmark(s) for this page" }, diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json index 628f97d..e797aa1 100644 --- a/src/_locales/fr/messages.json +++ b/src/_locales/fr/messages.json @@ -1,4 +1,19 @@ { + "manifest_extension_description": { + "message": "Allows you to choose the default bookmark location folder and quickly bookmark pages there via a dedicated icon." + }, + "manifest_page_action_default_title": { + "message": "The icon is disabled. Enable it in the add-on settings." + }, + "manifest_browser_action_default_title": { + "message": "Quick bookmarking to folder" + }, + "manifest_shortcut_quick_bookmark_description": { + "message": "Shortcut to quickly bookmark the current page." + }, + "manifest_shortcut_browser_action_description": { + "message": "Shortcut to open the quick bookmarking to folder dialog." + }, "icon_remove_bookmark": { "message": "Supprimer le(s) marque-page(s) pour cette page" }, diff --git a/src/_locales/hu/messages.json b/src/_locales/hu/messages.json index 67f1d28..d92378a 100644 --- a/src/_locales/hu/messages.json +++ b/src/_locales/hu/messages.json @@ -1,4 +1,19 @@ { + "manifest_extension_description": { + "message": "Allows you to choose the default bookmark location folder and quickly bookmark pages there via a dedicated icon." + }, + "manifest_page_action_default_title": { + "message": "The icon is disabled. Enable it in the add-on settings." + }, + "manifest_browser_action_default_title": { + "message": "Quick bookmarking to folder" + }, + "manifest_shortcut_quick_bookmark_description": { + "message": "Shortcut to quickly bookmark the current page." + }, + "manifest_shortcut_browser_action_description": { + "message": "Shortcut to open the quick bookmarking to folder dialog." + }, "icon_remove_bookmark": { "message": "Remove the bookmark(s) for this page" }, diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index 528bac8..d2ffbc7 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -1,4 +1,19 @@ { + "manifest_extension_description": { + "message": "Allows you to choose the default bookmark location folder and quickly bookmark pages there via a dedicated icon." + }, + "manifest_page_action_default_title": { + "message": "The icon is disabled. Enable it in the add-on settings." + }, + "manifest_browser_action_default_title": { + "message": "Quick bookmarking to folder" + }, + "manifest_shortcut_quick_bookmark_description": { + "message": "Shortcut to quickly bookmark the current page." + }, + "manifest_shortcut_browser_action_description": { + "message": "Shortcut to open the quick bookmarking to folder dialog." + }, "icon_remove_bookmark": { "message": "Удалить все закладки этой страницы" }, diff --git a/src/manifest.json b/src/manifest.json index 9ae99d5..2b8c445 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,7 +4,7 @@ "author": "Teddy Gustiaux", "version": "2.6.0", - "description": "Allows you to choose the default bookmark location folder and quickly bookmark pages there via a dedicated icon.", + "description": "__MSG_manifest_extension_description__", "homepage_url": "https://github.com/teddy-gustiaux/default-bookmark-folder", "default_locale": "en", @@ -30,7 +30,7 @@ "512": "icons/cross/cross-512.png", "1024": "icons/cross/cross-1024.png" }, - "default_title": "The icon is disabled. Enable it in the add-on settings.", + "default_title": "__MSG_manifest_page_action_default_title__", "browser_style": true }, @@ -48,7 +48,7 @@ "size": 32 } ], - "default_title": "Quick bookmarking to folder", + "default_title": "__MSG_manifest_browser_action_default_title__", "default_popup": "popup/popup.html", "browser_style": true }, @@ -94,13 +94,13 @@ "suggested_key": { "default": "Alt+Shift+D" }, - "description": "Shortcut to quickly bookmark the current page." + "description": "__MSG_manifest_shortcut_quick_bookmark_description__" }, "_execute_browser_action": { "suggested_key": { "default": "Alt+Shift+M" }, - "description": "Shortcut to open the quick bookmarking to folder dialog." + "description": "__MSG_manifest_shortcut_browser_action_description__" } },