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 /> <ResetButton />
</Row> </Row>
<Row <Row title={t('settings.repairDevice.title')} desc={t('settings.repairDevice.desc')}>
title={t('settings.repairDevice.title')}
desc={t('settings.repairDevice.desc')}
>
<RepairDeviceButton /> <RepairDeviceButton />
</Row> </Row>
</Body> </Body>

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

@ -11,9 +11,10 @@ import type { T } from 'types/common'
type Props = { type Props = {
t: T, t: T,
progress: number, progress: number,
installing: string,
} }
function Installing({ t, progress }: Props) { function Installing({ t, progress, installing }: Props) {
return ( return (
<Fragment> <Fragment>
<Box mx={7} align="center"> <Box mx={7} align="center">
@ -21,7 +22,7 @@ function Installing({ t, progress }: Props) {
</Box> </Box>
<Box mx={7} mt={4} mb={2}> <Box mx={7} mt={4} mb={2}>
<Text ff="Museo Sans|Regular" align="center" color="dark" fontSize={6}> <Text ff="Museo Sans|Regular" align="center" color="dark" fontSize={6}>
{t('manager.modal.installing')} {t(`manager.modal.steps.${installing}`)}
</Text> </Text>
</Box> </Box>
<Box mx={7} mt={4} mb={7}> <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 Props = StepProps
type State = { type State = {
installing: boolean, installing: ?string,
progress: number, progress: number,
} }
class StepFlashMcu extends PureComponent<Props, State> { class StepFlashMcu extends PureComponent<Props, State> {
state = { state = {
installing: false, installing: null,
progress: 0, progress: 0,
} }
@ -92,7 +92,7 @@ class StepFlashMcu extends PureComponent<Props, State> {
const { t } = this.props const { t } = this.props
return installing ? ( return installing ? (
<Installing progress={progress} /> <Installing installing={installing} progress={progress} />
) : ( ) : (
<Fragment> <Fragment>
<Box mx={7}> <Box mx={7}>

7
static/i18n/en/app.json

@ -258,9 +258,12 @@
}, },
"modal": { "modal": {
"steps": { "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", "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", "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", "identifier": "Identifier",

Loading…
Cancel
Save