Add missing translations in the users panel (#6082)

* Add missing translations in the users panel

* Suggested change

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Suggested change

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Suggested change

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Move error_required to ui.common

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Maciej Bieniek 2020-06-02 17:25:30 +02:00 committed by GitHub
parent 2a17870d6d
commit 443634ecf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View File

@ -85,7 +85,7 @@ export class DialogAddUser extends LitElement {
required required
auto-validate auto-validate
autocapitalize="on" autocapitalize="on"
error-message="Required" .errorMessage=${this.hass.localize("ui.common.error_required")}
@value-changed=${this._nameChanged} @value-changed=${this._nameChanged}
@blur=${this._maybePopulateUsername} @blur=${this._maybePopulateUsername}
></paper-input> ></paper-input>
@ -99,7 +99,7 @@ export class DialogAddUser extends LitElement {
auto-validate auto-validate
autocapitalize="none" autocapitalize="none"
@value-changed=${this._usernameChanged} @value-changed=${this._usernameChanged}
error-message="Required" .errorMessage=${this.hass.localize("ui.common.error_required")}
></paper-input> ></paper-input>
<paper-input <paper-input
.label=${this.hass.localize( .label=${this.hass.localize(
@ -110,7 +110,7 @@ export class DialogAddUser extends LitElement {
required required
auto-validate auto-validate
@value-changed=${this._passwordChanged} @value-changed=${this._passwordChanged}
error-message="Required" .errorMessage=${this.hass.localize("ui.common.error_required")}
></paper-input> ></paper-input>
<ha-switch .checked=${this._isAdmin} @change=${this._adminChanged}> <ha-switch .checked=${this._isAdmin} @change=${this._adminChanged}>
${this.hass.localize("ui.panel.config.users.editor.admin")} ${this.hass.localize("ui.panel.config.users.editor.admin")}
@ -118,10 +118,9 @@ export class DialogAddUser extends LitElement {
${!this._isAdmin ${!this._isAdmin
? html` ? html`
<br /> <br />
The users group is a work in progress. The user will be unable ${this.hass.localize(
to administer the instance via the UI. We're still auditing all "ui.panel.config.users.users_privileges_note"
management API endpoints to ensure that they correctly limit )}
access to administrators.
` `
: ""} : ""}
</div> </div>

View File

@ -109,10 +109,9 @@ class DialogUserDetail extends LitElement {
${!this._isAdmin ${!this._isAdmin
? html` ? html`
<br /> <br />
The users group is a work in progress. The user will be unable ${this.hass.localize(
to administer the instance via the UI. We're still auditing "ui.panel.config.users.users_privileges_note"
all management API endpoints to ensure that they correctly )}
limit access to administrators.
` `
: ""} : ""}
</div> </div>

View File

@ -245,7 +245,8 @@
"no": "No", "no": "No",
"successfully_saved": "Successfully saved", "successfully_saved": "Successfully saved",
"successfully_deleted": "Successfully deleted", "successfully_deleted": "Successfully deleted",
"back": "Back" "back": "Back",
"error_required": "Required"
}, },
"components": { "components": {
"entity": { "entity": {
@ -1430,6 +1431,7 @@
"users": { "users": {
"caption": "Users", "caption": "Users",
"description": "Manage users", "description": "Manage users",
"users_privileges_note": "The users group is a work in progress. The user will be unable to administer the instance via the UI. We're still auditing all management API endpoints to ensure that they correctly limit access to administrators.",
"picker": { "picker": {
"headers": { "name": "Name", "group": "Group", "system": "System" } "headers": { "name": "Name", "group": "Group", "system": "System" }
}, },