diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-02-28 18:53:10 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 16:41:58 +0100 |
| commit | dc290a721b0315dfadf51a2fc8107f5eeb25bba5 (patch) | |
| tree | a2bf542775630a453c7384ac807a575ecea6da35 /gui/src | |
| parent | 1d9c27ebb54accddd7c7a2153f75dd7a1b9cf878 (diff) | |
| download | mullvadvpn-dc290a721b0315dfadf51a2fc8107f5eeb25bba5.tar.xz mullvadvpn-dc290a721b0315dfadf51a2fc8107f5eeb25bba5.zip | |
Add missing gettext translations
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/components/SecuredLabel.tsx | 13 | ||||
| -rw-r--r-- | gui/src/renderer/components/Support.tsx | 8 |
2 files changed, 9 insertions, 12 deletions
diff --git a/gui/src/renderer/components/SecuredLabel.tsx b/gui/src/renderer/components/SecuredLabel.tsx index 1d33755d11..6ae19ab7d1 100644 --- a/gui/src/renderer/components/SecuredLabel.tsx +++ b/gui/src/renderer/components/SecuredLabel.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { Component, Styles, Text, Types } from 'reactxp'; +import { gettext } from '../../shared/gettext'; export enum SecuredDisplayStyle { secured, @@ -33,20 +34,16 @@ export default class SecuredLabel extends Component<IProps> { private getText() { switch (this.props.displayStyle) { case SecuredDisplayStyle.secured: - // TODO: translate - return 'SECURE CONNECTION'; + return gettext('SECURE CONNECTION'); case SecuredDisplayStyle.blocked: - // TODO: translate - return 'BLOCKED CONNECTION'; + return gettext('BLOCKED CONNECTION'); case SecuredDisplayStyle.securing: - // TODO: translate - return 'CREATING SECURE CONNECTION'; + return gettext('CREATING SECURE CONNECTION'); case SecuredDisplayStyle.unsecured: - // TODO: translate - return 'UNSECURED CONNECTION'; + return gettext('UNSECURED CONNECTION'); } } diff --git a/gui/src/renderer/components/Support.tsx b/gui/src/renderer/components/Support.tsx index 782a28e89a..25e7c2d7d9 100644 --- a/gui/src/renderer/components/Support.tsx +++ b/gui/src/renderer/components/Support.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { Component, Text, TextInput, View } from 'reactxp'; -import { pgettext } from '../../shared/gettext'; +import { gettext, pgettext } from '../../shared/gettext'; import * as AppButton from './AppButton'; import ImageView from './ImageView'; import { Container, Layout } from './Layout'; @@ -279,7 +279,7 @@ export default class Support extends Component<ISupportProps, ISupportState> { <ImageView source="icon-spinner" height={60} width={60} /> </View> <View style={styles.support__status_security__secure}> - {pgettext('support-view', 'SECURE CONNECTION')} + {gettext('SECURE CONNECTION')} </View> <Text style={styles.support__send_status}> {pgettext('support-view', 'Sending...')} @@ -314,7 +314,7 @@ export default class Support extends Component<ISupportProps, ISupportState> { <ImageView source="icon-success" height={60} width={60} /> </View> <Text style={styles.support__status_security__secure}> - {pgettext('support-view', 'SECURE CONNECTION')} + {gettext('SECURE CONNECTION')} </Text> <Text style={styles.support__send_status}>{pgettext('support-view', 'Sent')}</Text> @@ -339,7 +339,7 @@ export default class Support extends Component<ISupportProps, ISupportState> { <ImageView source="icon-fail" height={60} width={60} /> </View> <Text style={styles.support__status_security__secure}> - {pgettext('support-view', 'SECURE CONNECTION')} + {gettext('SECURE CONNECTION')} </Text> <Text style={styles.support__send_status}> {pgettext('support-view', 'Failed to send')} |
