mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Fixing translations visualizing filters
This commit is contained in:
parent
1e4172d699
commit
024ba1f1a7
@ -11,12 +11,12 @@
|
||||
"BoardComponent.no-property-title": "Items with an empty {property} property will go here. This column cannot be removed.",
|
||||
"BoardComponent.show": "Show",
|
||||
"Comment.delete": "Delete",
|
||||
"Filter.includes": "includes",
|
||||
"Filter.is-empty": "is empty",
|
||||
"Filter.is-not-empty": "is not empty",
|
||||
"Filter.not-includes": "doesn't include",
|
||||
"FilterComponent.add-filter": "+ Add Filter",
|
||||
"FilterComponent.delete": "Delete",
|
||||
"FilterComponent.includes": "includes",
|
||||
"FilterComponent.is-empty": "is empty",
|
||||
"FilterComponent.is-not-empty": "is not empty",
|
||||
"FilterComponent.not-includes": "doesn't include",
|
||||
"Sidebar.add-board": "+ Add Board",
|
||||
"Sidebar.delete-board": "Delete Board",
|
||||
"Sidebar.export-archive": "Export Archive",
|
||||
@ -52,4 +52,4 @@
|
||||
"ViewTitle.random-icon": "Random",
|
||||
"ViewTitle.remove-icon": "Remove Icon",
|
||||
"ViewTitle.untitled-board": "Untitled Board"
|
||||
}
|
||||
}
|
@ -11,12 +11,12 @@
|
||||
"BoardComponent.no-property-title": "Elementos sin la propiedad {property} irán aquí. Esta columna no se puede eliminar.",
|
||||
"BoardComponent.show": "Mostrar",
|
||||
"Comment.delete": "Borrar",
|
||||
"Filter.includes": "incluye",
|
||||
"Filter.is-empty": "está vacío",
|
||||
"Filter.is-not-empty": "no está vacío",
|
||||
"Filter.not-includes": "no incluye",
|
||||
"FilterComponent.add-filter": "+ Añadir filtro",
|
||||
"FilterComponent.delete": "Borrar",
|
||||
"FilterComponent.includes": "incluye",
|
||||
"FilterComponent.is-empty": "está vacío",
|
||||
"FilterComponent.is-not-empty": "no está vacío",
|
||||
"FilterComponent.not-includes": "no incluye",
|
||||
"Sidebar.add-board": "+ Añadir Panel",
|
||||
"Sidebar.delete-board": "Borrar Panel",
|
||||
"Sidebar.export-archive": "Exportar Archivo",
|
||||
|
@ -112,26 +112,26 @@ class FilterComponent extends React.Component<Props> {
|
||||
</Menu>
|
||||
</MenuWrapper>
|
||||
<MenuWrapper>
|
||||
<div className='octo-button'>{FilterClause.filterConditionDisplayString(filter.condition)}</div>
|
||||
<div className='octo-button'>{FilterClause.filterConditionDisplayString(filter.condition, intl)}</div>
|
||||
<Menu>
|
||||
<Menu.Text
|
||||
id='includes'
|
||||
name={intl.formatMessage({id: 'FilterComponent.includes', defaultMessage: 'includes'})}
|
||||
name={intl.formatMessage({id: 'Filter.includes', defaultMessage: 'includes'})}
|
||||
onClick={(id) => this.conditionClicked(id, filter)}
|
||||
/>
|
||||
<Menu.Text
|
||||
id='notIncludes'
|
||||
name={intl.formatMessage({id: 'FilterComponent.not-includes', defaultMessage: 'doesn\'t include'})}
|
||||
name={intl.formatMessage({id: 'Filter.not-includes', defaultMessage: 'doesn\'t include'})}
|
||||
onClick={(id) => this.conditionClicked(id, filter)}
|
||||
/>
|
||||
<Menu.Text
|
||||
id='isEmpty'
|
||||
name={intl.formatMessage({id: 'FilterComponent.is-empty', defaultMessage: 'is empty'})}
|
||||
name={intl.formatMessage({id: 'Filter.is-empty', defaultMessage: 'is empty'})}
|
||||
onClick={(id) => this.conditionClicked(id, filter)}
|
||||
/>
|
||||
<Menu.Text
|
||||
id='isNotEmpty'
|
||||
name={intl.formatMessage({id: 'FilterComponent.is-not-empty', defaultMessage: 'is not empty'})}
|
||||
name={intl.formatMessage({id: 'Filter.is-not-empty', defaultMessage: 'is not empty'})}
|
||||
onClick={(id) => this.conditionClicked(id, filter)}
|
||||
/>
|
||||
</Menu>
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
import {Utils} from './utils'
|
||||
import {IntlShape} from 'react-intl'
|
||||
|
||||
type FilterCondition = 'includes' | 'notIncludes' | 'isEmpty' | 'isNotEmpty'
|
||||
|
||||
@ -9,12 +10,12 @@ class FilterClause {
|
||||
condition: FilterCondition
|
||||
values: string[]
|
||||
|
||||
static filterConditionDisplayString(filterCondition: FilterCondition): string {
|
||||
static filterConditionDisplayString(filterCondition: FilterCondition, intl: IntlShape): string {
|
||||
switch (filterCondition) {
|
||||
case 'includes': return 'includes'
|
||||
case 'notIncludes': return "doesn't include"
|
||||
case 'isEmpty': return 'is empty'
|
||||
case 'isNotEmpty': return 'is not empty'
|
||||
case 'includes': return intl.formatMessage({id: 'Filter.includes', defaultMessage: 'includes'})
|
||||
case 'notIncludes': return intl.formatMessage({id: 'Filter.not-includes', defaultMessage: 'doesn\'t include'})
|
||||
case 'isEmpty': return intl.formatMessage({id: 'Filter.is-empty', defaultMessage: 'is empty'})
|
||||
case 'isNotEmpty': return intl.formatMessage({id: 'Filter.is-not-empty', defaultMessage: 'is not empty'})
|
||||
default: {
|
||||
Utils.assertFailure()
|
||||
return '(unknown)'
|
||||
|
Loading…
Reference in New Issue
Block a user