1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-27 08:31:20 +02:00

Changing translations ids to make it more consistent

This commit is contained in:
Jesús Espino 2020-10-24 09:45:06 +02:00
parent 1c310f746e
commit 230b0a161c
3 changed files with 35 additions and 23 deletions

View File

@ -9,15 +9,16 @@
"Sidebar.untitled-board": "(Untitled Board)",
"Sidebar.untitled-view": "(Untitled View)",
"TableComponent.add-icon": "Add Icon",
"TableComponent.filter": "Filter",
"TableComponent.loading": "Loading...",
"TableComponent.name": "Name",
"TableComponent.new": "New",
"TableComponent.plus-new": "+ New",
"TableComponent.properties": "Properties",
"TableComponent.random-icon": "Random",
"TableComponent.remove-icon": "Remove Icon",
"TableComponent.search": "Search",
"TableComponent.search-text": "Search text",
"TableComponent.sort": "Sort"
}
"ViewHeader.filter": "Filter",
"ViewHeader.group-by": "Group by {property}",
"ViewHeader.new": "New",
"ViewHeader.properties": "Properties",
"ViewHeader.search": "Search",
"ViewHeader.search-text": "Search text",
"ViewHeader.sort": "Sort"
}

View File

@ -9,15 +9,16 @@
"Sidebar.untitled-board": "(Panel sin titulo)",
"Sidebar.untitled-view": "(Vista sin titulo)",
"TableComponent.add-icon": "Añadir Icono",
"TableComponent.filter": "Filtrar",
"TableComponent.loading": "Cargando...",
"TableComponent.name": "Nombre",
"TableComponent.new": "Nueva",
"TableComponent.plus-new": "+ Nueva",
"TableComponent.properties": "Propiedades",
"TableComponent.random-icon": "Aleatorio",
"TableComponent.remove-icon": "Quitar Icono",
"TableComponent.search": "Buscar",
"TableComponent.search-text": "Texto de búsqueda",
"TableComponent.sort": "Ordenar"
"ViewHeader.filter": "Filtrar",
"ViewHeader.group-by": "Agrupar por {property}",
"ViewHeader.new": "Nueva",
"ViewHeader.properties": "Propiedades",
"ViewHeader.search": "Buscar",
"ViewHeader.search-text": "Texto de búsqueda",
"ViewHeader.sort": "Ordenar"
}

View File

@ -136,7 +136,7 @@ export default class ViewHeader extends React.Component<Props, State> {
<MenuWrapper>
<div className={'octo-button'}>
<FormattedMessage
id='TableComponent.properties'
id='ViewHeader.properties'
defaultMessage='Properties'
/>
</div>
@ -170,10 +170,20 @@ export default class ViewHeader extends React.Component<Props, State> {
className='octo-button'
id='groupByButton'
>
Group by <span
style={{color: '#000000'}}
id='groupByLabel'
>{boardTree.groupByProperty?.name}</span>
<FormattedMessage
id='ViewHeader.group-by'
defaultMessage='Group by {property}'
values={{
property: (
<span
style={{color: '#000000'}}
id='groupByLabel'
>
{boardTree.groupByProperty?.name}
</span>
),
}}
/>
</div>
<Menu>
{boardTree.board.cardProperties.filter((o) => o.type === 'select').map((option) => (
@ -198,7 +208,7 @@ export default class ViewHeader extends React.Component<Props, State> {
onClick={this.filterClicked}
>
<FormattedMessage
id='TableComponent.filter'
id='ViewHeader.filter'
defaultMessage='Filter'
/>
{this.state.showFilter &&
@ -210,7 +220,7 @@ export default class ViewHeader extends React.Component<Props, State> {
<MenuWrapper>
<div className={hasSort ? 'octo-button active' : 'octo-button'}>
<FormattedMessage
id='TableComponent.sort'
id='ViewHeader.sort'
defaultMessage='Sort'
/>
</div>
@ -241,7 +251,7 @@ export default class ViewHeader extends React.Component<Props, State> {
</MenuWrapper>
{this.state.isSearching &&
<FormattedMessage
id='TableComponent.search-text'
id='ViewHeader.search-text'
defaultMessage='Search text'
>
{(placeholder: string) => (
@ -267,7 +277,7 @@ export default class ViewHeader extends React.Component<Props, State> {
}}
>
<FormattedMessage
id='TableComponent.search'
id='ViewHeader.search'
defaultMessage='Search'
/>
</div>}
@ -308,7 +318,7 @@ export default class ViewHeader extends React.Component<Props, State> {
}}
>
<FormattedMessage
id='TableComponent.new'
id='ViewHeader.new'
defaultMessage='New'
/>
</div>