Closed Bug 1184307 Opened 9 years ago Closed 9 years ago

Performance graphs use hardcoded strings for min, max, avg..

Categories

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

defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox43 --- fixed

People

(Reporter: theo, Assigned: linclark, Mentored)

References

Details

(Whiteboard: [good first bug][lang=js])

Attachments

(3 files)

In JS Profiler / Performance panel, some tabs and associated tooltips are left untranslated.

From screenshots I can spot:

Waterfall 
Call Tree
Flame Chart
Cycle Collection (both label and tooltip)
avg
fps
"min", "max" (not sure)
Enable multiprocess Firefox in preferences, etc.
Buffer x% full


Those strings seem hardcoded, since I can't find them in our localization files. Which is really bad because Aurora is affected and we're string frozen.
Attachment #8634335 - Attachment description: Latest Nightly, French (New profiling) → Latest Dev Edition, French (New profiling)
Going down the list, taking care of most of these in bug 1163763; the ones that aren't, however are the min/max/avg indicators for the graphs -- I'll update this bug for that issue. Thanks!

Should probably create a widgets/graphs localization file for this.
Summary: Many hardcoded strings in JS profiler (performance) panel (Waterfall, Call Tree…) → Performance graphs use hardcoded strings for min, max, avg..
Mentor: jsantell
Whiteboard: [good first bug][lang=js]
Attached patch Bug1184307.patchSplinter Review
This patch wires it together by:
- Creating a browser/devtools/graphs.properties
- Listing that file in browser/locales/jar.mn
- Using the properties in browser/devtools/shared/widgets/LineGraphWidget.js

Let me know if any naming should be changed.
Attachment #8647574 - Flags: review?(jsantell)
Comment on attachment 8647574 [details] [diff] [review]
Bug1184307.patch

Review of attachment 8647574 [details] [diff] [review]:
-----------------------------------------------------------------

Perfect. Thanks, Lin! Will get this patch in shortly, as well
Attachment #8647574 - Flags: review?(jsantell) → review+
Ccing Victor so he's aware of this l10n file for all our shared graphs -- if you can think of other un-L10N'd graph strings, let's make follow up bugs
Assignee: nobody → lin.w.clark
https://hg.mozilla.org/mozilla-central/rev/b8e7689d9b8e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: