mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
refactor: 国际化 (#14567)
This commit is contained in:
parent
c6f46336e1
commit
9d718f3f39
@ -484,7 +484,7 @@ public class DatasourceServer implements DatasourceApi {
|
||||
public DatasourceDTO getSimpleDs(Long datasourceId) throws DEException {
|
||||
CoreDatasource datasource = dataSourceManage.getCoreDatasource(datasourceId);
|
||||
if (datasource == null) {
|
||||
DEException.throwException("不存在的数据源!");
|
||||
DEException.throwException(Translator.get("i18n_datasource_not_exists"));
|
||||
}
|
||||
if (datasource.getType().equalsIgnoreCase("api")) {
|
||||
datasource.setConfiguration("[]");
|
||||
@ -511,7 +511,7 @@ public class DatasourceServer implements DatasourceApi {
|
||||
public String getName(Long datasourceId) throws DEException {
|
||||
CoreDatasource datasource = dataSourceManage.getCoreDatasource(datasourceId);
|
||||
if (datasource == null) {
|
||||
DEException.throwException("不存在的数据源!");
|
||||
DEException.throwException(Translator.get("i18n_datasource_not_exists"));
|
||||
}
|
||||
return datasource.getName();
|
||||
}
|
||||
@ -1115,7 +1115,7 @@ public class DatasourceServer implements DatasourceApi {
|
||||
private DatasourceDTO getDatasourceDTOById(Long datasourceId, boolean hidePw) throws DEException {
|
||||
CoreDatasource datasource = dataSourceManage.getCoreDatasource(datasourceId);
|
||||
if (datasource == null) {
|
||||
DEException.throwException("不存在的数据源!");
|
||||
DEException.throwException(Translator.get("i18n_datasource_not_exists"));
|
||||
}
|
||||
return convertCoreDatasource(datasourceId, hidePw, datasource);
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ i18n_dataset_ds_delete=Datasource deleted,this dataset can not be show
|
||||
i18n_dataset_plugin_error=Datasource plugin is not exist
|
||||
i18n_dataset_cross_error=Dataset with more than two data sources is not supported
|
||||
i18n_board=Board
|
||||
|
||||
|
||||
i18n_invalid_connection=Invalid connection.
|
||||
i18n_check_datasource_connection=Please check the validity of the datasource.
|
||||
|
||||
i18n_datasource_not_exists=Datasource not exists!
|
||||
|
@ -193,3 +193,5 @@ i18n_board=\u8FB9\u6846
|
||||
i18n_invalid_connection=\u8FDE\u63A5\u65E0\u6548,
|
||||
i18n_check_datasource_connection=\u8BF7\u68C0\u67E5\u6570\u636E\u6E90\u7684\u6709\u6548\u6027
|
||||
|
||||
i18n_datasource_not_exists=\u6570\u636E\u6E90\u4E0D\u5B58\u5728\uFF01
|
||||
|
||||
|
@ -190,7 +190,7 @@ i18n_dataset_ds_delete=\u7531\u4E8E\u6578\u64DA\u96C6\u6240\u7528\u7684\u6578\u6
|
||||
i18n_dataset_plugin_error=\u7576\u524D\u6578\u64DA\u6E90\u63D2\u4EF6\u4E0D\u5B58\u5728
|
||||
i18n_dataset_cross_error=\u8DE8\u6E90\u6578\u64DA\u96C6\u4E0D\u652F\u6301\u8A72\u529F\u80FD
|
||||
i18n_board=\u908A\u6846
|
||||
|
||||
|
||||
i18n_invalid_connection=\u9023\u63A5\u7121\u6548,
|
||||
i18n_check_datasource_connection=\u8ACB\u6AA2\u67E5\u6578\u64DA\u6E90\u7684\u6709\u6548\u6027
|
||||
|
||||
i18n_datasource_not_exists=\u6578\u64DA\u6E90\u4E0D\u5B58\u5728\uFF01
|
||||
|
Loading…
Reference in New Issue
Block a user