Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #15187 - Nightly update message should refer to Firefox Labs instead of Nightly Experiments #15219

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

pascalchevrel
Copy link
Member

  • Created a new string for the page with id nightly-whatsnew-want-to-know-which-v3
  • Added a new -brand-name-firefox-labs string for Firefox Labs in brands.ftl

Issue / Bugzilla link

issue #15187

Testing

  • make test passed
  • I see the new string when running bedrock locally

…Labs instead of Nightly Experiments

- Create a new string for the page with id nightly-whatsnew-want-to-know-which-v3
- Add a new -brand-name-firefox-labs string for Firefox Labs in brands.ftl
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.88%. Comparing base (977dbf6) to head (bdba72f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15219   +/-   ##
=======================================
  Coverage   77.88%   77.88%           
=======================================
  Files         163      163           
  Lines        8480     8480           
=======================================
  Hits         6605     6605           
  Misses       1875     1875           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few small fix-ups required 👍

@@ -65,7 +65,7 @@ <h4 class="mzp-c-callout-title">¿Quieres ayudar en España?</h4>

<p>
{% set attrs = 'href="#" class="nightly-experiments-link"' %}
{{ ftl('nightly-whatsnew-want-to-know-which-v2', attrs=attrs) }}
{{ ftl('nightly-whatsnew-want-to-know-which-v3', attrs=attrs) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should fall back to the old string for locales that have not yet updated

Suggested change
{{ ftl('nightly-whatsnew-want-to-know-which-v3', attrs=attrs) }}
{{ ftl('nightly-whatsnew-want-to-know-which-v3', fallback='nightly-whatsnew-want-to-know-which-v2', attrs=attrs) }}

@@ -25,6 +25,7 @@ nightly-whatsnew-if-you-want-to-v3 = If you want to know what’s happening arou
# Variables:
# $attrs (string) - link href and additional attributes
nightly-whatsnew-want-to-know-which-v2 = Want to know which platform features you could test on { -brand-name-nightly } and can’t see yet on other { -brand-name-firefox } channels? Then have a look at the <a { $attrs }>Nightly Experiments</a> preferences page.
nightly-whatsnew-want-to-know-which-v3 = Want to know which platform features you could test on { -brand-name-nightly } and can’t see yet on other { -brand-name-firefox } channels? Then have a look at the <a { $attrs }>{ -brand-name-firefox-labs }</a> preferences page.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new string needs a comment to explain the variable (you can copy and paste the comment from the v2 string)

@@ -25,6 +25,7 @@ nightly-whatsnew-if-you-want-to-v3 = If you want to know what’s happening arou
# Variables:
# $attrs (string) - link href and additional attributes
nightly-whatsnew-want-to-know-which-v2 = Want to know which platform features you could test on { -brand-name-nightly } and can’t see yet on other { -brand-name-firefox } channels? Then have a look at the <a { $attrs }>Nightly Experiments</a> preferences page.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This old string needs to be marked as obsolete so it can be removed in 2 months time. See https://bedrock.readthedocs.io/en/latest/l10n.html#obsolete-strings for details.

- Add l10n comment for new string
- Mark old string as the fallback l10n string in the template
- Mark old string as being obsolete on 2024-11-26
Copy link
Member

@alexgibson alexgibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+ thanks for the contribution @pascalchevrel 💯

@alexgibson alexgibson merged commit bb83e23 into mozilla:main Sep 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants