Commit ceb8bd75 authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[i18n] convert power display page to $i18n{}

This Cl converts the internal page to display power usage information
from the old i18n-content to the new $i18n{} localization.

Bug: 677338
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I7983c7d01d993b81cf2dd4111712425f63db7ca5
Reviewed-on: https://chromium-review.googlesource.com/846424Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526598}
parent 5d60a422
<!doctype html>
<html i18n-values="lang:language">
<html lang="$i18n{language}">
<head>
<meta charset="utf-8">
<title i18n-content="titleText"></title>
<title>$i18n{titleText}</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="chrome://power/power.css">
<script src="chrome://resources/js/load_time_data.js"></script>
......@@ -14,11 +14,11 @@
<table id="main-table">
<tr class="section-row">
<td class="title-cell">
<p i18n-content="batteryChargeSectionTitle" class="title-text"></p>
<p class="title-text">$i18n{batteryChargeSectionTitle}</p>
</td>
<td class="show-button-cell">
<button id="battery-charge-show-button" class="show-button"
i18n-content="showButton">
<button id="battery-charge-show-button" class="show-button">
$i18n{showButton}
</button>
</td>
<td id="battery-charge-cell" class="plots-cell">
......@@ -26,14 +26,14 @@
<div class="plots-div" id="battery-charge-plots-div"></div>
<form>
<label>
<span i18n-content="averageOverText"></span>
<span>$i18n{averageOverText}</span>
<input id="sample-count-input" type="number" min="1" max="150"
value="10">
</label>
<span i18n-content="samplesText"></span>
<span>$i18n{samplesText}</span>
</form>
<button id="battery-charge-reload-button" class="reload-button"
i18n-content="reloadButton">
<button id="battery-charge-reload-button" class="reload-button">
$i18n{reloadButton}
</button>
</div>
</td>
......@@ -41,18 +41,18 @@
<tr class="section-row">
<td class="title-cell">
<p i18n-content="cpuIdleSectionTitle" class="title-text"></p>
<p class="title-text">$i18n{cpuIdleSectionTitle}</p>
</td>
<td class="show-button-cell">
<button id="cpu-idle-show-button" class="show-button"
i18n-content="showButton">
<button id="cpu-idle-show-button" class="show-button">
$i18n{showButton}
</button>
</td>
<td id="cpu-idle-cell" class="plots-cell">
<div id="cpu-idle-section" class="section-div">
<div class="plots-div" id="cpu-idle-plots-div"></div>
<button id="cpu-idle-reload-button" class="reload-button"
i18n-content="reloadButton">
<button id="cpu-idle-reload-button" class="reload-button">
$i18n{reloadButton}
</button>
</div>
</td>
......@@ -60,18 +60,18 @@
<tr class="section-row">
<td class="title-cell">
<p i18n-content="cpuFreqSectionTitle" class="title-text"></p>
<p class="title-text">$i18n{cpuFreqSectionTitle}</p>
</td>
<td class="show-button-cell">
<button id="cpu-freq-show-button" class="show-button"
i18n-content="showButton">
<button id="cpu-freq-show-button" class="show-button">
$i18n{showButton}
</button>
</td>
<td id="cpu-freq-cell" class="plots-cell">
<div id="cpu-freq-section" class="section-div">
<div class="plots-div" id="cpu-freq-plots-div"></div>
<button id="cpu-freq-reload-button" class="reload-button"
i18n-content="reloadButton">
<button id="cpu-freq-reload-button" class="reload-button">
$i18n{reloadButton}
</button>
</div>
</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment