-
Notifications
You must be signed in to change notification settings - Fork 918
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
Initial support for Pocket l10n using Fluent strings in Bedrock #11541
Initial support for Pocket l10n using Fluent strings in Bedrock #11541
Conversation
Codecov Report
@@ Coverage Diff @@
## main #11541 +/- ##
==========================================
- Coverage 77.13% 77.09% -0.04%
==========================================
Files 144 144
Lines 7578 7584 +6
==========================================
+ Hits 5845 5847 +2
- Misses 1733 1737 +4
Continue to review full report at Codecov.
|
Just needs a rebase now I think |
f87f317
to
72e2437
Compare
Looking good now. Don't need the |
72e2437
to
33dd465
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is only a draft still, but I thought it might be worth making sure we're setting off on the right foot for the FTL strings. Making sure things are good early on will likely make future updates smoother 👍
There was a problem hiding this 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 couple of small nits / suggestions to fix up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update looks good, just one outlier spotted r+wc
Although it sounds like we may want a separate brands.ftl
file for Pocket now too?
797e4b4
to
75cc1a2
Compare
…via Makefile commands
Setting the SITE_MODE env var to Mozorg or Pocket will now switch the site into serving only the URLs for that particular mode. When in Pocket mode, its pages are served from the root path, not from the 'externalpages' namespace/module name The default behaviour, for now, remains as is: all URLs will be served, and Pocket URLs are served as 'external/pocket/*`
There's more work to be done to wire it all up - the views aren't aware of the Fluent side, yet
Note how we get the brands.ftl from main l10n to _always_ be used in Pocket mode, regardless of locale.
…onym. Has no semantic impact to change it.
…; need to go via the template-specific FTL file
…reaase scope to tune them without triggering new translations
…ittle for translation
The -brand-name-read-it-later-inc string is moved from l10n/en/brands.ftl into the new Pocket-specific one, and can be used as proof that the new brands file is being loaded, because the correct Read It Later, Inc string appears at the bottom of the about page. Also improve some of the brand-meets-product phrasing, to help with translation - eg Pocket Premium, Pocket for Firefox
75cc1a2
to
5928f36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r++
This means we can do without the override that forces the loading of brands when in Pocket mode. We still need it for non-en locales, but at least now it behaves the same as for Mozorg mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple more suggestions, but ready to go I think. r+wc
🦀
One-line summary
This changeset lays in a skeleton l10n directory and subdirs, giving us somewhere to put Fluent files as we mark up Pocket templates for l10n.
It also marks up the
pocket/about.html
page (and the related nav, mobile nav and footer template partials) with Fluent strings.This marking up of the
about
page also shows we can pull in brand names from the default mozorg l10n files.In general, strings in pocket pages are namespaced with
pocket-
and don't clash with existing stringsIssue / Bugzilla link
#11519
Testing
npm run in-pocket-mode
ormake run-pocket
/about/
and confirm that(You can compare with https://getpocket.com/en/about/)