Skip to content

Commit

Permalink
Merge pull request #89 from sailfishos/jb56370
Browse files Browse the repository at this point in the history
[embedlite-components] Populate the technical details of the certificate page. JB#56370 OMP#JOLLA-541
  • Loading branch information
rainemak committed Dec 22, 2021
2 parents 3ed96be + ee13e00 commit 08edfa8
Show file tree
Hide file tree
Showing 11 changed files with 691 additions and 130 deletions.
6 changes: 6 additions & 0 deletions jscomps/EmbedLiteGlobalHelper.js
Expand Up @@ -9,6 +9,7 @@ const Cr = Components.results;
const { XPCOMUtils } = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { LoginManagerParent } = ChromeUtils.import("resource://gre/modules/LoginManagerParent.jsm");
const { L10nRegistry, FileSource } = ChromeUtils.import("resource://gre/modules/L10nRegistry.jsm");

// Touch the recipeParentPromise lazy getter so we don't get
// `this._recipeManager is undefined` errors during tests.
Expand All @@ -29,6 +30,11 @@ function EmbedLiteGlobalHelper()
{
ActorManagerParent.flush();

L10nRegistry.registerSource(new FileSource(
"0-mozembedlite",
["en-US", "fi", "ru"],
"chrome://browser/content/localization/{locale}/"))

Logger.debug("JSComp: EmbedLiteGlobalHelper.js loaded");
}

Expand Down
30 changes: 30 additions & 0 deletions overrides/Makefile.am
Expand Up @@ -58,4 +58,34 @@ localebrowser_ru_manifest_DATA = \
ru/netError.dtd \
$(NULL)

localizationbrowser_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/en-US/browser
localizationbrowser_manifest_DATA = \
en-US/aboutCertError.ftl \
$(NULL)

localizationbrowser_fi_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/fi/browser
localizationbrowser_fi_manifest_DATA = \
fi/aboutCertError.ftl \
$(NULL)

localizationbrowser_ru_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/ru/browser
localizationbrowser_ru_manifest_DATA = \
ru/aboutCertError.ftl \
$(NULL)

localizationbranding_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/en-US/branding
localizationbranding_manifest_DATA = \
en-US/brand.ftl \
$(NULL)

localizationbranding_fi_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/fi/branding
localizationbranding_fi_manifest_DATA = \
fi/brand.ftl \
$(NULL)

localizationbranding_ru_manifestdir=$(libdir)/mozembedlite/chrome/chrome/content/localization/ru/branding
localizationbranding_ru_manifest_DATA = \
ru/brand.ftl \
$(NULL)

AM_CPPFLAGS = $(DEPS_CFLAGS)

0 comments on commit 08edfa8

Please sign in to comment.