From c7556cfda72b4b20570a20d7ffbb035b78bceee1 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Mon, 19 Sep 2022 16:13:22 +0800 Subject: [PATCH] fix: Fix the unit when upload file Fix the unit to `GiB` when upload file in storage container Closes-Bug: #1990125 Change-Id: I0f1bf1ec5979c1481033af3e72efcf586a5105dc --- src/locales/en.json | 4 +--- src/locales/zh.json | 4 +--- .../storage/containers/Container/Detail/actions/Edit.jsx | 2 +- .../containers/Container/Detail/actions/UploadFile.jsx | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index ac0f2089..d69c2c42 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -917,7 +917,6 @@ "External Network Info": "External Network Info", "External Networks": "External Networks", "External Port": "External Port", - "External Port Range": "External Port Range", "External Port/Port Range": "External Port/Port Range", "Extra Infos": "Extra Infos", "Extra Specs": "Extra Specs", @@ -1773,7 +1772,7 @@ "Please select {name} first": "Please select {name} first", "Please set CPU && Ram first.": "Please set CPU && Ram first.", "Please set MUNA": "Please set MUNA", - "Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.", + "Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.": "Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.", "Poland": "Poland", "Policy": "Policy", "Policy Name": "Policy Name", @@ -2350,7 +2349,6 @@ "The selected VPC/ subnet does not have IPv6 enabled.": "The selected VPC/ subnet does not have IPv6 enabled.", "The selected network has no subnet": "The selected network has no subnet", "The selected project is different from the project to which the network belongs. That is, the subnet to be created is not under the same project as the network. Please do not continue unless you are quit sure what you are doing.": "The selected project is different from the project to which the network belongs. That is, the subnet to be created is not under the same project as the network. Please do not continue unless you are quit sure what you are doing.", - "The server {name} is locked. Please unlock first.": "The server {name} is locked. Please unlock first.", "The session has expired, please log in again.": "The session has expired, please log in again.", "The shelved offloaded instance only supports immediate deletion": "The shelved offloaded instance only supports immediate deletion", "The size of the external port range is required to be the same as the size of the internal port range": "The size of the external port range is required to be the same as the size of the internal port range", diff --git a/src/locales/zh.json b/src/locales/zh.json index e3f6a329..32767fb7 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -917,7 +917,6 @@ "External Network Info": "外部网络信息", "External Networks": "外部网络", "External Port": "源端口", - "External Port Range": "源端口范围", "External Port/Port Range": "源端口/端口范围", "Extra Infos": "额外信息", "Extra Specs": "额外规格", @@ -1773,7 +1772,7 @@ "Please select {name} first": "请先选择{name}", "Please set CPU && Ram first.": "请先设置CPU、内存。", "Please set MUNA": "请设置NUMA节点", - "Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.": "页面请上传小于{ size }G的文件,超过{ size }G的文件建议使用API上传。", + "Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.": "页面请上传小于{ size }GiB的文件,超过{ size }GiB的文件建议使用API上传。", "Poland": "波兰", "Policy": "策略", "Policy Name": "策略名称", @@ -2350,7 +2349,6 @@ "The selected VPC/ subnet does not have IPv6 enabled.": "所选的VPC/子网未开通IPv6", "The selected network has no subnet": "选择的网络没有子网", "The selected project is different from the project to which the network belongs. That is, the subnet to be created is not under the same project as the network. Please do not continue unless you are quit sure what you are doing.": "您选择的项目与网络所属项目不一致,即您将创建的子网与网络不在同一项目下。除非你非常确认自己在做什么,否则请不要继续。", - "The server {name} is locked. Please unlock first.": "云主机{name}已被锁定,请先解锁。", "The session has expired, please log in again.": "会话已过期,请重新登录。", "The shelved offloaded instance only supports immediate deletion": "已归档的云主机仅支持立即删除", "The size of the external port range is required to be the same as the size of the internal port range": "源端口范围的大小要与目标端口范围的大小相同", diff --git a/src/pages/storage/containers/Container/Detail/actions/Edit.jsx b/src/pages/storage/containers/Container/Detail/actions/Edit.jsx index 65175960..8ed47693 100644 --- a/src/pages/storage/containers/Container/Detail/actions/Edit.jsx +++ b/src/pages/storage/containers/Container/Detail/actions/Edit.jsx @@ -72,7 +72,7 @@ export class Edit extends ModalAction { } return Promise.reject( t( - 'Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.', + 'Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.', { size: this.maxSize } ) ); diff --git a/src/pages/storage/containers/Container/Detail/actions/UploadFile.jsx b/src/pages/storage/containers/Container/Detail/actions/UploadFile.jsx index 522db5cc..11c9bf1a 100644 --- a/src/pages/storage/containers/Container/Detail/actions/UploadFile.jsx +++ b/src/pages/storage/containers/Container/Detail/actions/UploadFile.jsx @@ -64,7 +64,7 @@ export class UploadFile extends ModalAction { } return Promise.reject( t( - 'Please upload files smaller than { size }G on the page. It is recommended to upload files over { size }G using API.', + 'Please upload files smaller than { size }GiB on the page. It is recommended to upload files over { size }GiB using API.', { size: this.maxSize } ) );