Skip to content

Commit 58d48ea

Browse files
committed
locales: migrate all translations from legacy UI (apache#368)
This uses keys based heuristics to migrate all translations from legacy UI to Primate. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 260f529 commit 58d48ea

26 files changed

Lines changed: 39228 additions & 14445 deletions

ui/src/components/view/ResourceLimitTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
:key="index"
2828
v-if="item.resourcetypename !== 'project'"
2929
:v-bind="item.resourcetypename"
30-
:label="$t('max' + item.resourcetypename.replace('_', ''))">
30+
:label="$t('label.max' + item.resourcetypename.replace('_', ''))">
3131
<a-input-number
3232
style="width: 100%;"
3333
v-decorator="[item.resourcetype, {

ui/src/config/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function asyncRouterMap () {
179179
path: '/dashboard',
180180
name: 'dashboard',
181181
meta: {
182-
title: 'Dashboard',
182+
title: 'label.dashboard',
183183
icon: 'dashboard',
184184
tabs: [
185185
{

ui/src/config/section/compute.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import kubernetes from '@/assets/icons/kubernetes.svg?inline'
1919

2020
export default {
2121
name: 'compute',
22-
title: 'Compute',
22+
title: 'label.compute',
2323
icon: 'cloud',
2424
children: [
2525
{
2626
name: 'vm',
27-
title: 'Instances',
27+
title: 'label.instances',
2828
icon: 'desktop',
2929
docHelp: 'adminguide/virtual_machines.html',
3030
permission: ['listVirtualMachinesMetrics'],
@@ -41,19 +41,19 @@ export default {
4141
],
4242
related: [{
4343
name: 'volume',
44-
title: 'Volumes',
44+
title: 'label.volumes',
4545
param: 'virtualmachineid'
4646
}, {
4747
name: 'vmsnapshot',
48-
title: 'VM Snapshots',
48+
title: 'label.vm.snapshots',
4949
param: 'virtualmachineid'
5050
}, {
5151
name: 'backup',
52-
title: 'Backups',
52+
title: 'label.backups',
5353
param: 'virtualmachineid'
5454
}, {
5555
name: 'affinitygroup',
56-
title: 'Affinity Groups',
56+
title: 'label.affinity.groups',
5757
param: 'virtualmachineid'
5858
}],
5959
tabs: [{
@@ -408,7 +408,7 @@ export default {
408408
details: ['name', 'id', 'account', 'domain', 'created'],
409409
related: [{
410410
name: 'vm',
411-
title: 'Instances',
411+
title: 'label.instances',
412412
param: 'groupid'
413413
}],
414414
actions: [

ui/src/config/section/network.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ import store from '@/store'
1919

2020
export default {
2121
name: 'network',
22-
title: 'Network',
22+
title: 'label.network',
2323
icon: 'wifi',
2424
children: [
2525
{
2626
name: 'guestnetwork',
27-
title: 'Guest Networks',
27+
title: 'label.guest.networks',
2828
icon: 'gateway',
2929
permission: ['listNetworks'],
3030
resourceType: 'Network',
3131
columns: ['name', 'state', 'type', 'cidr', 'ip6cidr', 'broadcasturi', 'account', 'zonename'],
3232
details: ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'broadcasturi', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'zonename', 'account', 'domain'],
3333
related: [{
3434
name: 'vm',
35-
title: 'Instances',
35+
title: 'label.instances',
3636
param: 'networkid'
3737
}],
3838
tabs: [{
@@ -101,7 +101,7 @@ export default {
101101
},
102102
{
103103
name: 'vpc',
104-
title: 'VPC',
104+
title: 'label.vpc',
105105
icon: 'deployment-unit',
106106
permission: ['listVPCs'],
107107
resourceType: 'Vpc',

ui/src/config/section/storage.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717

1818
export default {
1919
name: 'storage',
20-
title: 'Storage',
20+
title: 'label.storage',
2121
icon: 'database',
2222
children: [
2323
{
2424
name: 'volume',
25-
title: 'Volumes',
25+
title: 'label.volumes',
2626
icon: 'hdd',
2727
permission: ['listVolumesMetrics'],
2828
resourceType: 'Volume',
2929
columns: ['name', 'state', 'type', 'vmname', 'size', 'physicalsize', 'utilization', 'diskkbsread', 'diskkbswrite', 'diskiopstotal', 'storage', 'account', 'zonename'],
3030
details: ['name', 'id', 'type', 'storagetype', 'diskofferingdisplaytext', 'deviceid', 'sizegb', 'physicalsize', 'provisioningtype', 'utilization', 'diskkbsread', 'diskkbswrite', 'diskioread', 'diskiowrite', 'diskiopstotal', 'miniops', 'maxiops', 'path'],
3131
related: [{
3232
name: 'snapshot',
33-
title: 'Snapshots',
33+
title: 'label.snapshots',
3434
param: 'volumeid'
3535
}],
3636
actions: [
@@ -196,7 +196,7 @@ export default {
196196
},
197197
{
198198
name: 'snapshot',
199-
title: 'Snapshots',
199+
title: 'label.snapshots',
200200
icon: 'build',
201201
permission: ['listSnapshots'],
202202
resourceType: 'Snapshot',
@@ -246,7 +246,7 @@ export default {
246246
},
247247
{
248248
name: 'vmsnapshot',
249-
title: 'VM Snapshots',
249+
title: 'label.vm.snapshots',
250250
icon: 'camera',
251251
permission: ['listVMSnapshot'],
252252
resourceType: 'VMSnapshot',
@@ -282,7 +282,7 @@ export default {
282282
},
283283
{
284284
name: 'backup',
285-
title: 'Backups',
285+
title: 'label.backup',
286286
icon: 'cloud-upload',
287287
permission: ['listBackups'],
288288
columns: [{ name: (record) => { return record.virtualmachinename } }, 'status', 'type', 'created', 'account', 'zone'],

0 commit comments

Comments
 (0)