mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Improvments on translations of the ViewTitle
This commit is contained in:
parent
52956c3587
commit
d4f65a38fa
@ -12,8 +12,6 @@
|
||||
"TableComponent.loading": "Loading...",
|
||||
"TableComponent.name": "Name",
|
||||
"TableComponent.plus-new": "+ New",
|
||||
"TableComponent.random-icon": "Random",
|
||||
"TableComponent.remove-icon": "Remove Icon",
|
||||
"ViewHeader.export-board-archive": "Export Board Archive",
|
||||
"ViewHeader.export-csv": "Export to CSV",
|
||||
"ViewHeader.filter": "Filter",
|
||||
@ -25,5 +23,8 @@
|
||||
"ViewHeader.sort": "Sort",
|
||||
"ViewHeader.test-add-100-cards": "TEST: Add 100 cards",
|
||||
"ViewHeader.test-add-1000-cards": "TEST: Add 1,000 cards",
|
||||
"ViewHeader.test-randomize-icons": "TEST: Randomize icons"
|
||||
"ViewHeader.test-randomize-icons": "TEST: Randomize icons",
|
||||
"ViewTitle.random-icon": "Random",
|
||||
"ViewTitle.remove-icon": "Remove Icon",
|
||||
"ViewTitle.untitled-board": "Untitled Board"
|
||||
}
|
@ -12,8 +12,6 @@
|
||||
"TableComponent.loading": "Cargando...",
|
||||
"TableComponent.name": "Nombre",
|
||||
"TableComponent.plus-new": "+ Nueva",
|
||||
"TableComponent.random-icon": "Aleatorio",
|
||||
"TableComponent.remove-icon": "Quitar Icono",
|
||||
"ViewHeader.export-board-archive": "Exportar Archivo del Panel",
|
||||
"ViewHeader.export-csv": "Exportar a CSV",
|
||||
"ViewHeader.filter": "Filtrar",
|
||||
@ -25,5 +23,8 @@
|
||||
"ViewHeader.sort": "Ordenar",
|
||||
"ViewHeader.test-add-100-cards": "TEST: Añadir 100 tarjetas",
|
||||
"ViewHeader.test-add-1000-cards": "TEST: Añadir 1,000 tarjetas",
|
||||
"ViewHeader.test-randomize-icons": "TEST: Iconos aleatorios"
|
||||
"ViewHeader.test-randomize-icons": "TEST: Iconos aleatorios",
|
||||
"ViewTitle.random-icon": "Aleatorio",
|
||||
"ViewTitle.remove-icon": "Quitar Icono",
|
||||
"ViewTitle.untitled-board": "Panel sin título"
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class ViewTitle extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
render(): JSX.Element {
|
||||
const {board} = this.props
|
||||
const {board, intl} = this.props
|
||||
|
||||
return (
|
||||
<>
|
||||
@ -64,47 +64,26 @@ class ViewTitle extends React.Component<Props, State> {
|
||||
<MenuWrapper>
|
||||
<div className='octo-button octo-icon'>{board.icon}</div>
|
||||
<Menu>
|
||||
<FormattedMessage
|
||||
id='TableComponent.random-icon'
|
||||
defaultMessage='Random'
|
||||
>
|
||||
{(text: string) => (
|
||||
<Menu.Text
|
||||
id='random'
|
||||
name={text}
|
||||
onClick={() => mutator.changeIcon(board, BlockIcons.shared.randomIcon())}
|
||||
/>
|
||||
)}
|
||||
</FormattedMessage>
|
||||
<FormattedMessage
|
||||
id='TableComponent.remove-icon'
|
||||
defaultMessage='Remove Icon'
|
||||
>
|
||||
{(text: string) => (
|
||||
<Menu.Text
|
||||
id='remove'
|
||||
name={text}
|
||||
onClick={() => mutator.changeIcon(board, undefined, 'remove icon')}
|
||||
/>
|
||||
)}
|
||||
</FormattedMessage>
|
||||
<Menu.Text
|
||||
id='random'
|
||||
name={intl.formatMessage({id: 'ViewTitle.random-icon', defaultMessage: 'Random'})}
|
||||
onClick={() => mutator.changeIcon(board, BlockIcons.shared.randomIcon())}
|
||||
/>
|
||||
<Menu.Text
|
||||
id='remove'
|
||||
name={intl.formatMessage({id: 'ViewTitle.remove-icon', defaultMessage: 'Remove Icon'})}
|
||||
onClick={() => mutator.changeIcon(board, undefined, 'remove icon')}
|
||||
/>
|
||||
</Menu>
|
||||
</MenuWrapper>}
|
||||
<FormattedMessage
|
||||
id='TableComponent.remove-icon'
|
||||
defaultMessage='Remove Icon'
|
||||
>
|
||||
{(placeholder: string) => (
|
||||
<Editable
|
||||
className='title'
|
||||
text={board.title}
|
||||
placeholderText={placeholder}
|
||||
onChanged={(text) => {
|
||||
mutator.changeTitle(board, text)
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</FormattedMessage>
|
||||
<Editable
|
||||
className='title'
|
||||
text={board.title}
|
||||
placeholderText={intl.formatMessage({id: 'ViewTitle.untitled-board', defaultMessage: 'Untitled Board'})}
|
||||
onChanged={(text) => {
|
||||
mutator.changeTitle(board, text)
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user