resource_translate.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package consts
  15. import (
  16. "yunion.io/x/onecloud/pkg/i18n"
  17. )
  18. var (
  19. ResourceTranslateI18nTable = i18n.Table{}
  20. )
  21. func init() {
  22. type slang struct {
  23. CN string
  24. EN string
  25. }
  26. resourceTranslate := map[string]slang{
  27. "DBAudit": {
  28. CN: "数据库审计DBAudit",
  29. EN: "DBAudit",
  30. },
  31. "FortressAircraft": {
  32. CN: "堡垒机",
  33. EN: "FortressAircraft",
  34. },
  35. "WTPS": {
  36. CN: "网页防篡改服务WTPS",
  37. EN: "Anti-tampering service for web pages",
  38. },
  39. "acr": {
  40. CN: "容器镜像服务",
  41. EN: "Acr",
  42. },
  43. "activate": {
  44. CN: "Activate",
  45. EN: "Activate",
  46. },
  47. "ads": {
  48. CN: "分析型数据库",
  49. EN: "ADS",
  50. },
  51. "alikafka": {
  52. CN: "消息队列Kafka版",
  53. EN: "Alikafka",
  54. },
  55. "alimail": {
  56. CN: "云邮箱",
  57. EN: "Alimail",
  58. },
  59. "anti ddos": {
  60. CN: "Anti-DDoS流量清洗",
  61. EN: "Anti DDoS",
  62. },
  63. "aos": {
  64. CN: "编排服务",
  65. EN: "AOS",
  66. },
  67. "app service": {
  68. CN: "应用服务",
  69. EN: "App Service",
  70. },
  71. "application gateway": {
  72. CN: "应用网关",
  73. EN: "Application Gateway",
  74. },
  75. "arms": {
  76. CN: "应用实时监控服务",
  77. EN: "Application real-time monitoring service",
  78. },
  79. "automation": {
  80. CN: "自动化",
  81. EN: "Automation",
  82. },
  83. "backup": {
  84. CN: "备份",
  85. EN: "Backup",
  86. },
  87. "baremetal": {
  88. CN: "裸金属服务器",
  89. EN: "Baremetal",
  90. },
  91. "bastionhost": {
  92. CN: "运维安全中心(堡垒机)",
  93. EN: "Operation and maintenance security center (fortress machine)",
  94. },
  95. "bi": {
  96. CN: "数据可视化",
  97. EN: "BI",
  98. },
  99. "bigquery": {
  100. CN: "BigQuery",
  101. EN: "BigQuery",
  102. },
  103. "cache": {
  104. CN: "缓存服务",
  105. EN: "Cache",
  106. },
  107. "cas": {
  108. CN: "云盾证书服务",
  109. EN: "CAS",
  110. },
  111. "cbs": {
  112. CN: "数据库备份DBS",
  113. EN: "Cbs",
  114. },
  115. "cbwp": {
  116. CN: "共享带宽",
  117. EN: "Cbwq",
  118. },
  119. "cdn": {
  120. CN: "内容分发网络",
  121. EN: "CDN",
  122. },
  123. "clickhouse": {
  124. CN: "云数据库ClickHouse",
  125. EN: "ClickHouse",
  126. },
  127. "cloud connect network": {
  128. CN: "云联网",
  129. EN: "Cloud Connect Network",
  130. },
  131. "cloud infinite": {
  132. CN: "数据万象",
  133. EN: "Cloud Infinite",
  134. },
  135. "cloud streaming services": {
  136. CN: "云直播",
  137. EN: "Cloud Streaming Services",
  138. },
  139. "cloud visualization": {
  140. CN: "腾讯云图",
  141. EN: "Cloud Visualization",
  142. },
  143. "cloudkms": {
  144. CN: "Cloud KMS",
  145. EN: "Cloud KMS",
  146. },
  147. "cloudtrace": {
  148. CN: "云审计",
  149. EN: "CloudTrace",
  150. },
  151. "cloudtrail": {
  152. CN: "CloudTrail",
  153. EN: "CloudTrail",
  154. },
  155. "cloudwatch": {
  156. CN: "CloudWatch",
  157. EN: "CloudWatch",
  158. },
  159. "cms": {
  160. CN: "云监控",
  161. EN: "Cms",
  162. },
  163. "config": {
  164. CN: "Config",
  165. EN: "Config",
  166. },
  167. "container": {
  168. CN: "容器镜像",
  169. EN: "Container",
  170. },
  171. "cross region connection": {
  172. CN: "跨地域互联",
  173. EN: "Cross Region Connection",
  174. },
  175. "csk": {
  176. CN: "容器服务ACK",
  177. EN: "ACK",
  178. },
  179. "data factory": {
  180. CN: "数据工厂",
  181. EN: "Data Factory",
  182. },
  183. "database": {
  184. CN: "数据库",
  185. EN: "Database",
  186. },
  187. "datahub": {
  188. CN: "数据总线 DataHub",
  189. EN: "DataHub",
  190. },
  191. "datav": {
  192. CN: "DataV数据可视化",
  193. EN: "DataV",
  194. },
  195. "dcdn": {
  196. CN: "全站加速",
  197. EN: "DCDN",
  198. },
  199. "des": {
  200. CN: "数据加密服务",
  201. EN: "DES",
  202. },
  203. "dide": {
  204. CN: "大数据开发治理平台 DataWorks",
  205. EN: "Big data development and governance platform DataWorks",
  206. },
  207. "directconnect": {
  208. CN: "专线接入",
  209. EN: "DirectConnect",
  210. },
  211. "disk": {
  212. CN: "块存储",
  213. EN: "Block storage",
  214. },
  215. "dms": {
  216. CN: "数据管理",
  217. EN: "Data management",
  218. },
  219. "dns": {
  220. CN: "域名解析服务",
  221. EN: "DNS",
  222. },
  223. "domain": {
  224. CN: "域名",
  225. EN: "Domain",
  226. },
  227. "dts": {
  228. CN: "数据传输",
  229. EN: "DTS",
  230. },
  231. "dysms": {
  232. CN: "短信服务",
  233. EN: "SMS service",
  234. },
  235. "eci": {
  236. CN: "弹性容器实例 ECI",
  237. EN: "ECI",
  238. },
  239. "ecs": {
  240. CN: "云服务器 ECS",
  241. EN: "ECS",
  242. },
  243. "edge computing machine": {
  244. CN: "边缘计算机器",
  245. EN: "Edge Computing Machine",
  246. },
  247. "eip": {
  248. CN: "Eip带宽",
  249. EN: "EIP",
  250. },
  251. "elasticsearch": {
  252. CN: "检索分析服务 Elasticsearch版",
  253. EN: "Search Analysis Service Elasticsearch Edition",
  254. },
  255. "emapreduce": {
  256. CN: "开源大数据平台 E-MapReduce",
  257. EN: "Open source big data platform E-MapReduce",
  258. },
  259. "english composition correction": {
  260. CN: "英文作文批改",
  261. EN: "English Composition Correction",
  262. },
  263. "expressconnect": {
  264. CN: "高速通道",
  265. EN: "High speed channel",
  266. },
  267. "face recognition": {
  268. CN: "人脸识别",
  269. EN: "Face Recognition",
  270. },
  271. "fc": {
  272. CN: "函数计算",
  273. EN: "Fc",
  274. },
  275. "file storage": {
  276. CN: "文件存储",
  277. EN: "File Storage",
  278. },
  279. "flowbag": {
  280. CN: "共享流量包",
  281. EN: "Shared traffic package",
  282. },
  283. "gaap": {
  284. CN: "全球应用加速",
  285. EN: "GAAP",
  286. },
  287. "gallery": {
  288. CN: "共享映像库",
  289. EN: "Gallery",
  290. },
  291. "gws": {
  292. CN: "无影云桌面",
  293. EN: "Shadowless Cloud Desktop",
  294. },
  295. "hbr": {
  296. CN: "混合云备份服务",
  297. EN: "Hybrid cloud backup service",
  298. },
  299. "hbrpost": {
  300. CN: "混合云备份",
  301. EN: "Hbrpost",
  302. },
  303. "hdm": {
  304. CN: "数据库自治服务",
  305. EN: "Database Autonomy Service",
  306. },
  307. "hitsdb": {
  308. CN: "时序数据库 InfluxDB® 版",
  309. EN: "Hitsdb",
  310. },
  311. "hologram": {
  312. CN: "实时数仓Hologres",
  313. EN: "Hologres",
  314. },
  315. "host": {
  316. CN: "专用宿主机",
  317. EN: "Host",
  318. },
  319. "idaas": {
  320. CN: "应用身份服务",
  321. EN: "Idaas",
  322. },
  323. "image": {
  324. CN: "镜像服务",
  325. EN: "Image",
  326. },
  327. "imm": {
  328. CN: "智能媒体管理",
  329. EN: "Intelligent Media Management",
  330. },
  331. "instant messaging": {
  332. CN: "即时通信",
  333. EN: "Instant Messaging",
  334. },
  335. "ipv6gateway": {
  336. CN: "IPv6 网关",
  337. EN: "IPv6 Gateway",
  338. },
  339. "kafka": {
  340. CN: "消息服务Kafka",
  341. EN: "Kafka",
  342. },
  343. "keymanager": {
  344. CN: "Key-Management-Service",
  345. EN: "KeyManager",
  346. },
  347. "kms": {
  348. CN: "密钥管理服务",
  349. EN: "Key management service",
  350. },
  351. "kvstore": {
  352. CN: "云数据库 Redis 版",
  353. EN: "ApsaraDB for Redis",
  354. },
  355. "lambda": {
  356. CN: "AWS-Lambda",
  357. EN: "Lambda",
  358. },
  359. "lb": {
  360. CN: "负载均衡",
  361. EN: "LB",
  362. },
  363. "live": {
  364. CN: "视频直播",
  365. EN: "Live video",
  366. },
  367. "live video broadcasting": {
  368. CN: "移动直播连麦",
  369. EN: "Live Video Broadcasting",
  370. },
  371. "log": {
  372. CN: "日志服务",
  373. EN: "Log",
  374. },
  375. "lvwang": {
  376. CN: "内容安全",
  377. EN: "Content security",
  378. },
  379. "machine learning": {
  380. CN: "机器学习",
  381. EN: "Machine Learning",
  382. },
  383. "mapreduce": {
  384. CN: "MapReduce",
  385. EN: "MapReduce",
  386. },
  387. "market": {
  388. CN: "云市场",
  389. EN: "Market",
  390. },
  391. "mem": {
  392. CN: "虚拟机内存",
  393. EN: "Vminstance Memory",
  394. },
  395. "mongodb": {
  396. CN: "云数据库MongoDB",
  397. EN: "MongoDB",
  398. },
  399. "monitor": {
  400. CN: "监控",
  401. EN: "Monitor",
  402. },
  403. "mqs": {
  404. CN: "消息队列服务",
  405. EN: "MQS",
  406. },
  407. "mse": {
  408. CN: "微服务引擎 MSE ",
  409. EN: "MSE ",
  410. },
  411. "msg": {
  412. CN: "消息通知服务",
  413. EN: "MSG",
  414. },
  415. "nas": {
  416. CN: "文件存储NAS",
  417. EN: "File Storage NAS",
  418. },
  419. "nat": {
  420. CN: "NAT网关",
  421. EN: "NAT",
  422. },
  423. "notification": {
  424. CN: "Notification",
  425. EN: "Notification",
  426. },
  427. "ntr": {
  428. CN: "转发路由器",
  429. EN: "NTR",
  430. },
  431. "ocr": {
  432. CN: "文字识别",
  433. EN: "OCR",
  434. },
  435. "odps": {
  436. CN: "云原生大数据计算服务 MaxCompute",
  437. EN: "MaxCompute",
  438. },
  439. "ons": {
  440. CN: "消息队列 RabbitMQ 版",
  441. EN: "Ons",
  442. },
  443. "oss": {
  444. CN: "对象存储",
  445. EN: "OSS",
  446. },
  447. "other": {
  448. CN: "其他服务",
  449. EN: "Other Services",
  450. },
  451. "polardb": {
  452. CN: "云原生关系型数据库 PolarDB",
  453. EN: "PolarDB",
  454. },
  455. "premiumsupport": {
  456. CN: "Premium-Support",
  457. EN: "PremiumSupport",
  458. },
  459. "prometheus": {
  460. CN: "Prometheus监控服务",
  461. EN: "Prometheus",
  462. },
  463. "pvtz": {
  464. CN: "内网DNS解析",
  465. EN: "DNS Private Zone",
  466. },
  467. "quickbi": {
  468. CN: "敏捷商业智能报表",
  469. EN: "Quickbi",
  470. },
  471. "rds": {
  472. CN: "关系型数据库",
  473. EN: "Relational Database",
  474. },
  475. "rds_disk": {
  476. CN: "RDS磁盘",
  477. EN: "RDS Disk",
  478. },
  479. "real time communication": {
  480. CN: "实时音视频",
  481. EN: "Real Time Communication",
  482. },
  483. "redshift": {
  484. CN: "Redshift",
  485. EN: "Redshift",
  486. },
  487. "reseller": {
  488. CN: "转销",
  489. EN: "Reseller",
  490. },
  491. "ri": {
  492. CN: "预留实例",
  493. EN: "RI",
  494. },
  495. "rounding": {
  496. CN: "计费精度差异",
  497. EN: "Rounding",
  498. },
  499. "saf": {
  500. CN: "风险识别",
  501. EN: "Risk identification",
  502. },
  503. "sc": {
  504. CN: "flink全托管",
  505. EN: "SC",
  506. },
  507. "scalinggroup": {
  508. CN: "弹性伸缩组",
  509. EN: "ScalingGroup",
  510. },
  511. "security center": {
  512. CN: "安全中心",
  513. EN: "Security Center",
  514. },
  515. "server": {
  516. CN: "虚拟机",
  517. EN: "Server",
  518. },
  519. "serversecurity": {
  520. CN: "主机安全",
  521. EN: "ServerSecurity",
  522. },
  523. "servicestage": {
  524. CN: "应用管理与运维平台",
  525. EN: "ServiceStage",
  526. },
  527. "sfs": {
  528. CN: "弹性文件服务",
  529. EN: "SFS",
  530. },
  531. "slb": {
  532. CN: "负载均衡",
  533. EN: "Load balancing",
  534. },
  535. "sls": {
  536. CN: "日志服务",
  537. EN: "Sls",
  538. },
  539. "smart oral evaluation": {
  540. CN: "口语评测",
  541. EN: "Smart Oral Evaluation",
  542. },
  543. "smartag": {
  544. CN: "智能接入网关APP",
  545. EN: "Smartag",
  546. },
  547. "sms": {
  548. CN: "短信",
  549. EN: "SMS",
  550. },
  551. "snapshot": {
  552. CN: "快照",
  553. EN: "Snapshot",
  554. },
  555. "sourcerepo": {
  556. CN: "SourceRepo",
  557. EN: "SourceRepo",
  558. },
  559. "speech recognition": {
  560. CN: "语音识别",
  561. EN: "Speech Recognition",
  562. },
  563. "ssl certificate": {
  564. CN: "SSL证书",
  565. EN: "SSL Certificate",
  566. },
  567. "storage": {
  568. CN: "存储",
  569. EN: "Storage",
  570. },
  571. "storage account": {
  572. CN: "azure对象存储",
  573. EN: "Storage Account",
  574. },
  575. "support": {
  576. CN: "Support",
  577. EN: "Support",
  578. },
  579. "t-sec": {
  580. CN: "T-Sec",
  581. EN: "T-Sec",
  582. },
  583. "t-sec anti ddos": {
  584. CN: "T-Sec DDoS",
  585. EN: "T-Sec Anti DDoS",
  586. },
  587. "t-sec cwp": {
  588. CN: "T-Sec主机安全",
  589. EN: "T-Sec CWP",
  590. },
  591. "tax": {
  592. CN: "税金",
  593. EN: "Tax",
  594. },
  595. "translate": {
  596. CN: "翻译服务",
  597. EN: "Translate",
  598. },
  599. "tsdb": {
  600. CN: "时序数据库",
  601. EN: "TSDB",
  602. },
  603. "vault": {
  604. CN: "保管库",
  605. EN: "Vault",
  606. },
  607. "video on demand": {
  608. CN: "点播",
  609. EN: "Video On Demand",
  610. },
  611. "vod": {
  612. CN: "视频点播",
  613. EN: "Video on demand",
  614. },
  615. "voice message": {
  616. CN: "语音消息",
  617. EN: "Voice Message",
  618. },
  619. "vpc": {
  620. CN: "VPC",
  621. EN: "VPC",
  622. },
  623. "vpn": {
  624. CN: "VPN网关",
  625. EN: "VPN",
  626. },
  627. "vpn gateway": {
  628. CN: "VPN网关",
  629. EN: "VPN Gateway",
  630. },
  631. "waf": {
  632. CN: "Web应用防火墙",
  633. EN: "Web application firewall",
  634. },
  635. "workflow": {
  636. CN: "工作流",
  637. EN: "Workflow",
  638. },
  639. "xtrace": {
  640. CN: "链路追踪",
  641. EN: "Link Tracking",
  642. },
  643. }
  644. for resource, translate := range resourceTranslate {
  645. ResourceTranslateI18nTable.Set(resource, i18n.NewTableEntry().CN(translate.CN).EN(translate.EN))
  646. }
  647. }