Merge "fix: update 'gigabytes' to 'capacity' in the titile"

This commit is contained in:
Zuul 2022-08-08 09:10:43 +00:00 committed by Gerrit Code Review
commit 70fd56a9b1
17 changed files with 62 additions and 68 deletions

View File

@ -1002,7 +1002,6 @@
"Get {name} error.": "Get {name} error.", "Get {name} error.": "Get {name} error.",
"Ghana": "Ghana", "Ghana": "Ghana",
"Gibraltar": "Gibraltar", "Gibraltar": "Gibraltar",
"Gigabytes (GiB)": "Gigabytes (GiB)",
"Given IP": "Given IP", "Given IP": "Given IP",
"Glance": "Glance", "Glance": "Glance",
"Global Setting": "Global Setting", "Global Setting": "Global Setting",
@ -1920,7 +1919,6 @@
"Reset failed, please retry": "Reset failed, please retry", "Reset failed, please retry": "Reset failed, please retry",
"Resize": "Resize", "Resize": "Resize",
"Resize Cluster": "Resize Cluster", "Resize Cluster": "Resize Cluster",
"Resize Container": "Resize Container",
"Resize Instance": "Resize Instance", "Resize Instance": "Resize Instance",
"Resized": "Resized", "Resized": "Resized",
"Resizing or Migrating": "Resizing or Migrating", "Resizing or Migrating": "Resizing or Migrating",
@ -2046,9 +2044,9 @@
"Set IP": "Set IP", "Set IP": "Set IP",
"Seychelles": "Seychelles", "Seychelles": "Seychelles",
"Share": "Share", "Share": "Share",
"Share Capacity (GiB)": "Share Capacity (GiB)",
"Share Detail": "Share Detail", "Share Detail": "Share Detail",
"Share File Storage": "Share File Storage", "Share File Storage": "Share File Storage",
"Share Gigabytes(GiB)": "Share Gigabytes(GiB)",
"Share Group": "Share Group", "Share Group": "Share Group",
"Share Group Detail": "Share Group Detail", "Share Group Detail": "Share Group Detail",
"Share Group Type": "Share Group Type", "Share Group Type": "Share Group Type",
@ -2104,7 +2102,6 @@
"Singapore": "Singapore", "Singapore": "Singapore",
"Size": "Size", "Size": "Size",
"Size (GiB)": "Size (GiB)", "Size (GiB)": "Size (GiB)",
"Size(GiB)": "Size(GiB)",
"Slovakia (Slovak Republic)": "Slovakia (Slovak Republic)", "Slovakia (Slovak Republic)": "Slovakia (Slovak Republic)",
"Slovenia": "Slovenia", "Slovenia": "Slovenia",
"Slow Query": "Slow Query", "Slow Query": "Slow Query",
@ -2536,10 +2533,11 @@
"Visualization Compute Optimized Type with GPU": "Visualization Compute Optimized Type with GPU", "Visualization Compute Optimized Type with GPU": "Visualization Compute Optimized Type with GPU",
"Volume": "Volume", "Volume": "Volume",
"Volume Backup": "Volume Backup", "Volume Backup": "Volume Backup",
"Volume Backup Capacity (GiB)": "Volume Backup Capacity (GiB)",
"Volume Backup Detail": "Volume Backup Detail", "Volume Backup Detail": "Volume Backup Detail",
"Volume Backup Gigabytes (GiB)": "Volume Backup Gigabytes (GiB)",
"Volume Backup Name": "Volume Backup Name", "Volume Backup Name": "Volume Backup Name",
"Volume Backups": "Volume Backups", "Volume Backups": "Volume Backups",
"Volume Capacity (GiB)": "Volume Capacity (GiB)",
"Volume Detail": "Volume Detail", "Volume Detail": "Volume Detail",
"Volume Driver": "Volume Driver", "Volume Driver": "Volume Driver",
"Volume ID": "Volume ID", "Volume ID": "Volume ID",
@ -2725,7 +2723,6 @@
"flavor": "flavor", "flavor": "flavor",
"floating ip": "floating ip", "floating ip": "floating ip",
"floating ips": "floating ips", "floating ips": "floating ips",
"gigabytes": "gigabytes",
"heat services": "heat services", "heat services": "heat services",
"host aggregates": "host aggregates", "host aggregates": "host aggregates",
"hosts": "hosts", "hosts": "hosts",
@ -2855,13 +2852,13 @@
"volume": "volume", "volume": "volume",
"volume backup": "volume backup", "volume backup": "volume backup",
"volume backups": "volume backups", "volume backups": "volume backups",
"volume gigabytes": "volume gigabytes", "volume capacity": "volume capacity",
"volume snapshot": "volume snapshot", "volume snapshot": "volume snapshot",
"volume snapshots": "volume snapshots", "volume snapshots": "volume snapshots",
"volume type": "volume type", "volume type": "volume type",
"volume type qos": "volume type qos", "volume type qos": "volume type qos",
"volume type {type}": "volume type {type}", "volume type {type}": "volume type {type}",
"volume type {type} gigabytes": "volume type {type} gigabytes", "volume type {type} capacity": "volume type {type} capacity",
"volume types": "volume types", "volume types": "volume types",
"volumes": "volumes", "volumes": "volumes",
"vpn IKE policy": "vpn IKE policy", "vpn IKE policy": "vpn IKE policy",
@ -2884,8 +2881,8 @@
"{interval, plural, =1 {one week} other {# weeks} } later delete": "{interval, plural, =1 {one week} other {# weeks} } later delete", "{interval, plural, =1 {one week} other {# weeks} } later delete": "{interval, plural, =1 {one week} other {# weeks} } later delete",
"{minutes} minutes {leftSeconds} seconds": "{minutes} minutes {leftSeconds} seconds", "{minutes} minutes {leftSeconds} seconds": "{minutes} minutes {leftSeconds} seconds",
"{name} type": "{name} type", "{name} type": "{name} type",
"{name} type gigabytes": "{name} type gigabytes", "{name} type capacity": "{name} type capacity",
"{name} type gigabytes(GiB)": "{name} type gigabytes(GiB)", "{name} type capacity (GiB)": "{name} type capacity (GiB)",
"{name} type snapshots": "{name} type snapshots", "{name} type snapshots": "{name} type snapshots",
"{name} {id} could not be found.": "{name} {id} could not be found.", "{name} {id} could not be found.": "{name} {id} could not be found.",
"{number} port forwarding rules": "{number} port forwarding rules", "{number} port forwarding rules": "{number} port forwarding rules",

