Граф коммитов

62 Коммитов

Автор SHA1 Сообщение Дата
Erik Nordin 9957890189 Bug 1870300 - Add SelectTranslationsPanel class r=translations-reviewers,fluent-reviewers,desktop-theme-reviewers,bolsson,gregtatum,emilio
Adds a new class for SelectTranslationsPanel.

Differential Revision: https://phabricator.services.mozilla.com/D200502
2024-02-23 21:30:34 +00:00
Meera Murthy d23bcb0f06 Bug 1872860 - [translations] Add basic elements to Translations settings page. r=nordzilla,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,translations-reviewers,Gijs,dao
Differential Revision: https://phabricator.services.mozilla.com/D197750
2024-02-09 17:04:12 +00:00
Meera Murthy c381da7159 Bug 1869830 - [translations] Add a page for Translation Setting Preferences. r=nordzilla,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,translations-reviewers,Gijs,bolsson,dao
Differential Revision: https://phabricator.services.mozilla.com/D197048
2024-01-22 14:19:25 +00:00
Erik Nordin 9bed554614 Bug 1870306 - Enable Select Translations context menu item for hyperlinked text r=translations-reviewers,fluent-reviewers,bolsson,gregtatum
Adds the functionality for the Select Translations
context menu item to appear when a hyperlink is clicked
even if no text is selected. Selected text takes precedence
if a link is clicked while there is also an active selection.

Depends on D197225

Differential Revision: https://phabricator.services.mozilla.com/D197226
2024-01-05 18:50:14 +00:00
Erik Nordin a9937472c5 Bug 1870305 - Show Select Translations context menu item when text is selected r=translations-reviewers,fluent-reviewers,bolsson,gregtatum
Ensures that the Select Translations context menu
item only appears when there is actively selected text
at the time the context menu is invoked.

Depends on D197224

Differential Revision: https://phabricator.services.mozilla.com/D197225
2024-01-05 18:50:14 +00:00
Erik Nordin bd6bcc5071 Bug 1870305 - Add Select Translations context menu item r=translations-reviewers,fluent-reviewers,bolsson,gregtatum
Adds the Select Translations context menu item
to the right-click context menu with an initial
localized label value.

Depends on D197223

Differential Revision: https://phabricator.services.mozilla.com/D197224
2024-01-05 18:50:13 +00:00
Greg Tatum 94b7f7c84e Bug 1821038 - Expose the translations.ftl file to localization; r=nordzilla,fluent-reviewers,flod
Note that this does not expose the about:translations localization file
since that is a developer-focused view that's not ready or planned for
general usage.

Differential Revision: https://phabricator.services.mozilla.com/D179360
2023-05-29 19:19:55 +00:00
Greg Tatum 34f82d8975 Bug 1831963 - Change Fluent button messages to use the label; r=nordzilla,fluent-reviewers,flod
This fixes errors surfaced in:

browser/components/tests/marionette/test_no_errors_clean_profile.py

Visually and functionally the buttons work fine, but it generates a
warning that is caught by this test.

Differential Revision: https://phabricator.services.mozilla.com/D179359
2023-05-29 19:19:55 +00:00
Stanca Serban 17acee2cbe Backed out 9 changesets (bug 1831963, bug 1821038) for causing mochitests failures in browser_preferences_usage.js. CLOSED TREE
Backed out changeset 8e03224a019c (bug 1821038)
Backed out changeset 2b8bba99a0df (bug 1831963)
Backed out changeset 44cd611f57ce (bug 1831963)
Backed out changeset 5b15a7632c91 (bug 1831963)
Backed out changeset 522ef5669a6b (bug 1831963)
Backed out changeset f730091705fd (bug 1831963)
Backed out changeset 493c07c8a519 (bug 1831963)
Backed out changeset c4811197740c (bug 1831963)
Backed out changeset baaaaff4b660 (bug 1831963)
2023-05-29 21:32:21 +03:00
Greg Tatum e7727c0dc7 Bug 1821038 - Expose the translations.ftl file to localization; r=nordzilla,fluent-reviewers,flod
Note that this does not expose the about:translations localization file
since that is a developer-focused view that's not ready or planned for
general usage.

Differential Revision: https://phabricator.services.mozilla.com/D179360
2023-05-29 15:04:39 +00:00
Greg Tatum 4e83c06fcf Bug 1831963 - Change Fluent button messages to use the label; r=nordzilla,fluent-reviewers,flod
This fixes errors surfaced in:

browser/components/tests/marionette/test_no_errors_clean_profile.py

Visually and functionally the buttons work fine, but it generates a
warning that is caught by this test.

Depends on D179275

