English Transilation added

This commit is contained in:
jubitjohn 2023-06-24 00:08:40 +05:30
parent f453750570
commit 6514198cf3
5 changed files with 29 additions and 31 deletions

View file

@ -232,6 +232,15 @@
"CAPTION_PLACEHOLDER": "", "CAPTION_PLACEHOLDER": "",
"LOCATION": "", "LOCATION": "",
"SHOW_ON_MAP": "", "SHOW_ON_MAP": "",
"MAP":"",
"MAP_SETTINGS":"",
"ENABLE_MAPS":"",
"DISABLE_MAPS":"",
"ENABLE_MAP_DESCRIPTION_1":"",
"ENABLE_MAP_DESCRIPTION_2":"",
"ENABLE_MAP_DESCRIPTION_3":"",
"DISABLE_MAP_DESCRIPTION_1":"",
"DISABLE_MAP_DESCRIPTION_2":"",
"DETAILS": "", "DETAILS": "",
"VIEW_EXIF": "", "VIEW_EXIF": "",
"NO_EXIF": "", "NO_EXIF": "",

View file

@ -232,6 +232,15 @@
"CAPTION_PLACEHOLDER": "Add a description", "CAPTION_PLACEHOLDER": "Add a description",
"LOCATION": "Location", "LOCATION": "Location",
"SHOW_ON_MAP": "View on OpenStreetMap", "SHOW_ON_MAP": "View on OpenStreetMap",
"MAP":"Map",
"MAP_SETTINGS":"Map Settings",
"ENABLE_MAPS":"Enable Maps?",
"DISABLE_MAPS":"Disable Maps?",
"ENABLE_MAP_DESCRIPTION_1":"This will show your photos on a worldmap.",
"ENABLE_MAP_DESCRIPTION_2":"The map is hosted by OpenStreetMap, and the exact locations of your photos are never shared.",
"ENABLE_MAP_DESCRIPTION_3":"You can disable this feature anytime from Settings.",
"DISABLE_MAP_DESCRIPTION_1":"This will disable the display of your photos on a world map.",
"DISABLE_MAP_DESCRIPTION_2":"You can enable this feature anytime from Settings.",
"DETAILS": "Details", "DETAILS": "Details",
"VIEW_EXIF": "View all EXIF data", "VIEW_EXIF": "View all EXIF data",
"NO_EXIF": "No EXIF data", "NO_EXIF": "No EXIF data",

View file

@ -43,7 +43,7 @@ export default function AdvancedMapSettings({ open, onClose, onRootClose }) {
<Stack spacing={'4px'} py={'12px'}> <Stack spacing={'4px'} py={'12px'}>
<Titlebar <Titlebar
onClose={onClose} onClose={onClose}
title={t('Map')} title={t('MAP')}
onRootClose={handleRootClose} onRootClose={handleRootClose}
/> />
@ -55,7 +55,7 @@ export default function AdvancedMapSettings({ open, onClose, onRootClose }) {
onClick={openMapSettings} onClick={openMapSettings}
variant="toggle" variant="toggle"
checked={mapEnabledToggle} checked={mapEnabledToggle}
label={t('Map Settings')} label={t('MAP_SETTINGS')}
/> />
</MenuItemGroup> </MenuItemGroup>
</Box> </Box>

View file

@ -8,25 +8,17 @@ export default function EnableMap({ onClose, disableMap, onRootClose }) {
<Stack spacing={'4px'} py={'12px'}> <Stack spacing={'4px'} py={'12px'}>
<Titlebar <Titlebar
onClose={onClose} onClose={onClose}
title={t('Disable Maps?')} title={t('DISABLE_MAPS')}
onRootClose={onRootClose} onRootClose={onRootClose}
/> />
<Stack py={'20px'} px={'8px'} spacing={'32px'}> <Stack py={'20px'} px={'8px'} spacing={'32px'}>
<Box px={'8px'}> <Box px={'8px'}>
{' '} {' '}
<Typography color="text.muted"> <Typography color="text.muted">
<Trans <Trans i18nKey={'DISABLE_MAP_DESCRIPTION_1'} />
i18nKey={
'This will disable the display of your photos on a world map.'
}
/>
<br /> <br />
<br /> <br />
<Trans <Trans i18nKey={'DISABLE_MAP_DESCRIPTION_2'} />
i18nKey={
'You can enable this feature anytime from Settings.'
}
/>
</Typography> </Typography>
</Box> </Box>
<Stack px={'8px'} spacing={'8px'}> <Stack px={'8px'} spacing={'8px'}>
@ -37,7 +29,7 @@ export default function EnableMap({ onClose, disableMap, onRootClose }) {
{t('DISABLE')} {t('DISABLE')}
</Button> </Button>
<Button color={'secondary'} size="large" onClick={onClose}> <Button color={'secondary'} size="large" onClick={onClose}>
{t('Cancel')} {t('CANCEL')}
</Button> </Button>
</Stack> </Stack>
</Stack> </Stack>

View file

@ -8,34 +8,22 @@ export default function EnableMap({ onClose, enableMap, onRootClose }) {
<Stack spacing={'4px'} py={'12px'}> <Stack spacing={'4px'} py={'12px'}>
<Titlebar <Titlebar
onClose={onClose} onClose={onClose}
title={t('Enable Maps?')} title={t('ENABLE_MAPS')}
onRootClose={onRootClose} onRootClose={onRootClose}
/> />
<Stack py={'20px'} px={'8px'} spacing={'32px'}> <Stack py={'20px'} px={'8px'} spacing={'32px'}>
<Box px={'8px'}> <Box px={'8px'}>
{' '} {' '}
<Typography color="text.muted"> <Typography color="text.muted">
<Trans <Trans i18nKey={'ENABLE_MAP_DESCRIPTION_1'} />
i18nKey={
'This will show your photos on a worldmap.'
}
/>
<br /> <br />
<br /> <br />
<Trans <Trans i18nKey={'ENABLE_MAP_DESCRIPTION_2'} />
i18nKey={
'The map is hosted by OpenStreetMap, and the exact locations of your photos are never shared.'
}
/>
<br /> <br />
<br /> <br />
<Trans <Trans i18nKey={'ENABLE_MAP_DESCRIPTION_3'} />
i18nKey={
'You can disable this feature anytime from Settings.'
}
/>
</Typography> </Typography>
</Box> </Box>
<Stack px={'8px'} spacing={'8px'}> <Stack px={'8px'} spacing={'8px'}>
@ -43,7 +31,7 @@ export default function EnableMap({ onClose, enableMap, onRootClose }) {
{t('ENABLE')} {t('ENABLE')}
</Button> </Button>
<Button color={'secondary'} size="large" onClick={onClose}> <Button color={'secondary'} size="large" onClick={onClose}>
{t('Cancel')} {t('CANCEL')}
</Button> </Button>
</Stack> </Stack>
</Stack> </Stack>