You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/06/13 13:25:20 UTC
[GitHub] [incubator-linkis] CCweixiao opened a new issue, #2273: [Feature] [1.2.0] Data source edit form supports Chinese and English
CCweixiao opened a new issue, #2273:
URL: https://github.com/apache/incubator-linkis/issues/2273
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.
### Problem Description
Data source edit form supports Chinese and English
数据源编辑表单支持中英文
### Description
<img width="868" alt="wecom-temp-3cb6a1b2529618480eee6b02a0be05de" src="https://user-images.githubusercontent.com/27730211/173362300-5d330ca5-911d-4f26-9c65-b647e41fe9f5.png">
目前,用户切换英文之后,数据源表单添加的label和输入框placeholder文本不支持中英文对应切换
At present, after the user switches to English, the label added to the data source form and the placeholder text of the input box do not support the corresponding switching between Chinese and English
### Use case
_No response_
### solutions
```sql
CREATE TABLE `linkis_ps_dm_datasource_type_key`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`data_source_type_id` int(11) NOT NULL,
`key` varchar(32) COLLATE utf8_bin NOT NULL,
`name` varchar(32) COLLATE utf8_bin NOT NULL,
`default_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`value_type` varchar(50) COLLATE utf8_bin NOT NULL,
`scope` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`require` tinyint(1) NULL DEFAULT 0,
`description` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`value_regex` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`ref_id` bigint(20) NULL DEFAULT NULL,
`ref_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`data_source` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
```
示例:对应增加字段name_en 和 description_en
Correspondingly add fields name_en and description_en
```sql
CREATE TABLE `linkis_ps_dm_datasource_type_key`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`data_source_type_id` int(11) NOT NULL,
`key` varchar(32) COLLATE utf8_bin NOT NULL,
`name` varchar(32) COLLATE utf8_bin NOT NULL,
`name_en` varchar(64) COLLATE utf8_bin NOT NULL,
`default_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`value_type` varchar(50) COLLATE utf8_bin NOT NULL,
`scope` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`require` tinyint(1) NULL DEFAULT 0,
`description` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`description_en` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`value_regex` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`ref_id` bigint(20) NULL DEFAULT NULL,
`ref_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`data_source` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO `linkis_ps_dm_datasource_type_key` (`data_source_type_id`, `key`, `name`,`name_en`, `default_value`, `value_type`, `scope`, `require`, `description`,`description_en`, `value_regex`, `ref_id`, `ref_value`, `data_source`, `update_time`, `create_time`) VALUES (1, 'params', '连接参数','Connection Parameters', NULL, 'TEXT', NULL, 0, '输入JSON格式: {"param":"value"}', 'Input in JSON format: {"param":"value"}',NULL, NULL, NULL, NULL, now(), now());
```
### Anything else
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [incubator-linkis] CCweixiao commented on issue #2273: [Feature] [1.2.0] Data source edit form supports Chinese and English
Posted by GitBox <gi...@apache.org>.
CCweixiao commented on issue #2273:
URL: https://github.com/apache/incubator-linkis/issues/2273#issuecomment-1154030854
>
dev-1.2.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [incubator-linkis] CCweixiao closed issue #2273: [Feature] [1.2.0] Data source edit form supports Chinese and English
Posted by GitBox <gi...@apache.org>.
CCweixiao closed issue #2273: [Feature] [1.2.0] Data source edit form supports Chinese and English
URL: https://github.com/apache/incubator-linkis/issues/2273
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org
[GitHub] [incubator-linkis] yujng commented on issue #2273: [Feature] [1.2.0] Data source edit form supports Chinese and English
Posted by GitBox <gi...@apache.org>.
yujng commented on issue #2273:
URL: https://github.com/apache/incubator-linkis/issues/2273#issuecomment-1154017700
how can i get the code for linkis1.2.0...where
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org