Differential Revision: https://phabricator.services.mozilla.com/D179359
2023-05-29 15:04:38 +00:00
Greg Tatum d729409e1b Bug 1829687 - Apply UX feedback to consolidate translation panel views; r=nordzilla,fluent-reviewers,flod
UX changed their mind on how the default translation panel should work.
I originally pushed back against getting this done for MVP, but the
logic is much easier when the translation panel can be manually invoked
by the user.

Differential Revision: https://phabricator.services.mozilla.com/D179087
2023-05-27 16:24:20 +00:00
Greg Tatum 7ce36dd8a6 Bug 1829687 - Rework detected languages; r=nordzilla,fluent-reviewers,flod
This reworks how the detect language mechanism is done since the
translations panel can now be manually invoked. It makes the docLangTag
be optional. Note that this patch may not work cleanly unless run with
the next patch. The following patch aggressively reworks the panel
structure, but the detected language logic seemed worth breaking out
separately as it was a different concern.

Differential Revision: https://phabricator.services.mozilla.com/D179086
2023-05-27 16:24:20 +00:00
Erik Nordin 44d95aa00e Bug 1829691 - Add Translations settings menuitems r=gregtatum,fluent-reviewers,flod
Adds new menuitems to the Translations panel settings
menu for always translate language, never translate
language, and never translate site.

Depends on D177855

Differential Revision: https://phabricator.services.mozilla.com/D177856
2023-05-24 01:22:43 +00:00
Erik Nordin 6031ae4572 Bug 1829691 - Add Translations settings panel to about:preferences r=gregtatum,fluent-reviewers,settings-reviewers,Gijs,flod
Adds a new button and panel for managing Translations
settings to the about:preferences panel.

Manages always-translate languages, never-translate
languages, and never-translate sites.

Depends on D178228

Differential Revision: https://phabricator.services.mozilla.com/D177854
2023-05-24 01:22:43 +00:00
Butkovits Atila 86a49d4b27 Backed out 11 changesets (bug 1834014, bug 1829691) for causing failures at browser_console_content_object_in_sidebar.js.
Backed out changeset bd3077e43541 (bug 1834014)
Backed out changeset 96dc91b50ecf (bug 1834014)
Backed out changeset 6099ee399488 (bug 1829691)
Backed out changeset d3488c2d7309 (bug 1829691)
Backed out changeset a89ce140c316 (bug 1829691)
Backed out changeset 40d7f94265c2 (bug 1829691)
Backed out changeset e86660a6f994 (bug 1829691)
Backed out changeset 5c63d7e15cac (bug 1829691)
Backed out changeset 2e5a01539749 (bug 1829691)
Backed out changeset 1b53cac4d88b (bug 1829691)
Backed out changeset be4a4c19e24f (bug 1829691)
2023-05-23 03:20:38 +03:00
Erik Nordin 2208af6a3a Bug 1829691 - Add Translations settings menuitems r=gregtatum,fluent-reviewers,flod
Adds new menuitems to the Translations panel settings
menu for always translate language, never translate
language, and never translate site.

Depends on D177855

Differential Revision: https://phabricator.services.mozilla.com/D177856
2023-05-22 21:11:11 +00:00
Erik Nordin cd28ad2532 Bug 1829691 - Add Translations settings panel to about:preferences r=gregtatum,fluent-reviewers,settings-reviewers,Gijs,flod
Adds a new button and panel for managing Translations
settings to the about:preferences panel.

Manages always-translate languages, never-translate
languages, and never-translate sites.

Depends on D178228

Differential Revision: https://phabricator.services.mozilla.com/D177854
2023-05-22 21:11:11 +00:00
Butkovits Atila aa3d711b4b Backed out 10 changesets (bug 1834014, bug 1829691) for causing failures at browser_about_translations_debounce.js. CLOSED TREE
Backed out changeset 680e9579fca5 (bug 1834014)
Backed out changeset e9c17faebbe3 (bug 1834014)
Backed out changeset 6b3a514450af (bug 1829691)
Backed out changeset 58b154e4accc (bug 1829691)
Backed out changeset 749af53af3bd (bug 1829691)
Backed out changeset 252c0d70934b (bug 1829691)
Backed out changeset 6ed4a66b1e40 (bug 1829691)
Backed out changeset fb6112332b59 (bug 1829691)
Backed out changeset 70cb62814390 (bug 1829691)
Backed out changeset 7fb6e8f6251e (bug 1829691)
2023-05-22 23:30:46 +03:00
Erik Nordin da050126ac Bug 1829691 - Add Translations settings menuitems r=gregtatum,fluent-reviewers,flod
Adds new menuitems to the Translations panel settings
menu for always translate language, never translate
language, and never translate site.

Depends on D177855

