Closed Bug 1220376 Opened 10 years ago Closed 10 years ago

Fix formatted string for Child Payload N in about:telemetry

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: chutten, Assigned: chutten)

References

Details

Attachments

(1 file)

In adding child payloads to about:telemetry I wrote a formatted string with %1$s instead of %1$S (note the case). The former only supports one character, so it will only work until pings start to have more than nine child payloads.
Comment on attachment 8681962 [details] [diff] [review] 0001-Bug-1220376-Use-1-S-instead-of-1-s.-r-gfritzsche.patch Review of attachment 8681962 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/locales/en-US/chrome/global/aboutTelemetry.properties @@ +73,5 @@ > parentPayload = Parent Payload > > # Note to translators: > +# - The %1$S will be replaced with the number of the child payload (e.g. "1", "2") > +childPayloadN = Child Payload %1$S Common practice is apparently to add a ".<Number>" suffix, i.e. "childPayload.2".
Attachment #8681962 - Flags: review?(gfritzsche)
As long as the key changes it's fine, no need for versioned keys (they usually do because there's no need to think about a new name).
Comment on attachment 8681962 [details] [diff] [review] 0001-Bug-1220376-Use-1-S-instead-of-1-s.-r-gfritzsche.patch Review of attachment 8681962 [details] [diff] [review]: ----------------------------------------------------------------- Alright, i don't have strong opinions here then.
Attachment #8681962 - Flags: review+
No tryserver because, as mentioned in bug 1163971, there are no tests covering this. Adding to bug 1163971's manual tests, I have also: -faked having more than 10 child payloads to ensure the localization format supports more than one character.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: