Browse Source

wording/pixel push on Settings

master
Gaëtan Renaudeau 7 years ago
parent
commit
064aafab99
  1. 1
      src/components/IsUnlocked.js
  2. 1
      src/components/RenderError.js
  3. 2
      src/components/SettingsPage/SettingsSection.js
  4. 6
      src/components/SettingsPage/sections/About.js
  5. 6
      src/components/SettingsPage/sections/Currencies.js
  6. 15
      src/components/SettingsPage/sections/Display.js
  7. 27
      src/components/SettingsPage/sections/Profile.js
  8. 29
      static/i18n/en/app.yml
  9. 2
      static/i18n/en/language.yml

1
src/components/IsUnlocked.js

@ -192,6 +192,7 @@ class IsUnlocked extends Component<Props, State> {
onClose={this.handleCloseHardResetModal} onClose={this.handleCloseHardResetModal}
onReject={this.handleCloseHardResetModal} onReject={this.handleCloseHardResetModal}
onConfirm={this.handleHardReset} onConfirm={this.handleHardReset}
confirmText={t('app:common.reset')}
title={t('app:settings.hardResetModal.title')} title={t('app:settings.hardResetModal.title')}
desc={t('app:settings.hardResetModal.desc')} desc={t('app:settings.hardResetModal.desc')}
renderIcon={this.hardResetIconRender} renderIcon={this.hardResetIconRender}

1
src/components/RenderError.js

@ -116,6 +116,7 @@ ${error.stack}
onClose={this.handleCloseHardResetModal} onClose={this.handleCloseHardResetModal}
onReject={this.handleCloseHardResetModal} onReject={this.handleCloseHardResetModal}
onConfirm={this.handleHardReset} onConfirm={this.handleHardReset}
confirmText={t('app:common.reset')}
title={t('app:settings.hardResetModal.title')} title={t('app:settings.hardResetModal.title')}
desc={t('app:settings.hardResetModal.desc')} desc={t('app:settings.hardResetModal.desc')}
renderIcon={this.hardResetIconRender} renderIcon={this.hardResetIconRender}

2
src/components/SettingsPage/SettingsSection.js

@ -102,7 +102,7 @@ export function SettingsSectionRow({
}) { }) {
return ( return (
<SettingsSectionRowContainer onClick={onClick} tabIndex={-1}> <SettingsSectionRowContainer onClick={onClick} tabIndex={-1}>
<Box grow shrink style={{ marginRight: '20%' }}> <Box grow shrink style={{ marginRight: '10%' }}>
<Box ff="Open Sans|SemiBold" color="dark" fontSize={4}> <Box ff="Open Sans|SemiBold" color="dark" fontSize={4}>
{title} {title}
</Box> </Box>

6
src/components/SettingsPage/sections/About.js

@ -39,12 +39,6 @@ const ITEMS = [
desc: t => t('app:settings.about.faqDesc'), desc: t => t('app:settings.about.faqDesc'),
url: 'https://support.ledgerwallet.com/hc/en-us', url: 'https://support.ledgerwallet.com/hc/en-us',
}, },
{
key: 'contact',
title: t => t('app:settings.about.contactUs'),
desc: t => t('app:settings.about.contactUsDesc'),
url: 'https://support.ledgerwallet.com/hc/en-us/requests/new',
},
{ {
key: 'terms', key: 'terms',
title: t => t('app:settings.about.terms'), title: t => t('app:settings.about.terms'),

6
src/components/SettingsPage/sections/Currencies.js

@ -115,9 +115,11 @@ class TabCurrencies extends PureComponent<Props, State> {
{currency !== intermediaryCurrency ? ( {currency !== intermediaryCurrency ? (
<Row <Row
title={t('app:settings.currencies.exchange', { title={t('app:settings.currencies.exchange', {
ticker: `${currency.ticker}${intermediaryCurrency.ticker}`, ticker: currency.ticker,
})}
desc={t('app:settings.currencies.exchangeDesc', {
currencyName: currency.name,
})} })}
desc={t('app:settings.currencies.exchangeDesc')}
> >
<ExchangeSelect <ExchangeSelect
small small

15
src/components/SettingsPage/sections/Display.js

@ -158,7 +158,6 @@ class TabProfile extends PureComponent<Props, State> {
title={t('app:settings.display.counterValue')} title={t('app:settings.display.counterValue')}
desc={t('app:settings.display.counterValueDesc')} desc={t('app:settings.display.counterValueDesc')}
> >
<Box flow={2}>
<Select <Select
small small
minWidth={250} minWidth={250}
@ -168,6 +167,18 @@ class TabProfile extends PureComponent<Props, State> {
options={fiats} options={fiats}
value={cvOption} value={cvOption}
/> />
</Row>
{counterValueCurrency ? (
<Row
title={t('app:settings.display.exchange', {
ticker: counterValueCurrency.ticker,
fiat: counterValueCurrency.name,
})}
desc={t('app:settings.display.exchangeDesc', {
fiat: counterValueCurrency.name,
ticker: counterValueCurrency.ticker,
})}
>
<SelectExchange <SelectExchange
small small
from={intermediaryCurrency} from={intermediaryCurrency}
@ -176,8 +187,8 @@ class TabProfile extends PureComponent<Props, State> {
onChange={this.handleChangeExchange} onChange={this.handleChangeExchange}
minWidth={200} minWidth={200}
/> />
</Box>
</Row> </Row>
) : null}
<Row <Row
title={t('app:settings.display.language')} title={t('app:settings.display.language')}
desc={t('app:settings.display.languageDesc')} desc={t('app:settings.display.languageDesc')}

27
src/components/SettingsPage/sections/Profile.js

@ -168,16 +168,6 @@ class TabProfile extends PureComponent<Props, State> {
<CheckBox isChecked={isPasswordEnabled} onChange={this.handleChangePasswordCheck} /> <CheckBox isChecked={isPasswordEnabled} onChange={this.handleChangePasswordCheck} />
</Box> </Box>
</Row> </Row>
<Row
title={t('app:settings.profile.developerMode')}
desc={t('app:settings.profile.developerModeDesc')}
>
<Track onUpdate event={settings.developerMode ? 'DevModeEnabled' : 'DevModeDisabled'} />
<CheckBox
isChecked={settings.developerMode}
onChange={developerMode => saveSettings({ developerMode })}
/>
</Row>
<Row <Row
title={t('app:settings.profile.reportErrors')} title={t('app:settings.profile.reportErrors')}
desc={t('app:settings.profile.reportErrorsDesc')} desc={t('app:settings.profile.reportErrorsDesc')}
@ -201,6 +191,16 @@ class TabProfile extends PureComponent<Props, State> {
onChange={shareAnalytics => saveSettings({ shareAnalytics })} onChange={shareAnalytics => saveSettings({ shareAnalytics })}
/> />
</Row> </Row>
<Row
title={t('app:settings.profile.developerMode')}
desc={t('app:settings.profile.developerModeDesc')}
>
<Track onUpdate event={settings.developerMode ? 'DevModeEnabled' : 'DevModeDisabled'} />
<CheckBox
isChecked={settings.developerMode}
onChange={developerMode => saveSettings({ developerMode })}
/>
</Row>
<Row <Row
title={t('app:settings.profile.softResetTitle')} title={t('app:settings.profile.softResetTitle')}
desc={t('app:settings.profile.softResetDesc')} desc={t('app:settings.profile.softResetDesc')}
@ -209,6 +209,9 @@ class TabProfile extends PureComponent<Props, State> {
{t('app:settings.profile.softReset')} {t('app:settings.profile.softReset')}
</Button> </Button>
</Row> </Row>
<Row title={t('app:settings.exportLogs.title')} desc={t('app:settings.exportLogs.desc')}>
<ExportLogsBtn />
</Row>
<Row <Row
title={t('app:settings.profile.hardResetTitle')} title={t('app:settings.profile.hardResetTitle')}
desc={t('app:settings.profile.hardResetDesc')} desc={t('app:settings.profile.hardResetDesc')}
@ -217,9 +220,6 @@ class TabProfile extends PureComponent<Props, State> {
{t('app:settings.profile.hardReset')} {t('app:settings.profile.hardReset')}
</Button> </Button>
</Row> </Row>
<Row title={t('app:settings.exportLogs.title')} desc={t('app:settings.exportLogs.desc')}>
<ExportLogsBtn />
</Row>
</Body> </Body>
<ConfirmModal <ConfirmModal
@ -240,6 +240,7 @@ class TabProfile extends PureComponent<Props, State> {
onClose={this.handleCloseHardResetModal} onClose={this.handleCloseHardResetModal}
onReject={this.handleCloseHardResetModal} onReject={this.handleCloseHardResetModal}
onConfirm={this.handleHardReset} onConfirm={this.handleHardReset}
confirmText={t('app:common.reset')}
title={t('app:settings.hardResetModal.title')} title={t('app:settings.hardResetModal.title')}
desc={t('app:settings.hardResetModal.desc')} desc={t('app:settings.hardResetModal.desc')}
renderIcon={this.hardResetIconRender} renderIcon={this.hardResetIconRender}

29
static/i18n/en/app.yml

@ -26,6 +26,7 @@ common:
max: Max max: Max
next: Next next: Next
back: Back back: Back
reset: Reset
retry: Retry retry: Retry
stop: Stop stop: Stop
close: Close close: Close
@ -296,7 +297,7 @@ releaseNotes:
settings: # Always ensure descriptions carry full stops (.) settings: # Always ensure descriptions carry full stops (.)
title: Settings title: Settings
tabs: tabs:
display: Display display: General
currencies: Currencies currencies: Currencies
profile: Profile profile: Profile
about: Help about: Help
@ -304,18 +305,18 @@ settings: # Always ensure descriptions carry full stops (.)
desc: Unneeded description # Remove this, it controls multiple settings tabs and is not required. desc: Unneeded description # Remove this, it controls multiple settings tabs and is not required.
language: Display language language: Display language
languageDesc: Set the language displayed in Ledger Live. languageDesc: Set the language displayed in Ledger Live.
counterValue: Base currency counterValue: Countervalue
counterValueDesc: Choose the currency to display next to your balance and operations. counterValueDesc: Choose the currency to display next to your balance and operations.
exchange: Rate provider ({{ticker}}) exchange: Rate provider
exchangeDesc: Choose the provider of the exchange rate between Bitcoin and your selected base currency. exchangeDesc: Choose the provider of the exchange rate from Bitcoin to {{fiat}}.
region: Region region: Region
regionDesc: Choose the region in which you’re located to set the Ledger Live's time zone. regionDesc: Choose the region in which you’re located to set the Ledger Live's time zone.
stock: Regional market indicator stock: Regional market indicator
stockDesc: Choose Western to display an increase in market value in green. Choose Eastern to display an increase in market value in red. stockDesc: Choose Western to display an increase in market value in green. Choose Eastern to display an increase in market value in red.
currencies: currencies:
desc: Select a crypto asset to edit its settings. desc: Select a crypto asset to edit its settings.
exchange: Rate provider ({{ticker}}) exchange: Rate provider ({{ticker}} → BTC)
exchangeDesc: Choose the provider of the rate between the selected crypto asset and Bitcoin. This intermediary calculation enables the calculation of your balance in your base currency, for indicative purposes only. exchangeDesc: Choose the provider of the rate between {{currencyName}} and Bitcoin. This intermediary calculation enables the calculation of your balance in your base currency, for indicative purposes only.
confirmationsToSpend: Number of confirmations required to spend confirmationsToSpend: Number of confirmations required to spend
confirmationsToSpendDesc: Set the number of network confirmations required for your crypto assets to be spendable. # A higher number of confirmations decreases the probability that a transaction is rejected. confirmationsToSpendDesc: Set the number of network confirmations required for your crypto assets to be spendable. # A higher number of confirmations decreases the probability that a transaction is rejected.
confirmationsNb: Number of confirmations confirmationsNb: Number of confirmations
@ -326,8 +327,8 @@ settings: # Always ensure descriptions carry full stops (.)
explorerDesc: Choose which explorer is used to look up the operation details in the blockchain. explorerDesc: Choose which explorer is used to look up the operation details in the blockchain.
profile: profile:
desc: Set the preferences for your profile. desc: Set the preferences for your profile.
password: Data encryption password: Password lock
passwordDesc: Enhance your privacy. Set a password to encrypt Ledger Live data stored on your computer, including account names, balances, transactions and public addresses. passwordDesc: Set a password to prevent unauthorized access to Ledger Live data stored on your computer, including account names, balances, transactions and public addresses.
changePassword: Change password changePassword: Change password
sync: Synchronize accounts sync: Synchronize accounts
syncDesc: Resynchronize your accounts with the network. syncDesc: Resynchronize your accounts with the network.
@ -343,7 +344,7 @@ settings: # Always ensure descriptions carry full stops (.)
developerModeDesc: Show developer apps in the Manager and enable testnet apps. developerModeDesc: Show developer apps in the Manager and enable testnet apps.
analytics: Analytics analytics: Analytics
analyticsDesc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts. analyticsDesc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts.
reportErrors: Usage and diagnostics reportErrors: Report bugs
reportErrorsDesc: Share anonymous usage and diagnostics data to help improve Ledger products, services and security features. reportErrorsDesc: Share anonymous usage and diagnostics data to help improve Ledger products, services and security features.
about: about:
desc: Learn about Ledger Live features or get help. desc: Learn about Ledger Live features or get help.
@ -351,8 +352,6 @@ settings: # Always ensure descriptions carry full stops (.)
releaseNotesBtn: Show release notes # Close button instead of continue. releaseNotesBtn: Show release notes # Close button instead of continue.
faq: Ledger Support faq: Ledger Support
faqDesc: A problem? Learn about Ledger Live, Ledger devices, supported crypto assets and apps. faqDesc: A problem? Learn about Ledger Live, Ledger devices, supported crypto assets and apps.
contactUs: Contact us
contactUsDesc: Need help? Request assistance from Ledger Support by email or chat.
terms: Terms and conditions terms: Terms and conditions
termsDesc: By using Ledger Live you are deemed to have accepted our terms and conditions. termsDesc: By using Ledger Live you are deemed to have accepted our terms and conditions.
#privacy: Privacy policy #privacy: Privacy policy
@ -382,7 +381,7 @@ password:
errorMessageNotMatchingPassword: Passwords don't match errorMessageNotMatchingPassword: Passwords don't match
inputFields: inputFields:
newPassword: newPassword:
label: Password label: New password
placeholder: #remove placeholder: #remove
confirmPassword: confirmPassword:
label: Confirm password label: Confirm password
@ -391,15 +390,15 @@ password:
label: Current password label: Current password
placeholder: placeholder:
changePassword: changePassword:
title: Data encryption title: Password lock
subTitle: Change your password subTitle: Change your password
desc: Make sure to remember your password. Losing your password requires resetting Ledger Live and re-adding accounts. desc: Make sure to remember your password. Losing your password requires resetting Ledger Live and re-adding accounts.
setPassword: setPassword:
title: Enable data encryption title: Enable password lock
subTitle: Set a password subTitle: Set a password
desc: Make sure to remember your password. Losing your password requires resetting Ledger Live and re-adding accounts. desc: Make sure to remember your password. Losing your password requires resetting Ledger Live and re-adding accounts.
disablePassword: disablePassword:
title: Disable data encryption title: Disable password lock
desc: Ledger Live data will be stored unencrypted on your computer. This includes account names, balances, transactions and public addresses. desc: Ledger Live data will be stored unencrypted on your computer. This includes account names, balances, transactions and public addresses.
update: update:
newVersionReady: A new update is available newVersionReady: A new update is available

2
static/i18n/en/language.yml

@ -1,3 +1,3 @@
system: Use system locale system: Use system language
en: English en: English
fr: French fr: French

Loading…
Cancel
Save