bug_1858811_moz_split_button.py (710B)
1 # Any copyright is dedicated to the Public Domain. 2 # http://creativecommons.org/publicdomain/zero/1.0/ 3 4 from fluent.migrate.helpers import transforms_from 5 6 7 def migrate(ctx): 8 """Bug 1858811 - moz-button split button, part {index}.""" 9 10 source = "browser/browser/contextual-manager.ftl" 11 target = "toolkit/toolkit/global/mozButton.ftl" 12 13 ctx.add_transforms( 14 target, 15 target, 16 transforms_from( 17 """ 18 moz-button-more-options = 19 .title = {COPY_PATTERN(from_path, "contextual-manager-menu-more-options-button.title")} 20 .aria-label = {COPY_PATTERN(from_path, "contextual-manager-more-options-popup.aria-label ")} 21 """, 22 from_path=source, 23 ), 24 )