From 94a4ba8b850983c09a0dcfcd87a725506dec429d Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 3 Sep 2023 14:53:50 +0300 Subject: [PATCH] Added strings for localization https://github.com/libredirect/browser_extension/issues/805 --- src/_locales/en/messages.json | 11 ++++++++++- src/pages/options/widgets/general.pug | 4 ++-- src/pages/options/widgets/services.pug | 2 +- src/pages/popup/popup.pug | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 4879dc8..251bbeb 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -99,5 +99,14 @@ }, "about": { "message": "About" - } + }, + "unsupportedIframesHandling": { + "message": "Unsupported iframes handling" + }, + "fetchPublicInstances": { + "message": "Fetch public instances" + }, + "disable": { + "message": "Disable" + } } \ No newline at end of file diff --git a/src/pages/options/widgets/general.pug b/src/pages/options/widgets/general.pug index cbc0129..7d91cd9 100644 --- a/src/pages/options/widgets/general.pug +++ b/src/pages/options/widgets/general.pug @@ -11,11 +11,11 @@ section(class="option-block" id="general_page") option(value="dark" data-localise="__MSG_dark__") Dark div(class="some-block option-block") - h4 Fetch public instances + h4(data-localise="__MSG_fetchPublicInstances__") Fetch public instances select(id="fetch-instances") option(value="github") GitHub option(value="codeberg") Codeberg - option(value="disable") Disable + option(value="disable" data-localise="__MSG_disable__") Disable div(class="some-block option-block") h4(data-localise="__MSG_excludeFromRedirecting__") Excluded from redirecting diff --git a/src/pages/options/widgets/services.pug b/src/pages/options/widgets/services.pug index d710ed7..80c469c 100644 --- a/src/pages/options/widgets/services.pug +++ b/src/pages/options/widgets/services.pug @@ -43,7 +43,7 @@ each val, service in services div(class="some-block option-block") - h4 Unsupported iframes handling + h4(data-localise="__MSG_unsupportedIframesHandling__") Unsupported iframes handling select(id=service+"-unsupportedUrls") option(value="bypass") bypass option(value="block") block diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug index 6af5087..d74e1d1 100644 --- a/src/pages/popup/popup.pug +++ b/src/pages/popup/popup.pug @@ -18,7 +18,7 @@ html(lang="en") div(class="some-block" id="change_instance_div" style="display: none") a(class="title button prevent" id="change_instance") - h4() Switch Instance + h4(data-localise="__MSG_switchInstance__") Switch Instance svg(xmlns="http://www.w3.org/2000/svg" height="26px" width="26px" fill="currentColor") path(d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z")