mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
chore: Localization of superset pt. 2 (#22772)
This commit is contained in:
@@ -190,7 +190,7 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({
|
||||
);
|
||||
});
|
||||
onHide();
|
||||
addSuccessToast('Successfully changed dataset!');
|
||||
addSuccessToast(t('Successfully changed dataset!'));
|
||||
};
|
||||
|
||||
const handlerCancelConfirm = () => {
|
||||
|
||||
@@ -491,7 +491,7 @@ ColumnCollectionTable.defaultProps = {
|
||||
allowAddItem: false,
|
||||
allowEditDataType: false,
|
||||
itemGenerator: () => ({
|
||||
column_name: '<new column>',
|
||||
column_name: t('<new column>'),
|
||||
filterable: true,
|
||||
groupby: true,
|
||||
}),
|
||||
@@ -976,8 +976,8 @@ class DatasourceEditor extends React.PureComponent {
|
||||
tableColumns={['name', 'config']}
|
||||
onChange={this.onDatasourcePropChange.bind(this, 'spatials')}
|
||||
itemGenerator={() => ({
|
||||
name: '<new spatial>',
|
||||
type: '<no type>',
|
||||
name: t('<new spatial>'),
|
||||
type: t('<no type>'),
|
||||
config: null,
|
||||
})}
|
||||
collection={spatials}
|
||||
@@ -1256,7 +1256,7 @@ class DatasourceEditor extends React.PureComponent {
|
||||
allowAddItem
|
||||
onChange={this.onDatasourcePropChange.bind(this, 'metrics')}
|
||||
itemGenerator={() => ({
|
||||
metric_name: '<new metric>',
|
||||
metric_name: t('<new metric>'),
|
||||
verbose_name: '',
|
||||
expression: '',
|
||||
})}
|
||||
@@ -1418,10 +1418,10 @@ class DatasourceEditor extends React.PureComponent {
|
||||
allowAddItem
|
||||
allowEditDataType
|
||||
itemGenerator={() => ({
|
||||
column_name: '<new column>',
|
||||
column_name: t('<new column>'),
|
||||
filterable: true,
|
||||
groupby: true,
|
||||
expression: '<enter SQL expression here>',
|
||||
expression: t('<enter SQL expression here>'),
|
||||
__expanded: true,
|
||||
})}
|
||||
/>
|
||||
|
||||
@@ -177,6 +177,8 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
|
||||
content: renderSaveDialog(),
|
||||
onOk: onConfirmSave,
|
||||
icon: null,
|
||||
okText: t('OK'),
|
||||
cancelText: t('Cancel'),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user