Skip to content

Commit

Permalink
feat: add translation capabilities to the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
teddy-gustiaux committed Feb 3, 2019
1 parent b37c9b8 commit b7954a9
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 5 deletions.
15 changes: 15 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
15 changes: 15 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
15 changes: 15 additions & 0 deletions src/_locales/hu/messages.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
15 changes: 15 additions & 0 deletions src/_locales/ru/messages.json
Original file line number Diff line number Diff line change
@@ -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": "Удалить все закладки этой страницы"
},
Expand Down
10 changes: 5 additions & 5 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
},

Expand All @@ -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
},
Expand Down Expand Up @@ -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__"
}
},

Expand Down

0 comments on commit b7954a9

Please sign in to comment.