mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
committed by
GitHub
parent
5d3265b6db
commit
fc20e8b594
@@ -132,7 +132,7 @@ function ColumnCollectionTable({
|
||||
{showExpression && (
|
||||
<Field
|
||||
fieldKey="expression"
|
||||
label={t('SQL Expression')}
|
||||
label={t('SQL expression')}
|
||||
control={
|
||||
<TextAreaControl
|
||||
language="markdown"
|
||||
@@ -164,7 +164,7 @@ function ColumnCollectionTable({
|
||||
{allowEditDataType && (
|
||||
<Field
|
||||
fieldKey="type"
|
||||
label={t('Data Type')}
|
||||
label={t('Data type')}
|
||||
control={
|
||||
<SelectControl choices={DATA_TYPES} name="type" freeForm />
|
||||
}
|
||||
@@ -172,13 +172,13 @@ function ColumnCollectionTable({
|
||||
)}
|
||||
<Field
|
||||
fieldKey="python_date_format"
|
||||
label={t('Datetime Format')}
|
||||
label={t('Datetime format')}
|
||||
description={
|
||||
/* Note the fragmented translations may not work. */
|
||||
<div>
|
||||
{t('The pattern of timestamp format. For strings use ')}
|
||||
<a href="https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior">
|
||||
{t('python datetime string pattern')}
|
||||
{t('Python datetime string pattern')}
|
||||
</a>
|
||||
{t(' expression which needs to adhere to the ')}
|
||||
<a href="https://en.wikipedia.org/wiki/ISO_8601">
|
||||
@@ -207,10 +207,10 @@ function ColumnCollectionTable({
|
||||
}
|
||||
columnLabels={{
|
||||
column_name: t('Column'),
|
||||
type: t('Data Type'),
|
||||
groupby: t('Is Dimension'),
|
||||
is_dttm: t('Is Temporal'),
|
||||
filterable: t('Is Filterable'),
|
||||
type: t('Data type'),
|
||||
groupby: t('Is dimension'),
|
||||
is_dttm: t('Is temporal'),
|
||||
filterable: t('Is filterable'),
|
||||
}}
|
||||
onChange={onChange}
|
||||
itemRenderers={{
|
||||
@@ -537,7 +537,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
{this.state.isSqla && (
|
||||
<Field
|
||||
fieldKey="fetch_values_predicate"
|
||||
label={t('Autocomplete Query Predicate')}
|
||||
label={t('Autocomplete query predicate')}
|
||||
description={t(
|
||||
'When using "Autocomplete filters", this can be used to improve performance ' +
|
||||
'of the query fetching the values. Use this option to apply a ' +
|
||||
@@ -599,7 +599,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
>
|
||||
<Field
|
||||
fieldKey="cache_timeout"
|
||||
label={t('Cache Timeout')}
|
||||
label={t('Cache timeout')}
|
||||
description={t(
|
||||
'The duration of time in seconds before the cache is invalidated',
|
||||
)}
|
||||
@@ -702,14 +702,14 @@ class DatasourceEditor extends React.PureComponent {
|
||||
/>
|
||||
<Field
|
||||
fieldKey="table_name"
|
||||
label={t('dataset name')}
|
||||
label={t('Dataset name')}
|
||||
control={
|
||||
<TextControl
|
||||
controlId="table_name"
|
||||
onChange={table => {
|
||||
this.onDatasourcePropChange('table_name', table);
|
||||
}}
|
||||
placeholder={t('dataset name')}
|
||||
placeholder={t('Dataset name')}
|
||||
disabled={!this.state.isEditMode}
|
||||
/>
|
||||
}
|
||||
@@ -835,7 +835,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
columnLabels={{
|
||||
metric_name: t('Metric'),
|
||||
verbose_name: t('Label'),
|
||||
expression: t('SQL Expression'),
|
||||
expression: t('SQL expression'),
|
||||
}}
|
||||
expandFieldset={
|
||||
<FormContainer>
|
||||
@@ -857,13 +857,13 @@ class DatasourceEditor extends React.PureComponent {
|
||||
/>
|
||||
<Field
|
||||
fieldKey="d3format"
|
||||
label={t('D3 Format')}
|
||||
label={t('D3 format')}
|
||||
control={
|
||||
<TextControl controlId="d3format" placeholder="%y/%m/%d" />
|
||||
}
|
||||
/>
|
||||
<Field
|
||||
label={t('Warning Message')}
|
||||
label={t('Warning message')}
|
||||
fieldKey="warning_text"
|
||||
description={t(
|
||||
'Warning message to display in the metric selector',
|
||||
@@ -871,12 +871,12 @@ class DatasourceEditor extends React.PureComponent {
|
||||
control={
|
||||
<TextControl
|
||||
controlId="warning_text"
|
||||
placeholder={t('Warning Message')}
|
||||
placeholder={t('Warning message')}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Field
|
||||
label={t('Certified By')}
|
||||
label={t('Certified by')}
|
||||
fieldKey="certified_by"
|
||||
description={t(
|
||||
'Person or group that has certified this metric',
|
||||
@@ -884,18 +884,18 @@ class DatasourceEditor extends React.PureComponent {
|
||||
control={
|
||||
<TextControl
|
||||
controlId="certified_by"
|
||||
placeholder={t('Certified By')}
|
||||
placeholder={t('Certified by')}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
<Field
|
||||
label={t('Certification Details')}
|
||||
label={t('Certification details')}
|
||||
fieldKey="certification_details"
|
||||
description={t('Details of the certification')}
|
||||
control={
|
||||
<TextControl
|
||||
controlId="certification_details"
|
||||
placeholder={t('Certification Details')}
|
||||
placeholder={t('Certification details')}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
@@ -1024,7 +1024,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
tab={
|
||||
<CollectionTabTitle
|
||||
collection={this.state.calculatedColumns}
|
||||
title={t('Calculated Columns')}
|
||||
title={t('Calculated columns')}
|
||||
/>
|
||||
}
|
||||
key={3}
|
||||
|
||||
Reference in New Issue
Block a user