Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
feat(account-actions): Remove "lock/enable account" feature from Acco…
Browse files Browse the repository at this point in the history
…unts - translate error
  • Loading branch information
HeyRoach committed Jan 22, 2018
1 parent 435dcf8 commit 8f87b75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/shared/services/error.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ export class ErrorService {
{
regex: /maxSnaps exceeds limit: (\d+) for interval type: hourly/,
translation: 'ERRORS.SNAPSHOT_POLICIES.HOURLY_TURN_OFF'
},
{
regex:
/User (.*) .*or their account.* in domain (.*) is disabled\/locked. Please contact the administrator./,
translation: 'ERRORS.AUTH.DISABLED'
}
];

Expand Down
4 changes: 3 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@
"AUTH": {
"INCORRECT_USERNAME": "Incorrect username",
"INCORRECT_PASSWORD": "Incorrect password",
"INCORRECT_DOMAIN": "Unable to find domain {{ val1 }}"
"INCORRECT_DOMAIN": "Unable to find domain {{ val1 }}",
"DISABLED": "User {{ val1 }} (or their account) {{ val2 }} is disabled. Please contact the administrator."
},
"ISO": {
"VMS_IN_USE": "Unable to delete the ISO as it's used by the following VMs:<br>{{ vms }}"
},
"SNAPSHOT": {
"LIMIT_EXCEEDED": "Snapshot limit has been exceeded. You need to delete some of your previous snapshots first."
"LIMIT_EXCEEDED": "Snapshot limit has been exceeded. You need to delete some of your previous snapshots first."
},
"SSH": {
"KEY_PAIR_ALREADY_EXISTS": "SSH key with name '{{ val1 }}' already exists"
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"AUTH": {
"INCORRECT_USERNAME": "Неверное имя пользователя",
"INCORRECT_PASSWORD": "Неверный пароль",
"INCORRECT_DOMAIN": "Не удалось найти домен {{ val1 }}"
"INCORRECT_DOMAIN": "Не удалось найти домен {{ val1 }}",
"DISABLED": "Пользователь {{ val1 }} (или его акаунт) {{ val2 }} деактивирован. Пожалуйста свяжитесь с администратором ."
},
"ISO": {
"VMS_IN_USE": "Невозможно удалить ISO файл, так как он используется следующими машинами:<br>{{ vms }}"
Expand Down

0 comments on commit 8f87b75

Please sign in to comment.