Closed
Bug 1150733
Opened 9 years ago
Closed 9 years ago
Correctly internationalize sample label in jit coach
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(1 file, 2 obsolete files)
4.31 KB,
patch
|
jsantell
:
review+
jsantell
:
feedback+
|
Details | Diff | Splinter Review |
From bug 1143933#comment35
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8587714 -
Flags: review?(vporof)
Attachment #8587714 -
Flags: review?(francesco.lodolo)
Comment 2•9 years ago
|
||
Comment on attachment 8587714 [details] [diff] [review] 1150733-i10n-jit.patch Review of attachment 8587714 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/performance/views/jit-optimizations.js @@ +209,5 @@ > node.appendChild(icon); > } > > + let sampleString = PluralForm.get(site.samples, JIT_SAMPLES).replace("#1", site.samples); > + desc.textContent = `${lastStrategy} - (${sampleString})`; You want a dash here (–), not a minus (-).
Attachment #8587714 -
Flags: review?(vporof) → review+
Comment 3•9 years ago
|
||
Comment on attachment 8587714 [details] [diff] [review] 1150733-i10n-jit.patch Review of attachment 8587714 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/locales/en-US/chrome/browser/devtools/profiler.properties @@ +130,1 @@ > # This string is displayed for the unit representing thenumber of times a Still typo here: "the number" @@ +130,5 @@ > # This string is displayed for the unit representing thenumber of times a > # frame is sampled. > +# #1 sample > +# example: 30 samples > +jit.samples=#1 sample;#1 samples Sorry but you need to change the string ID at this point https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings
Attachment #8587714 -
Flags: review?(francesco.lodolo) → feedback-
Assignee | ||
Comment 4•9 years ago
|
||
Made the remaining changes https://treeherder.mozilla.org/#/jobs?repo=try&revision=2e9145c3f839
Attachment #8587714 -
Attachment is obsolete: true
Attachment #8588404 -
Flags: review?(francesco.lodolo)
Comment 5•9 years ago
|
||
Comment on attachment 8588404 [details] [diff] [review] 1150733-i10n-jit.patch Review of attachment 8588404 [details] [diff] [review]: ----------------------------------------------------------------- Switching to feedback, I'm not really entitled to review patches with code (I guess you can carry on r+ from the previous patch though). ::: browser/locales/en-US/chrome/browser/devtools/profiler.properties @@ +131,2 @@ > # frame is sampled. > +# #1 sample I think it's safe to drop this line, or "#1 represents the number of sample" (I completely missed it in the previous check).
Attachment #8588404 -
Flags: review?(francesco.lodolo) → feedback+
Comment 6•9 years ago
|
||
(In reply to Francesco Lodolo [:flod] (UTC+2) from comment #5) > "#1 represents the number of sample" s/sample/samples
Assignee | ||
Comment 7•9 years ago
|
||
Thanks for the feedback, Francesco!
Attachment #8588404 -
Attachment is obsolete: true
Attachment #8588437 -
Flags: review+
Attachment #8588437 -
Flags: feedback+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/12f07c1a9e0e
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•