Typos 'texte' => 'parole'

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-23 18:34:55 +04:00
parent c39a0e6669
commit 2d2d531a3e
10 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ export default function AwtisDetay({anAwtis}) {
aria-controls='panel-teks-content'
id='panel-teks-header'
>
<Typography marginRight={2} textAlign='center' variant='body1' component='h2'><strong>Liste des textes</strong></Typography>
<Typography marginRight={2} textAlign='center' variant='body1' component='h2'><strong>Liste des paroles</strong></Typography>
<Chip color='primary' label={paroles.data.length} size='small' variant='contained' />
</AccordionSummary>
<AccordionDetails>
@@ -86,7 +86,7 @@ export default function AwtisDetay({anAwtis}) {
</Accordion>
) : (
<>
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Texte</strong></Typography>
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Parole</strong></Typography>
<Paper>
<MizikLis paroles={paroles.data} />
</Paper>
+1 -1
View File
@@ -86,7 +86,7 @@ export default function AwtisKat({artiste}) {
{alias}
</Typography>
<Typography align='center' variant='body2' color='textSecondary' component='h5'>
{`${paroles.data.length} ${paroles.data.length > 1 ? 'textes' : 'texte'}`}
{`${paroles.data.length} ${paroles.data.length > 1 ? 'paroles' : 'parole'}`}
</Typography>
</CardContent>
</CardActionArea>
+2 -2
View File
@@ -30,7 +30,7 @@ function Chwa(props) {
return (
<Dialog open={open} onClose={handleClose}>
<DialogTitle>Choisir le texte à modifier</DialogTitle>
<DialogTitle>Choisir la parole à modifier</DialogTitle>
{loading ? (
<Container sx={{textAlign: 'center', marginBottom: 1}}>
<CircularProgress size={20} sx={{color: '#29d'}} />
@@ -94,7 +94,7 @@ export default function ChwaTeks({selectedTeks, setSelectedTeks}) {
return (
<Container sx={{textAlign: 'center', marginBottom: 1}} maxWidth='sm'>
<Button variant='outlined' onClick={handleClickOpen}>
Modifier mes textes
Modifier mes paroles
</Button>
<Chwa
selectedTeks={selectedTeks}
+2 -2
View File
@@ -155,7 +155,7 @@ function EkriTeks({canAutoTranslate, selectedTeks, setSelectedTeks}) {
})
const {data} = teksResponse
setSuccess(`Le texte "${data.tit}" a été modifié avec succès. Il apparaîtra sur le site après validation.`)
setSuccess(`Le morceau "${data.tit}" a été modifié avec succès. Il apparaîtra sur le site après validation.`)
setLoading(false)
} catch (error) {
setError(error?.response?.data)
@@ -288,7 +288,7 @@ function EkriTeks({canAutoTranslate, selectedTeks, setSelectedTeks}) {
<StyledContainer maxWidth='sm'>
<Box sx={{textAlign: 'center', marginBottom: 2}}>
<Typography display='inline' variant='h6' component='h1'>
Soumettre un texte
Soumettre une parole
</Typography>
</Box>
<form noValidate autoComplete='off'>
+2 -2
View File
@@ -4,8 +4,8 @@ import {Button} from '@mui/material'
export default function MontreTeks({handleClick}) {
return (
<Box sx={{'& > :not(style)': {m: 1.7}}}>
<Button variant='text' onClick={handleClick}>Afficher tous les textes</Button>
<Box sx={{'& > :not(style)': {m: 0.5}}}>
<Button variant='text' onClick={handleClick}>Afficher toutes les paroles</Button>
</Box>
)
}
+1 -1
View File
@@ -51,7 +51,7 @@ export default function Pataje({parole, setError, setSuccess}) {
const alias = artistes.data.map(({attributes}) => attributes.alias)
const renderAwtis = new Intl.ListFormat('fr').format(alias)
const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (texte soumis par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${parole} (Paroles et Traductions)`
const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (parole soumise par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${parole} (Paroles et Traductions)`
const handleClose = () => {
setOpen(false)
+1 -1
View File
@@ -163,7 +163,7 @@ export default function TeksDrawer({parole, paroleId, slug, denyeTeks}) {
</Stream>
) : (
<Typography noWrap variant='h6'>
Derniers textes
Dernières paroles
</Typography>
)}
</Toolbar>
+3 -3
View File
@@ -68,12 +68,12 @@ export default function TeksKat({parole}) {
<Typography variant='caption'>
{parole.user && (
<>
(<i>texte soumis par {parole.user.username}</i>)
(<i>parole soumise par {parole.user.username}</i>)
</>
)}
{parole.userAdmin && !parole.user && (
<>
(<i>texte soumis par {parole.userAdmin}</i>)
(<i>parole soumise par {parole.userAdmin}</i>)
</>
)}
</Typography>
@@ -84,7 +84,7 @@ export default function TeksKat({parole}) {
{annee}
</Typography>
<Typography align='center' style={{marginTop: '0.5em'}} variant='body1' color='textSecondary' component='p'>
Publié le : {datPiblikasyon}
Publiée le : {datPiblikasyon}
</Typography>
</CardContent>
</CardActionArea>
+2 -2
View File
@@ -158,12 +158,12 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
</Typography>
{parole?.user?.data && (
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
<i>texte soumis par {parole.user.data.attributes.username}</i>
<i>parole soumise par {parole.user.data.attributes.username}</i>
</Typography>
)}
{parole?.userAdmin?.data && !parole.user.data && (
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
<i>texte soumis par {parole.userAdmin.data.attributes.username || parole.userAdmin.data.attributes.firstname}</i>
<i>parole soumise par {parole.userAdmin.data.attributes.username || parole.userAdmin.data.attributes.firstname}</i>
</Typography>
)}
</Box>
+1 -1
View File
@@ -41,7 +41,7 @@ export default function Home({errorCode, errorMessage, stats}) {
<Chip sx={{fontWeight: 'bold'}} color='primary' icon={<ArrowCircleDownIcon />} label='Statistiques' variant='outlined' />
</Divider>
<Grid container spacing={2} sx={{marginBottom: 3}}>
<KatKayLa tit='Textes' kantite={stats.countParole} href='/paroles' as='/paroles' />
<KatKayLa tit='Paroles' kantite={stats.countParole} href='/paroles' as='/paroles' />
<KatKayLa tit='Artistes' kantite={stats.countArtiste} href='/awtis?paj&paj=1' as='/awtis/paj/1' />
</Grid>
</Container>