| Index: chrome/browser/resources/settings/internet_page/network_siminfo.html
|
| diff --git a/chrome/browser/resources/settings/internet_page/network_siminfo.html b/chrome/browser/resources/settings/internet_page/network_siminfo.html
|
| index 309ae8b7209e2c64ea20674390cfb4a83b6faa94..55309cbe6d4c43ca83a04382f6f092536922dbb7 100644
|
| --- a/chrome/browser/resources/settings/internet_page/network_siminfo.html
|
| +++ b/chrome/browser/resources/settings/internet_page/network_siminfo.html
|
| @@ -1,6 +1,6 @@
|
| -<link rel="import" href="chrome://resources/html/polymer.html">
|
| <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
|
| <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.html">
|
| +<link rel="import" href="chrome://resources/html/polymer.html">
|
| <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
|
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
|
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-checkbox.html">
|
| @@ -15,19 +15,23 @@
|
| iron-icon {
|
| -webkit-margin-end: 10px;
|
| }
|
| - .error {
|
| - color: red;
|
| - font-weight: 500;
|
| - }
|
| +
|
| .dialog-error {
|
| color: red;
|
| font-size: 125%;
|
| font-weight: 500;
|
| margin-top: 10px;
|
| }
|
| +
|
| + .error {
|
| + color: red;
|
| + font-weight: 500;
|
| + }
|
| +
|
| .pin {
|
| min-width: 100px;
|
| }
|
| +
|
| .puk {
|
| min-width: 200px;
|
| }
|
| @@ -38,7 +42,7 @@
|
| hidden$="[[networkProperties.Cellular.SIMPresent]]">
|
| <div class="start layout horizontal center">
|
| <iron-icon icon="settings:sim-card-alert"></iron-icon>
|
| - <div class="error">Missing SIM card</div>
|
| + <div class="error">$i18n{networkSimCardMissing}</div>
|
| </div>
|
| </div>
|
|
|
| @@ -46,105 +50,115 @@
|
| <div class="settings-box" hidden$="[[!showSimLocked_(networkProperties)]]">
|
| <div class="start layout horizontal center">
|
| <iron-icon icon="settings:lock"></iron-icon>
|
| - <div class="error">SIM card is locked.</div>
|
| + <div class="error">$i18n{networkSimCardLocked}</div>
|
| </div>
|
| <div class="secondary-action">
|
| - <paper-button on-tap="onUnlockPinTap_">Unlock</paper-button>
|
| + <paper-button on-tap="onUnlockPinTap_">
|
| + $i18n{networkSimUnlock}
|
| + </paper-button>
|
| </div>
|
| </div>
|
| -
|
| +
|
| <!-- SIM unlocked -->
|
| <div class="settings-box"
|
| hidden$="[[!showSimUnlocked_(networkProperties)]]">
|
| <paper-checkbox class="start" on-change="onSimLockEnabledChange_"
|
| checked="[[networkProperties.Cellular.SIMLockStatus.LockEnabled]]">
|
| - Enable SIM card locking (require PIN to use mobile data)
|
| + $i18n{networkSimLockEnable}
|
| </paper-checkbox>
|
| <paper-button on-tap="onChangePinTap_"
|
| hidden$="[[!networkProperties.Cellular.SIMLockStatus.LockEnabled]]">
|
| - Change PIN
|
| + $i18n{networkSimChangePin}
|
| </paper-button>
|
| </div>
|
|
|
| <!-- Enter PIN dialog -->
|
| <dialog is="cr-dialog" id="enterPinDialog">
|
| - <div class="title">Enter SIM PIN</div>
|
| + <div class="title">$i18n{networkSimEnterPinTitle}</div>
|
| <div class="body">
|
| - <paper-input id="enterPin" class="pin" no-label-float label="Enter PIN">
|
| + <paper-input id="enterPin" class="pin" no-label-float
|
| + label="$i18n{networkSimEnterPin}">
|
| </paper-input>
|
| <div class="dialog-error">
|
| [[getErrorMsg_(error, networkProperties)]]
|
| </div>
|
| </div>
|
| <div class="button-container">
|
| - <paper-button on-tap="sendEnterPin_">Enter</paper-button>
|
| + <paper-button on-tap="sendEnterPin_">
|
| + $i18n{networkSimEnter}
|
| + </paper-button>
|
| </div>
|
| </dialog>
|
|
|
| <!-- Change PIN dialog -->
|
| <dialog is="cr-dialog" id="changePinDialog">
|
| - <div class="title">Change SIM PIN</div>
|
| + <div class="title">$i18n{networkSimChangePinTitle}</div>
|
| <div class="body">
|
| <paper-input id="changePinOld" class="pin" no-label-float
|
| - label="Enter old PIN">
|
| + label="$i18n{networkSimEnterOldPin}">
|
| </paper-input>
|
| <paper-input id="changePinNew1" class="pin" no-label-float
|
| - label="Enter new PIN">
|
| + label="$i18n{networkSimEnterNewPin}">
|
| </paper-input>
|
| <paper-input id="changePinNew2" class="pin" no-label-float
|
| - label="Re-enter new PIN">
|
| + label="$i18n{networkSimReEnterNewPin}">
|
| </paper-input>
|
| <div class="dialog-error">
|
| [[getErrorMsg_(error, networkProperties)]]
|
| </div>
|
| </div>
|
| <div class="button-container">
|
| - <paper-button on-tap="sendChangePin_">Change</paper-button>
|
| + <paper-button on-tap="sendChangePin_">
|
| + $i18n{networkSimChange}
|
| + </paper-button>
|
| </div>
|
| </dialog>
|
|
|
| <!-- Unlock PIN dialog -->
|
| <dialog is="cr-dialog" id="unlockPinDialog">
|
| - <div class="title">SIM Card is locked</div>
|
| + <div class="title">$i18n{networkSimLockedTitle}</div>
|
| <div class="body">
|
| <paper-input id="unlockPin" class="pin" no-label-float
|
| - label="Enter PIN">
|
| + label="$i18n{networkSimEnterPin}">
|
| </paper-input>
|
| <div class="dialog-error">
|
| [[getErrorMsg_(error, networkProperties)]]
|
| </div>
|
| </div>
|
| <div class="button-container">
|
| - <paper-button on-tap="sendUnlockPin_">Unlock</paper-button>
|
| + <paper-button on-tap="sendUnlockPin_">
|
| + $i18n{networkSimUnlock}
|
| + </paper-button>
|
| </div>
|
| </dialog>
|
|
|
| <!-- Unlock PUK dialog -->
|
| <dialog is="cr-dialog" id="unlockPukDialog">
|
| - <div class="title">SIM Card is locked</div>
|
| + <div class="title">$i18n{networkSimLockedTitle}</div>
|
| <div class="body">
|
| <div>
|
| Enter the 8-digit PIN Unblocking Key provided by your carrier
|
| </div>
|
| <paper-input id="unlockPuk" class="puk" no-label-float
|
| - label="Enter PIN Unblocking Key">
|
| + label="$i18n{networkSimEnterPuk}">
|
| </paper-input>
|
| <paper-input id="unlockPin1" class="pin" no-label-float
|
| - label="Enter PIN">
|
| + label="$i18n{networkSimEnterNewPin}">
|
| </paper-input>
|
| <paper-input id="unlockPin2" class="pin" no-label-float
|
| - label="Re-enter PIN">
|
| + label="$i18n{networkSimReEnterNewPin}">
|
| </paper-input>
|
| <div class="dialog-error">
|
| - Your SIM card will be permanently disabled if you cannot enter
|
| - the correct PIN Unblocking key.
|
| + $i18n{networkSimLockedWarning}
|
| </div>
|
| <div class="dialog-error">
|
| [[getErrorMsg_(error, networkProperties)]]
|
| </div>
|
| </div>
|
| <div class="button-container">
|
| - <paper-button on-tap="sendUnlockPuk_">Unlock</paper-button>
|
| + <paper-button on-tap="sendUnlockPuk_">
|
| + $i18n{networkSimUnlock}
|
| + </paper-button>
|
| </div>
|
| </dialog>
|
| </template>
|
|
|