Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Link text is in English in localized page for Lockbox #3715

Closed
flodolo opened this issue Jul 6, 2018 · 9 comments
Closed

Link text is in English in localized page for Lockbox #3715

flodolo opened this issue Jul 6, 2018 · 9 comments
Assignees
Labels
L10N [QA]:Other issue Valid issues logged by other people than the Softvision QA team. size:S < 4 hours

Comments

@flodolo
Copy link
Collaborator

flodolo commented Jul 6, 2018

This is how it currently looks for Italian (bad…)
https://testpilot-l10n.dev.mozaws.net/experiments/firefox-lockbox

schermata 2018-07-06 alle 12 34 02

cc @devinreams

@flodolo
Copy link
Collaborator Author

flodolo commented Jul 6, 2018

Worth noting that all other experiments don't have links, I wonder if that's a known issue.

@flodolo flodolo added the L10N label Jul 6, 2018
@devinreams
Copy link

Thanks @flodolo. Given the constrains of the experiments YAML and front-end display, what do you think is a good approach to making this better?

One idea, not perfect, would be for us to remove the link from “here” on both instances so it can be translated, and then add the actual URL (as a hyperlink) after. For example:

...puoi creane uno utilizzando aqui:
https://lockbox.firefox.com/faq.html#how-do-i-get-my-firefox-saved-logins-into-firefox-lockbox

@flodolo
Copy link
Collaborator Author

flodolo commented Jul 6, 2018

Thanks @flodolo. Given the constrains of the experiments YAML and front-end display, what do you think is a good approach to making this better?

IMO this looks like a bug, and we should try to figure out what's causing it (disclaimer: I'm going to PTO in a few hours, and back on the 16th, so I won't be able to help).

For example, it works for sideviewLegalnotice

Maybe it's the presence of the href causing it?

It would be enough to test changing

If you do not have an account set up, get started <a href="https://lockbox.firefox.com/faq.html#how-do-i-get-my-firefox-saved-logins-into-firefox-lockbox">here</a>

to

If you do not have an account set up, get started <a>here</a>.?

@flodolo
Copy link
Collaborator Author

flodolo commented Jul 6, 2018

For example, it works for sideviewLegalnotice

And this is likely a bad example, seems it seems to be used in JS :-\ I'm not sure if we have links coming from YAML files.

Is the Lockbox experiment going to be visible only for en-US users? Otherwise, those sections look really awful in localized pages.

@flodolo
Copy link
Collaborator Author

flodolo commented Jul 6, 2018

Not sure if @stasm has ideas on what could be causing only the links to show up in English.

@stasm
Copy link

stasm commented Jul 6, 2018

Given the constrains of the experiments YAML and front-end display, what do you think is a good approach to making this better?

How is YAML used for this content? I don't remember exactly how Test Pilot displays the descriptions of experiments.

The need to include link anchors in the translations predates the solution built into more recent versions of fluent-react, called React overlays. There's a custom-written components called LocalizedHtml. Is this component involved here?

@devinreams devinreams self-assigned this Jul 16, 2018
@flodolo
Copy link
Collaborator Author

flodolo commented Jul 21, 2018

Any update?

@marniepw marniepw added this to the Things we should do 🇬🇫 milestone Jul 30, 2018
@devinreams
Copy link

The workaround plan from here is:

  1. re-write the Firefox Account paragraph so the "saved logins" and "here" are not hyperlinked and just have one URL at the end of the paragraph linking to the Lockbox website (not in an anchor tag with English)
  2. re-write the Android paragraph similarly so it ends with just a URL (not an anchor tag with English)
  3. remove the last paragraph (that this is limited to English and certain countries)
  4. bump the l10n prefix so it can be re-reviewed and translated better

Does anyone have any concerns or alternative approaches to work around this before we submit those changes as a PR?

@clouserw
Copy link
Member

clouserw commented Aug 6, 2018

That sounds like the right thing to do. Thanks @devinreams

@clouserw clouserw added the size:S < 4 hours label Aug 6, 2018
devinreams added a commit that referenced this issue Aug 7, 2018
- removes English only and country disclaimer
- changes anchor link text to be URLs, fixes #3715
@SoftVision-CosminMuntean SoftVision-CosminMuntean added the [QA]:Other issue Valid issues logged by other people than the Softvision QA team. label Aug 10, 2018
meandavejustice pushed a commit that referenced this issue Aug 13, 2018
* update to latest package lock from npm install

* revise introduction strings to be simpler

- removes English only and country disclaimer
- changes anchor link text to be URLs, fixes #3715

* add news update for Lockbox

* Revert "add news update for Lockbox"

This reverts commit e6042bd.

* add l10n prefix to force re-translation of introduction
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
L10N [QA]:Other issue Valid issues logged by other people than the Softvision QA team. size:S < 4 hours
Projects
None yet
Development

No branches or pull requests

6 participants