View File

@ -866,7 +866,7 @@
"Environment": "环境", "Environment": "环境",
"Environment Variable": "环境变量", "Environment Variable": "环境变量",
"Environment Variables": "环境变量", "Environment Variables": "环境变量",
"Ephemeral Disk(GiB)": "本地临时卷GiB", "Ephemeral Disk (GiB)": "本地临时卷 (GiB)",
"Equatorial Guinea": "赤道几内亚", "Equatorial Guinea": "赤道几内亚",
"Eritrea": "厄立特里亚国", "Eritrea": "厄立特里亚国",
"Error": "错误", "Error": "错误",
@ -1002,7 +1002,6 @@
"Get {name} error.": "获取{name}失败。", "Get {name} error.": "获取{name}失败。",
"Ghana": "加纳", "Ghana": "加纳",
"Gibraltar": "直布罗陀", "Gibraltar": "直布罗陀",
"Gigabytes (GiB)": "容量 (GiB)",
"Given IP": "指定IP", "Given IP": "指定IP",
"Glance": "", "Glance": "",
"Global Setting": "平台配置", "Global Setting": "平台配置",
@ -1855,7 +1854,7 @@
"Quota: Insufficient { name } quota to create resources.": "配额:{ name } 配额不足,无法创建资源。", "Quota: Insufficient { name } quota to create resources.": "配额:{ name } 配额不足,无法创建资源。",
"Quota: Project quotas sufficient resources can be created": "配额:项目配额充足,可创建资源", "Quota: Project quotas sufficient resources can be created": "配额:项目配额充足,可创建资源",
"RAM": "内存", "RAM": "内存",
"RAM(MiB)": "内存MiB", "RAM (MiB)": "内存 (MiB)",
"RAW - Raw disk image format": "RAW - 原始磁盘映像格式", "RAW - Raw disk image format": "RAW - 原始磁盘映像格式",
"RESTORE COMPLETE": "恢复完成", "RESTORE COMPLETE": "恢复完成",
"RESUME COMPLETE": "恢复完成", "RESUME COMPLETE": "恢复完成",
@ -1866,7 +1865,7 @@
"ROUND_ROBIN": "轮询算法", "ROUND_ROBIN": "轮询算法",
"RSVP": "", "RSVP": "",
"Raid Interface": "Raid接口", "Raid Interface": "Raid接口",
"Ram Size(GiB)": "内存容量GiB", "Ram Size (GiB)": "内存容量 (GiB)",
"Ram value is { ram }, NUMA RAM value is { totalRam }, need to be equal. ": "内存是 { ram }MiBNUMA节点的内存是{ totalRam }MiB需要一致。", "Ram value is { ram }, NUMA RAM value is { totalRam }, need to be equal. ": "内存是 { ram }MiBNUMA节点的内存是{ totalRam }MiB需要一致。",
"Ramdisk ID": "内存盘ID", "Ramdisk ID": "内存盘ID",
"Ramdisk Image": "Ramdisk镜像", "Ramdisk Image": "Ramdisk镜像",
@ -1920,7 +1919,6 @@
"Reset failed, please retry": "重置失败,请重试", "Reset failed, please retry": "重置失败,请重试",
"Resize": "修改配置", "Resize": "修改配置",
"Resize Cluster": "调整集群大小", "Resize Cluster": "调整集群大小",
"Resize Container": "修改容器配置",
"Resize Instance": "修改配置", "Resize Instance": "修改配置",
"Resized": "已修改配置", "Resized": "已修改配置",
"Resizing or Migrating": "正在修改配置/迁移", "Resizing or Migrating": "正在修改配置/迁移",
@ -2046,9 +2044,9 @@
"Set IP": "设置IP", "Set IP": "设置IP",
"Seychelles": "塞舌尔", "Seychelles": "塞舌尔",
"Share": "共享", "Share": "共享",
"Share Capacity (GiB)": "共享容量 (GiB)",
"Share Detail": "共享详情", "Share Detail": "共享详情",
"Share File Storage": "文件存储", "Share File Storage": "文件存储",
"Share Gigabytes(GiB)": "共享容量(GiB)",
"Share Group": "共享组", "Share Group": "共享组",
"Share Group Detail": "共享组详情", "Share Group Detail": "共享组详情",
"Share Group Type": "共享组类型", "Share Group Type": "共享组类型",
@ -2104,7 +2102,6 @@
"Singapore": "新加坡", "Singapore": "新加坡",
"Size": "容量", "Size": "容量",
"Size (GiB)": "容量 (GiB)", "Size (GiB)": "容量 (GiB)",
"Size(GiB)": "大小(GiB)",
"Slovakia (Slovak Republic)": "斯洛伐克", "Slovakia (Slovak Republic)": "斯洛伐克",
"Slovenia": "斯洛文尼亚", "Slovenia": "斯洛文尼亚",
"Slow Query": "", "Slow Query": "",
@ -2536,10 +2533,11 @@
"Visualization Compute Optimized Type with GPU": "GPU虚拟化型", "Visualization Compute Optimized Type with GPU": "GPU虚拟化型",
"Volume": "云硬盘", "Volume": "云硬盘",
"Volume Backup": "云硬盘备份", "Volume Backup": "云硬盘备份",
"Volume Backup Capacity (GiB)": "云硬盘备份容量 (GiB)",
"Volume Backup Detail": "云硬盘备份详情", "Volume Backup Detail": "云硬盘备份详情",
"Volume Backup Gigabytes (GiB)": "云硬盘备份容量 (GiB)",
"Volume Backup Name": "云硬盘备份名称", "Volume Backup Name": "云硬盘备份名称",
"Volume Backups": "云硬盘备份", "Volume Backups": "云硬盘备份",
"Volume Capacity (GiB)": "云硬盘容量 (GiB)",
"Volume Detail": "云硬盘详情", "Volume Detail": "云硬盘详情",
"Volume Driver": "云硬盘驱动", "Volume Driver": "云硬盘驱动",
"Volume ID": "云硬盘ID", "Volume ID": "云硬盘ID",
@ -2725,7 +2723,6 @@
"flavor": "云主机类型", "flavor": "云主机类型",
"floating ip": "浮动IP", "floating ip": "浮动IP",
"floating ips": "浮动IP", "floating ips": "浮动IP",
"gigabytes": "容量",
"heat services": "编排服务", "heat services": "编排服务",
"host aggregates": "主机集合", "host aggregates": "主机集合",
"hosts": "主机", "hosts": "主机",
@ -2855,13 +2852,13 @@
"volume": "云硬盘", "volume": "云硬盘",
"volume backup": "云硬盘备份", "volume backup": "云硬盘备份",
"volume backups": "云硬盘备份", "volume backups": "云硬盘备份",
"volume gigabytes": "云硬盘容量", "volume capacity": "云硬盘容量",
"volume snapshot": "云硬盘快照", "volume snapshot": "云硬盘快照",
"volume snapshots": "云硬盘快照", "volume snapshots": "云硬盘快照",
"volume type": "云硬盘类型", "volume type": "云硬盘类型",
"volume type qos": "云硬盘类型Qos", "volume type qos": "云硬盘类型Qos",
"volume type {type}": "云硬盘类型 {type} ", "volume type {type}": "云硬盘类型 {type} ",
"volume type {type} gigabytes": "云硬盘类型 {type} 容量 ", "volume type {type} capacity": "云硬盘类型 {type} 容量",
"volume types": "云硬盘类型", "volume types": "云硬盘类型",
"volumes": "云硬盘", "volumes": "云硬盘",
"vpn IKE policy": "VPN IKE策略", "vpn IKE policy": "VPN IKE策略",
@ -2884,8 +2881,8 @@
"{interval, plural, =1 {one week} other {# weeks} } later delete": "{interval}周后删除", "{interval, plural, =1 {one week} other {# weeks} } later delete": "{interval}周后删除",
"{minutes} minutes {leftSeconds} seconds": "{minutes}分{leftSeconds}秒", "{minutes} minutes {leftSeconds} seconds": "{minutes}分{leftSeconds}秒",
"{name} type": "{name} 类型", "{name} type": "{name} 类型",
"{name} type gigabytes": "{name} 类型容量", "{name} type capacity": "{name} 类型容量",
"{name} type gigabytes(GiB)": "{name} 类型容量(GiB)", "{name} type capacity (GiB)": "{name} 类型容量 (GiB)",
"{name} type snapshots": "{name} 类型快照", "{name} type snapshots": "{name} 类型快照",
"{name} {id} could not be found.": "您查看的资源{name} {id} 无法获取", "{name} {id} could not be found.": "您查看的资源{name} {id} 无法获取",
"{number} port forwarding rules": "{number}个端口转发规则", "{number} port forwarding rules": "{number}个端口转发规则",

