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

merge strings for train 23086 #420

Merged
merged 1 commit into from May 29, 2020
Merged

merge strings for train 23086 #420

merged 1 commit into from May 29, 2020

Conversation

ghost
Copy link

@ghost ghost commented May 29, 2020

No description provided.

@peiying2 peiying2 merged commit 711f398 into mozilla:master May 29, 2020
msgid ""
"Thank you for reaching out to Mozilla Support about "
"<b>%(escapedLowercaseTopic)s</b> for <b>%(escapedSelectedPlan)s</b>. We'll "
"contact you via email as soon as possible."
"<b>%(escapedLowercaseTopic)s</b> for <b>%(escapedSelectedProduct)s</b>. "
Copy link
Collaborator

Choose a reason for hiding this comment

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

I got pinged by the Italian localizers, asking how to deal with this.

I might be wrong, but you're taking original translations starting with uppercase, and reusing them after making them lowercase via JS.
https://github.com/mozilla/fxa/blob/07cefc18148d0b17f5240120a84fe151a5032088/packages/fxa-content-server/app/scripts/models/support-form.js#L15

That is incredibly fragile (I'd go as far as to say it's broken):

  • JS might not be able to manage the correct transformation for locales.
  • You don't know what capitalization a language should use in the middle of a sentence.
  • In the middle of a sentence it might need a different case.

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't wasn't aware of this part, only looking for the en-US section. And if I did, I would have not understood this part. Thanks for pointing it out. And also, I need to check template section too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need to check both, check either en-US or templates.

As for the issue, to be honest it's really hard to catch (assuming it's confirmed).

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.

None yet

2 participants