diff options
Diffstat (limited to 'chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html')
-rw-r--r-- | chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html b/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html index 18065022df7..4176f58eee1 100644 --- a/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html +++ b/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.html @@ -10,19 +10,18 @@ <template> <paper-dialog id="dialog" modal no-cancel-on-esc-key entry-animation="fade-in-animation" exit-animation="fade-out-animation"> - <div id="message">[[strings.passwordPrompt]]</div> + <div id="message" i18n-content="passwordPrompt"></div> <div class="horizontal layout start"> <paper-input-container id="password-container" class="flex" no-label-float invalid="[[invalid]]"> <input is="iron-input" id="password" type="password" size="20" on-keypress="handleKey" autofocus> </input> - <template is="dom-if" if="[[invalid]]"> - <paper-input-error>[[strings.passwordInvalid]]</paper-input-error> - </template> + <paper-input-error hidden$="[[!invalid]]" + i18n-content="passwordInvalid"></paper-input-error> </paper-input-container> - <paper-button id="submit" - on-click="submit">{{strings.passwordSubmit}}</paper-button> + <paper-button id="submit" on-click="submit" + i18n-content="passwordSubmit"></paper-button> </div> </paper-dialog> </template> |