View File

@ -58,7 +58,7 @@ export const quotaCardList = [
key: 'volumes', key: 'volumes',
}, },
{ {
text: t('Gigabytes (GiB)'), text: t('Volume Capacity (GiB)'),
key: 'gigabytes', key: 'gigabytes',
}, },
{ {
@ -70,7 +70,7 @@ export const quotaCardList = [
key: 'backups', key: 'backups',
}, },
{ {
text: t('Volume Backup Gigabytes (GiB)'), text: t('Volume Backup Capacity (GiB)'),
key: 'backup_gigabytes', key: 'backup_gigabytes',
}, },
], ],
@ -96,7 +96,7 @@ export const shareQuotaCard = {
value: [ value: [
{ text: t('Shares'), key: 'shares' }, { text: t('Shares'), key: 'shares' },
{ {
text: t('Share Gigabytes(GiB)'), text: t('Share Capacity (GiB)'),
key: 'share_gigabytes', key: 'share_gigabytes',
}, },
{ text: t('Share Networks'), key: 'share_networks' }, { text: t('Share Networks'), key: 'share_networks' },
@ -128,7 +128,7 @@ export const getVolumeTypeCards = (data) => {
key: `volumes_${item.name}`, key: `volumes_${item.name}`,
}, },
{ {
text: t('{name} type gigabytes(GiB)', { name: item.name }), text: t('{name} type capacity (GiB)', { name: item.name }),
key: `gigabytes_${item.name}`, key: `gigabytes_${item.name}`,
}, },
{ {

View File

@ -217,7 +217,7 @@ export class StepCreate extends StepAction {
...volumeQuota.gigabytes, ...volumeQuota.gigabytes,
add: quotaError ? 0 : totalNewSize, add: quotaError ? 0 : totalNewSize,
name: 'volumeSize', name: 'volumeSize',
title: t('Volume Size'), title: t('Volume Capacity (GiB)'),
type: 'line', type: 'line',
}; };
const serverGroupQuota = this.getServerGroupQuota(); const serverGroupQuota = this.getServerGroupQuota();
@ -363,7 +363,7 @@ export class StepCreate extends StepAction {
const totalSizeMsg = this.getQuotaMessage( const totalSizeMsg = this.getQuotaMessage(
totalNewSize, totalNewSize,
quotaAll.gigabytes, quotaAll.gigabytes,
t('volume gigabytes') t('volume capacity')
); );
if (totalSizeMsg) { if (totalSizeMsg) {
return totalSizeMsg; return totalSizeMsg;
@ -385,7 +385,7 @@ export class StepCreate extends StepAction {
const sizeMsg = this.getQuotaMessage( const sizeMsg = this.getQuotaMessage(
newSizeMap[key], newSizeMap[key],
quotaAll[`gigabytes_${key}`], quotaAll[`gigabytes_${key}`],
t('volume type {type} gigabytes', { type: key }) t('volume type {type} capacity', { type: key })
); );
if (sizeMsg) { if (sizeMsg) {
msg = sizeMsg; msg = sizeMsg;

View File

@ -101,7 +101,7 @@ export class Instances extends Base {
isHideable: true, isHideable: true,
}, },
{ {
title: t('Volume Size'), title: t('Volume Capacity (GiB)'),
dataIndex: 'size', dataIndex: 'size',
isHideable: true, isHideable: true,
render: (value) => (value ? `${value}GiB` : '-'), render: (value) => (value ? `${value}GiB` : '-'),

View File

@ -196,7 +196,7 @@ export const getQuotaInfo = (self) => {
...gigabytes, ...gigabytes,
add: addSize, add: addSize,
name: 'gigabytes', name: 'gigabytes',
title: t('Volume Backup Gigabytes (GiB)'), title: t('Volume Backup Capacity (GiB)'),
type: 'line', type: 'line',
}; };
return [backupData, sizeData]; return [backupData, sizeData];

View File

@ -451,7 +451,7 @@ export const getAdd = (cinderQuota, withCountCheck = true) => {
} }
if ((sizeLimit !== -1 && sizeLeft < totalSize) || sizeLeft === 0) { if ((sizeLimit !== -1 && sizeLeft < totalSize) || sizeLeft === 0) {
const error = getErrorMessage({ const error = getErrorMessage({
name: t('gigabytes'), name: t('volume capacity'),
left: sizeLeft, left: sizeLeft,
input: totalSize, input: totalSize,
}); });
@ -473,7 +473,7 @@ export const getAdd = (cinderQuota, withCountCheck = true) => {
typeSizeLeft === 0 typeSizeLeft === 0
) { ) {
const error = getErrorMessage({ const error = getErrorMessage({
name: t('{name} type gigabytes', { name: type }), name: t('{name} type capacity', { name: type }),
left: typeSizeLeft, left: typeSizeLeft,
input: totalSize, input: totalSize,
}); });
@ -505,7 +505,7 @@ export const getQuotaInfo = (self, withCountCheck = true) => {
...gigabytes, ...gigabytes,
add: addSize, add: addSize,
name: 'gigabytes', name: 'gigabytes',
title: t('Gigabytes (GiB)'), title: t('Volume Capacity (GiB)'),
type: 'line', type: 'line',
}; };
if (!name) { if (!name) {
@ -522,7 +522,7 @@ export const getQuotaInfo = (self, withCountCheck = true) => {
...typeSizeQuota, ...typeSizeQuota,
add: addSize, add: addSize,
name: 'typeSize', name: 'typeSize',
title: t('{name} type gigabytes', { name }), title: t('{name} type capacity', { name }),
type: 'line', type: 'line',
}; };
return [volumeData, sizeData, typeData, typeSizeData]; return [volumeData, sizeData, typeData, typeSizeData];

View File

@ -132,7 +132,7 @@ export const getAdd = (
const titleMap = { const titleMap = {
shares: t('Share'), shares: t('Share'),
gigabytes: t('Share Gigabytes(GiB)'), gigabytes: t('Share Capacity (GiB)'),
share_networks: t('Share Network'), share_networks: t('Share Network'),
share_groups: t('Share Group'), share_groups: t('Share Group'),
}; };