Bug 1342388 - Make all strings at about:webrtc localizable. r=jib
authorSebastian Hengst <archaeopteryx@coole-files.de>
Fri, 24 Feb 2017 13:34:14 +0100
changeset 373755 bc5c49a6f4fdf3928ec6a6f4e9b406c072961262
parent 373754 bba5e06342593cb57fb1002bcd050758aed1cf09
child 373756 b02bffae9133e13c0ccee089642a223e9050bf7b
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1342388
milestone54.0a1
Bug 1342388 - Make all strings at about:webrtc localizable. r=jib MozReview-Commit-ID: BIuJKlfVGfL
toolkit/content/aboutwebrtc/aboutWebrtc.js
toolkit/locales/en-US/chrome/global/aboutWebrtc.properties
--- a/toolkit/content/aboutwebrtc/aboutWebrtc.js
+++ b/toolkit/content/aboutwebrtc/aboutWebrtc.js
@@ -344,17 +344,17 @@ var AboutWebRTC = {
 
     let heading = document.createElement("span");
     heading.className = "section-heading";
     let elem = document.createElement("h3");
     elem.textContent = getString("stats_heading");
     heading.appendChild(elem);
 
     elem = document.createElement("button");
-    elem.textContent = "Clear History";
+    elem.textContent = getString("stats_clear");
     elem.className = "no-print";
     elem.onclick = this._onClearStats;
     heading.appendChild(elem);
     connections.appendChild(heading);
 
     if (!this._reports || !this._reports.length) {
       return connections;
     }
@@ -374,17 +374,17 @@ var AboutWebRTC = {
     content.className = "log";
 
     let heading = document.createElement("span");
     heading.className = "section-heading";
     let elem = document.createElement("h3");
     elem.textContent = getString("log_heading");
     heading.appendChild(elem);
     elem = document.createElement("button");
-    elem.textContent = "Clear Log";
+    elem.textContent = getString("log_clear");
     elem.className = "no-print";
     elem.onclick = this._onClearLog;
     heading.appendChild(elem);
     content.appendChild(heading);
 
     if (!this._log || !this._log.length) {
       return content;
     }
--- a/toolkit/locales/en-US/chrome/global/aboutWebrtc.properties
+++ b/toolkit/locales/en-US/chrome/global/aboutWebrtc.properties
@@ -94,17 +94,19 @@ nominated = Nominated
 # or are left blank. This represents an attribute of an ICE candidate.
 selected = Selected
 
 save_page_label = Save Page
 debug_mode_msg_label = Debug Mode
 debug_mode_off_state_label = Start Debug Mode
 debug_mode_on_state_label = Stop Debug Mode
 stats_heading = Session Statistics
+stats_clear = Clear History
 log_heading = Connection Log
+log_clear = Clear Log
 log_show_msg = show log
 log_hide_msg = hide log
 connection_closed = closed
 local_candidate = Local Candidate
 remote_candidate = Remote Candidate
 priority = Priority
 fold_show_msg = show details
 fold_show_hint = click to expand this section