Closed Bug 489512 Opened 15 years ago Closed 15 years ago

Explore hooking the rest of strings in about:crashes to Cocoa l10n

Categories

(Camino Graveyard :: General, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: chris)

References

()

Details

(Whiteboard: l10n)

Attachments

(1 file, 1 obsolete file)

Since we actually have a forked copy of crashes.xhtml, we can modify the file if we want. Per bug 488949 comment 3 (and the end of 4), someone with JS skills can probably hook up to the stringbundle service to pull strings that are currently in crashes.dtd from our Cocoa global_locale_crashes_properties.strings file and then use JS DOM manipulation to replace the entities in the file with those strings.

If we have any JS-savvy takers before b3, we can do this.
Flags: camino2.0b3?
Attached patch Fix v1.0 (obsolete) — Splinter Review
Removes the crashes.dtd placeholders and adds id attributes to the relevant elements. Adds the insertLocalizedStrings() method that grabs strings from the stringbundle service and inserts them using the innerHTML property. Puts the strings from crashes.dtd into global_locale_crashes_properties.strings.in.
Assignee: nobody → trendyhendy2000
Status: NEW → ASSIGNED
Attachment #376397 - Flags: review?
Comment on attachment 376397 [details] [diff] [review]
Fix v1.0

I've tested this, and it works as expected.
Attachment #376397 - Flags: superreview?(stuart.morgan+bugzilla)
Attachment #376397 - Flags: review?
Attachment #376397 - Flags: review+
Attachment #376397 - Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Comment on attachment 376397 [details] [diff] [review]
Fix v1.0

>+  var bundles = Cc["@mozilla.org/intl/stringbundle;1"].
>+                getService(Ci.nsIStringBundleService);

Why break this line but not the equally-long lines right after it? Break them
(at the =) or don't break this line.

>+<p id="noReports" style="display: none">;</p>

Remove the stray ';'

sr=smorgan otherwise.
Patch for checkin, with sr comments addressed.
Attachment #376397 - Attachment is obsolete: true
Attachment #376547 - Flags: superreview+
Checked in; thanks again, hendy!
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: camino2.0b3? → camino2.0b3+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: