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)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: chutten, Assigned: chutten)
References
Details
Attachments
(1 file)
|
1.77 KB,
patch
|
gfritzsche
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8681962 -
Flags: review?(gfritzsche)
Comment 2•10 years ago
|
||
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)
Comment 3•10 years ago
|
||
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 4•10 years ago
|
||
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+
| Assignee | ||
Comment 5•10 years ago
|
||
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
Keywords: checkin-needed
Comment 7•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 8•10 years ago
|
||
| bugherder uplift | ||
status-b2g-v2.5:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•