diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py')
-rw-r--r-- | python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py b/python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py new file mode 100644 index 0000000000..a6df49f3ef --- /dev/null +++ b/python/l10n/fluent_migrations/bug_747301_about_plugin_removal.py @@ -0,0 +1,28 @@ +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +from fluent.migrate import COPY_PATTERN +from fluent.migrate.helpers import transforms_from + + +def migrate(ctx): + """Bug 747301 - remove about:plugins, part {index}.""" + plugins_ftl = "toolkit/toolkit/about/aboutPlugins.ftl" + addon_ftl = "toolkit/toolkit/about/aboutAddons.ftl" + ctx.add_transforms( + addon_ftl, + addon_ftl, + transforms_from( + """ +plugins-gmp-license-info = {COPY_PATTERN(from_path, "plugins-gmp-license-info")} +plugins-gmp-privacy-info = {COPY_PATTERN(from_path, "plugins-gmp-privacy-info")} + +plugins-openh264-name = {COPY_PATTERN(from_path, "plugins-openh264-name")} +plugins-openh264-description = {COPY_PATTERN(from_path, "plugins-openh264-description")} + +plugins-widevine-name = {COPY_PATTERN(from_path, "plugins-widevine-name")} +plugins-widevine-description = {COPY_PATTERN(from_path, "plugins-widevine-description")} +""", + from_path=plugins_ftl, + ), + ) |