Closed Bug 1977144 Opened 1 month ago Closed 1 month ago

custom-avatar-alt was changed without a new ID, causing failure in l10n infra

Categories

(Toolkit :: Startup and Profile System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox140 --- unaffected
firefox141 --- unaffected
firefox142 --- fixed

People

(Reporter: flod, Assigned: tbersentes)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-profile-management])

Attachments

(1 file)

https://phabricator.services.mozilla.com/D252385

This changed

custom-avatar-alt =
    .alt = Custom avatar

To

custom-avatar-alt = Custom

My local instance of Pontoon committed just this

custom-avatar-alt = 

Luckily only Italian was affected so far, but this means that quarantine is blocked.

The string ID needs to be changed (that's this bug). But there's a bug in our infrastructure, because Pontoon shouldn't have committed that translation in the first place.

@eemeli
Can you file a separate bug in the right place? Not sure if Pontoon or moz-l10n. Apparently Pontoon is in a state where it only knows about the string's version with alt attribute, even a forced sync won't change that.

Treeherder link: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&searchStr=l10n&fromchange=6e1a18e207d8fc76de10a2f61f59a908c9133757&tochange=e4a1f24183370c53e6e9d937f4d3dd5ba064ad74&selectedTaskRun=ZX95FIDiS2Sx136n-gN-pg.0

Revert link: https://hg.mozilla.org/integration/autoland/rev/e4a1f24183370c53e6e9d937f4d3dd5ba064ad74

Failure log: https://treeherder.mozilla.org/logviewer?job_id=517742526&repo=autoland

Flags: needinfo?(earo)

Set release status flags based on info from the regressing bug 1966951

Flags: needinfo?(tbersentes)
Summary: custom-avatar-alt was changed without new IDs, causing failure in l10n infra → custom-avatar-alt was changed without a new ID, causing failure in l10n infra

For moz.l10n, https://github.com/mozilla/moz-l10n/pull/91 should fix its part of the issue, as such an empty message should be serialized as

custom-avatar-alt = { "" }

to make it valid Fluent.

I'm keeping the needinfo on, as at least some work is required in Pontoon as well.

It looks like Pontoon will need an update once the moz.l10n PR lands and a new release is available. Regarding its general behaviour in a case like this, I added pontoon#3718. The related oddity in the firefox-l10n-source scripts ought to get cleared up by updating its moz.l10n dependency to its latest version.

Flags: needinfo?(earo)

Hey :eemeli, do we need to update the strings that surfaced this bug?

Flags: needinfo?(earo)

Yes, for two reasons:

  1. I'm pretty sure that it was a mistake for custom-avatar-alt to not have its value in the .alt attribute. All of the other *-avatar-alt strings use an .alt attribute, and it's used as the l10n-id of an <img> element, which ought not have any contents.
  2. The string content changes from "Custom avatar" to "Avatar", so the message ought to have a new l10n id like custom-avatar-alt-2.
Flags: needinfo?(earo) → needinfo?(jhirsch)
Assignee: nobody → tbersentes
Flags: needinfo?(tbersentes)

Thanks, we're on it.

Flags: needinfo?(jhirsch)
Attachment #9500698 - Attachment description: WIP: Bug 1977144 - Fix custom-avatar-alt localization format to use alt attribute → Bug 1977144 - Fix custom-avatar-alt localization format to use alt attribute
Pushed by tbersentes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5256c5c80ac8 https://hg.mozilla.org/integration/autoland/rev/d73f173c9fa5 Fix custom-avatar-alt localization format to use alt attribute r=jhirsch,fluent-reviewers,bolsson
Severity: -- → S3
Priority: -- → P1
Whiteboard: [fidefe-profile-management]
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: