Browse Source

Use wording perf update type

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
4a2366a13c
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 5
      src/components/SettingsPage/sections/Help.js
  2. 5
      src/components/modals/UpdateFirmware/Installing.js
  3. 6
      src/components/modals/UpdateFirmware/steps/02-step-flash-mcu.js
  4. 7
      static/i18n/en/app.json

5
src/components/SettingsPage/sections/Help.js

@ -73,10 +73,7 @@ class SectionHelp extends PureComponent<Props> {
>
<ResetButton />
</Row>
<Row
title={t('settings.repairDevice.title')}
desc={t('settings.repairDevice.desc')}
>
<Row title={t('settings.repairDevice.title')} desc={t('settings.repairDevice.desc')}>
<RepairDeviceButton />
</Row>
</Body>

5
src/components/modals/UpdateFirmware/Installing.js

@ -11,9 +11,10 @@ import type { T } from 'types/common'
type Props = {
t: T,
progress: number,
installing: string,
}
function Installing({ t, progress }: Props) {
function Installing({ t, progress, installing }: Props) {
return (
<Fragment>
<Box mx={7} align="center">
@ -21,7 +22,7 @@ function Installing({ t, progress }: Props) {
</Box>
<Box mx={7} mt={4} mb={2}>
<Text ff="Museo Sans|Regular" align="center" color="dark" fontSize={6}>
{t('manager.modal.installing')}
{t(`manager.modal.steps.${installing}`)}
</Text>
</Box>
<Box mx={7} mt={4} mb={7}>

6
src/components/modals/UpdateFirmware/steps/02-step-flash-mcu.js

@ -43,13 +43,13 @@ const Separator = styled(Box).attrs({
type Props = StepProps
type State = {
installing: boolean,
installing: ?string,
progress: number,
}
class StepFlashMcu extends PureComponent<Props, State> {
state = {
installing: false,
installing: null,
progress: 0,
}
@ -92,7 +92,7 @@ class StepFlashMcu extends PureComponent<Props, State> {
const { t } = this.props
return installing ? (
<Installing progress={progress} />
<Installing installing={installing} progress={progress} />
) : (
<Fragment>
<Box mx={7}>

7
static/i18n/en/app.json

@ -258,9 +258,12 @@
},
"modal": {
"steps": {
"updateMCU": "MCU update"
"updateMCU": "MCU update",
"osu": "Installing OSU...",
"flash-mcu": "MCU updating...",
"flash-bootloader": "Bootloader updating...",
"firmware": "Firmware updating..."
},
"installing": "Firmware updating...",
"confirmIdentifier": "Verify the identifier",
"confirmIdentifierText": "Verify that the identifier on your device is the same as the identifier below. Press the right button and enter your PIN code to confirm",
"identifier": "Identifier",

Loading…
Cancel
Save