summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2019-10-10 11:05:47 +0200
committerLinus Färnstrand <linus@mullvad.net>2019-10-15 14:41:21 +0200
commit8adbb7423199e35bf1822d7955c7ade7f3ee5fa1 (patch)
treef640235aece09e792b583d15200472291f017395 /gui
parent64b74fc50207cc7f11d0dd6a79a4f9ebac258dae (diff)
downloadmullvadvpn-8adbb7423199e35bf1822d7955c7ade7f3ee5fa1.tar.xz
mullvadvpn-8adbb7423199e35bf1822d7955c7ade7f3ee5fa1.zip
Add translator help text to items on settings page
Diffstat (limited to 'gui')
-rw-r--r--gui/src/renderer/components/Settings.tsx30
1 files changed, 24 insertions, 6 deletions
diff --git a/gui/src/renderer/components/Settings.tsx b/gui/src/renderer/components/Settings.tsx
index 1a51e3ae53..dc7f875529 100644
--- a/gui/src/renderer/components/Settings.tsx
+++ b/gui/src/renderer/components/Settings.tsx
@@ -112,7 +112,10 @@ export default class Settings extends Component<IProps> {
<View>
<View>
<Cell.CellButton onPress={this.props.onViewAccount}>
- <Cell.Label>{messages.pgettext('settings-view', 'Account')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Navigation button to the 'Account' view
+ messages.pgettext('settings-view', 'Account')}
+ </Cell.Label>
<Cell.SubText style={isOutOfTime ? styles.accountPaidUntilErrorLabel : undefined}>
{isOutOfTime ? outOfTimeMessage : formattedExpiry}
</Cell.SubText>
@@ -121,12 +124,18 @@ export default class Settings extends Component<IProps> {
</View>
<Cell.CellButton onPress={this.props.onViewPreferences}>
- <Cell.Label>{messages.pgettext('settings-view', 'Preferences')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Navigation button to the 'Preferences' view
+ messages.pgettext('settings-view', 'Preferences')}
+ </Cell.Label>
<Cell.Icon height={12} width={7} source="icon-chevron" />
</Cell.CellButton>
<Cell.CellButton onPress={this.props.onViewAdvancedSettings}>
- <Cell.Label>{messages.pgettext('settings-view', 'Advanced')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Navigation button to the 'Advanced' settings view
+ messages.pgettext('settings-view', 'Advanced')}
+ </Cell.Label>
<Cell.Icon height={12} width={7} source="icon-chevron" />
</Cell.CellButton>
<View style={styles.cellSpacer} />
@@ -179,18 +188,27 @@ export default class Settings extends Component<IProps> {
return (
<View>
<Cell.CellButton onPress={this.props.onViewSupport}>
- <Cell.Label>{messages.pgettext('settings-view', 'Report a problem')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Navigation button to the 'Report a problem' help view
+ messages.pgettext('settings-view', 'Report a problem')}
+ </Cell.Label>
<Cell.Icon height={12} width={7} source="icon-chevron" />
</Cell.CellButton>
<Cell.CellButton disabled={this.props.isOffline} onPress={this.openFaqLink}>
- <Cell.Label>{messages.pgettext('settings-view', 'FAQs & Guides')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Link to the webpage
+ messages.pgettext('settings-view', 'FAQs & Guides')}
+ </Cell.Label>
<Cell.Icon height={16} width={16} source="icon-extLink" />
</Cell.CellButton>
<Cell.CellButton onPress={this.props.onViewSelectLanguage}>
<Cell.UntintedIcon width={24} height={24} source="icon-language" />
- <Cell.Label>{messages.pgettext('settings-view', 'Language')}</Cell.Label>
+ <Cell.Label>
+ {// TRANSLATORS: Navigation button to the 'Language' settings view
+ messages.pgettext('settings-view', 'Language')}
+ </Cell.Label>
<Cell.SubText>{this.props.preferredLocaleDisplayName}</Cell.SubText>
<Cell.Icon height={12} width={7} source="icon-chevron" />
</Cell.CellButton>