Closed Bug 1150733 Opened 11 years ago Closed 11 years ago

Correctly internationalize sample label in jit coach

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

37 Branch
x86
macOS
defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: jsantell, Assigned: jsantell)

References

Details

Attachments

(1 file, 2 obsolete files)

Assignee: nobody → jsantell
Blocks: jit-view
Attached patch 1150733-i10n-jit.patch (obsolete) — Splinter Review
Attachment #8587714 - Flags: review?(vporof)
Attachment #8587714 - Flags: review?(francesco.lodolo)
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 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-
Attached patch 1150733-i10n-jit.patch (obsolete) — Splinter Review
Attachment #8587714 - Attachment is obsolete: true
Attachment #8588404 - Flags: review?(francesco.lodolo)
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+
(In reply to Francesco Lodolo [:flod] (UTC+2) from comment #5) > "#1 represents the number of sample" s/sample/samples
Thanks for the feedback, Francesco!
Attachment #8588404 - Attachment is obsolete: true
Attachment #8588437 - Flags: review+
Attachment #8588437 - Flags: feedback+
Flags: in-testsuite-
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: