diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-04-09 15:42:36 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-04-09 15:42:36 +0200 |
| commit | b427aa1adca8fcfeca7f777499f0b4e1c84e3c6e (patch) | |
| tree | b096c6eb2a2bf3885436910894249452ccb1d813 /gui/src/renderer/lib | |
| parent | 88031a653167df93396433fcf53a1422c2f995fd (diff) | |
| parent | 6405e1eebbe12313bed10f3f8bd1a0f051e83d24 (diff) | |
| download | mullvadvpn-b427aa1adca8fcfeca7f777499f0b4e1c84e3c6e.tar.xz mullvadvpn-b427aa1adca8fcfeca7f777499f0b4e1c84e3c6e.zip | |
Merge branch 'multi-catalogue'
Diffstat (limited to 'gui/src/renderer/lib')
| -rw-r--r-- | gui/src/renderer/lib/account-expiry.ts | 4 | ||||
| -rw-r--r-- | gui/src/renderer/lib/auth-failure.ts | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gui/src/renderer/lib/account-expiry.ts b/gui/src/renderer/lib/account-expiry.ts index 5a8e5e8ec2..5393238dcd 100644 --- a/gui/src/renderer/lib/account-expiry.ts +++ b/gui/src/renderer/lib/account-expiry.ts @@ -1,6 +1,6 @@ import moment from 'moment'; import { sprintf } from 'sprintf-js'; -import { pgettext } from '../../shared/gettext'; +import { messages } from '../../shared/gettext'; export default class AccountExpiry { private expiry: moment.Moment; @@ -28,7 +28,7 @@ export default class AccountExpiry { // TRANSLATORS: The remaining time left on the account displayed across the app. // TRANSLATORS: Available placeholders: // TRANSLATORS: %(duration)s - a localized remaining time (in minutes, hours, or days) until the account expiry - pgettext('account-expiry', '%(duration)s left'), + messages.pgettext('account-expiry', '%(duration)s left'), { duration }, ); } diff --git a/gui/src/renderer/lib/auth-failure.ts b/gui/src/renderer/lib/auth-failure.ts index 6428d0f65a..ead0b08a81 100644 --- a/gui/src/renderer/lib/auth-failure.ts +++ b/gui/src/renderer/lib/auth-failure.ts @@ -1,4 +1,4 @@ -import { pgettext } from '../../shared/gettext'; +import { messages } from '../../shared/gettext'; export enum AuthFailureKind { invalidAccount, @@ -58,24 +58,24 @@ function parseRawFailureKind(failureId: string): AuthFailureKind { function messageForFailureKind(kind: AuthFailureKind): string { switch (kind) { case AuthFailureKind.invalidAccount: - return pgettext( + return messages.pgettext( 'auth-failure', "You've logged in with an account number that is not valid. Please log out and try another one.", ); case AuthFailureKind.expiredAccount: - return pgettext( + return messages.pgettext( 'auth-failure', 'You have no more VPN time left on this account. Please log in on our website to buy more credit.', ); case AuthFailureKind.tooManyConnections: - return pgettext( + return messages.pgettext( 'auth-failure', 'This account has too many simultaneous connections. Disconnect another device or try connecting again shortly.', ); case AuthFailureKind.unknown: - return pgettext('auth-failure', 'Account authentication failed.'); + return messages.pgettext('auth-failure', 'Account authentication failed.'); } } |