Differential Revision: https://phabricator.services.mozilla.com/D177856
2023-05-22 17:43:10 +00:00
Erik Nordin 5e91381bd0 Bug 1829691 - Add Translations settings panel to about:preferences r=gregtatum,fluent-reviewers,settings-reviewers,Gijs,flod
Adds a new button and panel for managing Translations
settings to the about:preferences panel.

Manages always-translate languages, never-translate
languages, and never-translate sites.

Depends on D178228

Differential Revision: https://phabricator.services.mozilla.com/D177854
2023-05-22 17:43:10 +00:00
Greg Tatum 45828973c7 Bug 1820247 - Apply UX designs to the translations panel; r=nordzilla,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D177291
2023-05-10 14:57:53 +00:00
Greg Tatum cf91f08437 Bug 1820259 - Implement the translation language download preferences; r=nordzilla,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D176189
2023-04-26 19:12:17 +00:00
Erik Nordin b6ddd10aad Bug 1813777 - Display beta tags on beta languages for Firefox Translations r=gregtatum,fluent-reviewers,flod
Displays languages as being in beta in the selectors for both
the about:translations page and for in-page translations.

Differential Revision: https://phabricator.services.mozilla.com/D175440
2023-04-18 16:25:22 +00:00
Greg Tatum 2d5cb34041 Bug 1826437 - Implement the full page translations panel; r=nordzilla,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D174682
2023-04-12 16:13:24 +00:00
Hanna Jones 540bf6fe91 Bug 1602095 - create an HTML version of xul:label textContent variation r=mstriemer,tgiles
This patch creates a custom element that extends the built-in label element to ad some custom styling and handling of accesskeys. This should align with the current functionality provided by the XUL label (which this code intetntionally copies and  doesn't differ much from, since the XUL label is definitely battle tested).

More specifically, this patch:

* adds fallbacks/defaults for pref controlled values so this will mostly work as expected even in less privileged contexts (like about:logins, etc.)
* adds tests for the new label element
* creates a Storybook entry for the label element (note that activating the accesskey won't work as expected in Storybook, likely due to Bug 1819469)

We'll likely have to iterate on this a bit as we try to use it in all the places XUL label is currently used, but I think this is at a point where it can unblock the menu work happening in Bug 1801324.

Differential Revision: https://phabricator.services.mozilla.com/D171238
2023-04-10 19:00:50 +00:00
Mike Conley a46819cdb9 Bug 1821779 - Move migrationWizard.ftl out from locales-preview into the locales folder. r=flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D174482
2023-04-03 17:25:18 +00:00
steven wang 901ad85687 Bug 1819334 - Display an error message when no importable resources can be found for a browser / profile pair. r=mconley,fluent-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D173544
2023-03-31 15:17:19 +00:00
Mike Conley 180bc050d1 Bug 1801981 - Use the word "favorites" instead of "bookmarks" when importing from IE / Edge. r=niklas,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173567
2023-03-29 17:58:22 +00:00
Alvin Lew 4c3c55debd Bug 1818789 - Implement Safari / macOS permission wizard page for Passwords. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173540
2023-03-27 13:15:12 +00:00
Greg Tatum 944d80a008 Bug 1820229 - Stub out a button in the URL bar for translations; r=nordzilla,desktop-theme-reviewers,flod,Itiel
This code is untested since it's stubbing out functionality, which will
eventually use PageActions to open up a popup. The final code with the
popup will get tested, but for now rely on the existing test behavior,
without asserting new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D173196
2023-03-24 18:27:30 +00:00
Butkovits Atila 137691f3bf Backed out 12 changesets (bug 1813781, bug 1815343, bug 1820229, bug 1823925, bug 1813779, bug 1823702) for causing failures at browser_full_page.js. CLOSED TREE
Backed out changeset 841d7b8b856b (bug 1823925)
Backed out changeset a62d77bfac0b (bug 1823925)
Backed out changeset 2590940e3b67 (bug 1815343)
Backed out changeset 807a38bb5ad4 (bug 1813781)
Backed out changeset b1d2cbba17a2 (bug 1813781)
Backed out changeset e83c3f386ef1 (bug 1813781)
Backed out changeset 18cf612336be (bug 1820229)
Backed out changeset d3ae326dcdf7 (bug 1820229)
Backed out changeset 793ba36c54b5 (bug 1813779)
Backed out changeset bbf9177668dc (bug 1823702)
Backed out changeset 1cc80a5cbcdb (bug 1823702)
Backed out changeset 22a87b7171d4 (bug 1823702)
2023-03-24 06:36:15 +02:00
Greg Tatum 5fbf34f20b Bug 1820229 - Stub out a button in the URL bar for translations; r=nordzilla,desktop-theme-reviewers,flod,Itiel
This code is untested since it's stubbing out functionality, which will
eventually use PageActions to open up a popup. The final code with the
popup will get tested, but for now rely on the existing test behavior,
without asserting new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D173196
2023-03-23 22:00:36 +00:00
Mike Conley d4fd8ed785 Bug 1823965 - Update success strings for HISTORY and FORMDATA resource imports in the new migration wizard. r=niklas,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D173319
2023-03-23 20:42:20 +00:00
Mike Conley d960e3303e Bug 1814278 - Align the spacing and layout of the new Migration Wizard more closely to the spec. r=kpatenio,fluent-reviewers,flod,settings-reviewers
Along with bringing us closer to the layout and spacing from Figma, this does the following:

1. Changes the header element to an <h1> and uses CSS to get the expected font size. This should
   make the organization of the wizard make more sense to screenreaders.
2. Handles the "single resource" case for Variant 2, where we hide "Select All" and align the
   resource list to the left if there's only a single resource to import.
3. Fixes a string to match the spec.

Differential Revision: https://phabricator.services.mozilla.com/D173054
2023-03-21 12:35:19 +00:00
Greg Tatum 749ec49c51 Bug 1821768 - Move translations.ftl to toolkit; r=nordzilla,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D172310
2023-03-21 12:13:11 +00:00
steven wang e2bfc76403 Bug 1819167 - Put a message above the resource checkboxes in Variant 1 of the MigrationWizard. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D172524
2023-03-16 14:14:07 +00:00
Bryan Macoy b223743cdb Bug 1803445 - Implement Safari / macOS permission wizard page for Bookmarks / History r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D171602
2023-03-16 13:51:33 +00:00
Nolan Ishii e7fec49950 Bug 1815749 Make variant 2's list of resource types in the <summary> reflect the checked items within the <details>. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D170228
2023-03-13 16:16:16 +00:00
Erik Nordin 8134a4a6f0 Bug 1818603 - Add "Detect language" to dropdown in about:translations UI r=gregtatum
Adds a "Detect language" option which detects the language to translate.
Language detection is enabled when the option is selected and is disabled
when a different language in the dropdown is selected explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D170953
2023-03-09 17:33:44 +00:00
Cosmin Sabou 566b682e7e Backed out 4 changesets (bug 1818603) for causing bc failures on browser_about_translations.js. CLOSED TREE
Backed out changeset b7e7f31595af (bug 1818603)
Backed out changeset 48e0d3d1b0b6 (bug 1818603)
Backed out changeset 44b561534ff6 (bug 1818603)
Backed out changeset a042968665f9 (bug 1818603)
2023-03-07 22:26:28 +02:00
Erik Nordin 40849d3280 Bug 1818603 - Add "Detect language" to dropdown in about:translations UI r=gregtatum
Adds a "Detect language" option which detects the language to translate.
Language detection is enabled when the option is selected and is disabled
when a different language in the dropdown is selected explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D170953
2023-03-07 19:20:16 +00:00
Sandor Molnar 8259334bbc Backed out 4 changesets (bug 1818603) for causing bc failures in toolkit/components/translations/tests/browser/browser_full_page.js CLOSED TREE
Backed out changeset 74a79a6806c5 (bug 1818603)
Backed out changeset c9bffb3905d3 (bug 1818603)
Backed out changeset 3399cfb47b90 (bug 1818603)
Backed out changeset b329465df45d (bug 1818603)
2023-03-07 20:36:48 +02:00
Erik Nordin f6c82f20f5 Bug 1818603 - Add "Detect language" to dropdown in about:translations UI r=gregtatum
Adds a "Detect language" option which detects the language to translate.
Language detection is enabled when the option is selected and is disabled
when a different language in the dropdown is selected explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D170953
2023-03-07 17:43:52 +00:00
brian 62b680db2c Bug 1809347 Implement the page that appears if no other browsers to import cannot be found. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D168981
2023-03-03 20:35:52 +00:00
Norisz Fay d8f467432b Backed out changeset cfa8d4331629 (bug 1809347) for causing mochitest failures on test_migration_wizard.html CLOSED TREE 2023-03-03 22:10:10 +02:00
brian 20e0d71c81 Bug 1809347 Implement the page that appears if no other browsers to import cannot be found. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D168981
2023-03-03 19:24:29 +00:00
steven wang b778f2672a Bug 1813598 - Add a Cancel and Done button to the bottom of the progress page of the wizard. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D169496
2023-02-17 04:31:08 +00:00
Mike Conley 15d676b5a7 Bug 1816197 - Part 2: Add an optional callback to MigratorBase.migrate to get migration updates. r=NeilDeakin,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D169527
2023-02-16 20:40:00 +00:00
Nolan Ishii 077ebaf8d9 Bug 1803446 Implement 'variant 2' version of the main selector page for the migration wizard. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D166949
2023-02-08 15:58:24 +00:00