Support different list of retailers in FR/DE strings
Categories
(Firefox :: Messaging System, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: jhirsch, Assigned: emcminn)
References
Details
(Whiteboard: [omc])
Attachments
(1 file)
We have a string[1] that lists three retailers in en-US, but the same string in FR/DE will need to only list one retailer. We'll need to figure out how we can show the correct string in FR/DE.
It might be enough to switch the string, based on which domain the user is visiting: if the location is amazon.fr or amazon.de, show a different string.
[1] https://searchfox.org/mozilla-central/source/browser/locales/en-US/browser/shopping.ftl#200-205
# Dynamic subtitle. Sites are limited to Amazon, Walmart or Best Buy.
# Variables:
# $currentSite (str) - The current shopping page name
# $secondSite (str) - A second shopping page name
# $thirdSite (str) - A third shopping page name
shopping-onboarding-dynamic-subtitle-1 = See how reliable product reviews are on <b>{ $currentSite }</b> before you buy. Review Checker, an experimental feature from { -brand-product-name }, is built right into the browser. It works on <b>{ $secondSite }</b> and <b>{ $thirdSite }</b>, too.
FYI string for FR/DE is here https://docs.google.com/spreadsheets/d/1FQUU2pqhKkAXRHNbmK9dhObwvevWoR3N6BOh3fu2skE/edit#gid=64342838 See row 64
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Testing the Jira link.
| Assignee | ||
Comment 3•2 years ago
•
|
||
Hi Jared! I have a tentative patch for this; is there an efficient way to test the DE/FR locales? Would adding the TLDs (as per this comment) be enough, locally?
EDIT: I'm also happy to take bug 1855760 if that would be helpful!
| Reporter | ||
Comment 4•2 years ago
|
||
Hey Emily,
Thanks for the ping. I think bug 1855760 should be more or less orthogonal to the changes needed here; how you are doing the domain detection in your patch? The shopping sidebar child actor already sends down the product URL when we trigger onboarding, to support the existing dynamic text[1], so I would guess the simplest way would be to add the new amazon.de and amazon.fr TLDs to the existing AWSetProductURL call[2], but that's without looking too much at the onboarding code (there might be a better way).
| Assignee | ||
Comment 5•2 years ago
|
||
| Assignee | ||
Comment 6•2 years ago
|
||
I've added a new string, and shortcut the amazon.fr and amazon.de TLDs to it in AboutWelcomeChild. Adding fr and de to the validTLDs array did allow me to see the change working locally, but I've omitted that change from this patch, and can submit it as a patch to the other bug (along with some test cases) :)
Updated•2 years ago
|
Comment 8•2 years ago
|
||
| bugherder | ||
Description
•