mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Fix new translations
This commit is contained in:
parent
78a1c2d890
commit
67c09d7f5a
@ -141,7 +141,7 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
rangeInput(
|
rangeInput(
|
||||||
columnFilter.min, {
|
columnFilter.min, {
|
||||||
isDateFilter,
|
isDateFilter,
|
||||||
placeholder: isDateFilter ? t('DateRangeMin') : t('RangeMin'),
|
placeholder: isDateFilter ? t("Start") : t("Min"),
|
||||||
valueParser,
|
valueParser,
|
||||||
valueFormatter,
|
valueFormatter,
|
||||||
isSelected: isMinSelected,
|
isSelected: isMinSelected,
|
||||||
@ -154,7 +154,7 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
rangeInput(
|
rangeInput(
|
||||||
columnFilter.max, {
|
columnFilter.max, {
|
||||||
isDateFilter,
|
isDateFilter,
|
||||||
placeholder: isDateFilter ? t('DateRangeMax') : t('RangeMax'),
|
placeholder: isDateFilter ? t("End") : t("Max"),
|
||||||
valueParser,
|
valueParser,
|
||||||
valueFormatter,
|
valueFormatter,
|
||||||
isSelected: isMaxSelected,
|
isSelected: isMaxSelected,
|
||||||
@ -216,7 +216,7 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
searchInput = cssSearch(
|
searchInput = cssSearch(
|
||||||
searchValueObs, { onInput: true },
|
searchValueObs, { onInput: true },
|
||||||
testId('search-input'),
|
testId('search-input'),
|
||||||
{ type: 'search', placeholder: t('SearchValues') },
|
{ type: 'search', placeholder: t('Search values') },
|
||||||
dom.onKeyDown({
|
dom.onKeyDown({
|
||||||
Enter: () => {
|
Enter: () => {
|
||||||
if (searchValueObs.get()) {
|
if (searchValueObs.get()) {
|
||||||
@ -252,14 +252,14 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
const state = use(columnFilter.state);
|
const state = use(columnFilter.state);
|
||||||
return [
|
return [
|
||||||
cssSelectAll(
|
cssSelectAll(
|
||||||
dom.text(searchValue ? t('AllShown') : t('All')),
|
dom.text(searchValue ? t('All Shown') : t('All')),
|
||||||
dom.prop('disabled', isEquivalentFilter(state, allSpec)),
|
dom.prop('disabled', isEquivalentFilter(state, allSpec)),
|
||||||
dom.on('click', () => columnFilter.setState(allSpec)),
|
dom.on('click', () => columnFilter.setState(allSpec)),
|
||||||
testId('bulk-action'),
|
testId('bulk-action'),
|
||||||
),
|
),
|
||||||
cssDotSeparator('•'),
|
cssDotSeparator('•'),
|
||||||
cssSelectAll(
|
cssSelectAll(
|
||||||
searchValue ? t('AllExcept') : t('None'),
|
searchValue ? t('All Except') : t('None'),
|
||||||
dom.prop('disabled', isEquivalentFilter(state, noneSpec)),
|
dom.prop('disabled', isEquivalentFilter(state, noneSpec)),
|
||||||
dom.on('click', () => columnFilter.setState(noneSpec)),
|
dom.on('click', () => columnFilter.setState(noneSpec)),
|
||||||
testId('bulk-action'),
|
testId('bulk-action'),
|
||||||
@ -274,7 +274,7 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
),
|
),
|
||||||
cssItemList(
|
cssItemList(
|
||||||
testId('list'),
|
testId('list'),
|
||||||
dom.maybe(use => use(filteredValues).length === 0, () => cssNoResults(t('NoMatchingValues'))),
|
dom.maybe(use => use(filteredValues).length === 0, () => cssNoResults(t("No matching values"))),
|
||||||
dom.domComputed(filteredValues, (values) => values.slice(0, model.limitShown).map(([key, value]) => (
|
dom.domComputed(filteredValues, (values) => values.slice(0, model.limitShown).map(([key, value]) => (
|
||||||
cssMenuItem(
|
cssMenuItem(
|
||||||
cssLabel(
|
cssLabel(
|
||||||
@ -310,17 +310,17 @@ export function columnFilterMenu(owner: IDisposableOwner, opts: IFilterMenuOptio
|
|||||||
}
|
}
|
||||||
if (isAboveLimit) {
|
if (isAboveLimit) {
|
||||||
return searchValue ? [
|
return searchValue ? [
|
||||||
buildSummary(t('OtherMatching'), valuesBeyondLimit, false, model),
|
buildSummary(t("Other Matching"), valuesBeyondLimit, false, model),
|
||||||
buildSummary(t('OtherNonMatching'), otherValues, true, model),
|
buildSummary(t("Other Non-Matching"), otherValues, true, model),
|
||||||
] : [
|
] : [
|
||||||
buildSummary(t('OtherValues'), concat(otherValues, valuesBeyondLimit), false, model),
|
buildSummary(t("Other Values"), concat(otherValues, valuesBeyondLimit), false, model),
|
||||||
buildSummary(t('FutureValues'), [], true, model),
|
buildSummary(t("Future Values"), [], true, model),
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
return anyOtherValues ? [
|
return anyOtherValues ? [
|
||||||
buildSummary(t('Others'), otherValues, true, model)
|
buildSummary(t('Others'), otherValues, true, model)
|
||||||
] : [
|
] : [
|
||||||
buildSummary(t('FutureValues'), [], true, model)
|
buildSummary(t("Future Values"), [], true, model)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user