Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
86dc1dce
Commit
86dc1dce
authored
Aug 29, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce gettext strings by using format_storage_type() everywhere
parent
d3e96362
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
16 deletions
+16
-16
StorageView.js
www/manager/dc/StorageView.js
+8
-8
DirEdit.js
www/manager/storage/DirEdit.js
+1
-1
GlusterFsEdit.js
www/manager/storage/GlusterFsEdit.js
+1
-1
IScsiEdit.js
www/manager/storage/IScsiEdit.js
+1
-1
LVMEdit.js
www/manager/storage/LVMEdit.js
+1
-1
NFSEdit.js
www/manager/storage/NFSEdit.js
+1
-1
NexentaEdit.js
www/manager/storage/NexentaEdit.js
+1
-1
RBDEdit.js
www/manager/storage/RBDEdit.js
+1
-1
SheepdogEdit.js
www/manager/storage/SheepdogEdit.js
+1
-1
No files found.
www/manager/dc/StorageView.js
View file @
86dc1dce
...
@@ -102,7 +102,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -102,7 +102,7 @@ Ext.define('PVE.dc.StorageView', {
menu
:
new
Ext
.
menu
.
Menu
({
menu
:
new
Ext
.
menu
.
Menu
({
items
:
[
items
:
[
{
{
text
:
gettext
(
'
Directory
'
),
text
:
PVE
.
Utils
.
format_storage_type
(
'
dir
'
),
iconCls
:
'
pve-itype-icon-itype
'
,
iconCls
:
'
pve-itype-icon-itype
'
,
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.DirEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.DirEdit
'
,
{});
...
@@ -112,7 +112,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -112,7 +112,7 @@ Ext.define('PVE.dc.StorageView', {
},
},
{
{
text
:
gettext
(
'
LVM group
'
),
text
:
PVE
.
Utils
.
format_storage_type
(
'
lvm
'
),
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.LVMEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.LVMEdit
'
,
{});
win
.
on
(
'
destroy
'
,
reload
);
win
.
on
(
'
destroy
'
,
reload
);
...
@@ -120,7 +120,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -120,7 +120,7 @@ Ext.define('PVE.dc.StorageView', {
}
}
},
},
{
{
text
:
gettext
(
'
NFS share
'
),
text
:
PVE
.
Utils
.
format_storage_type
(
'
nfs
'
),
iconCls
:
'
pve-itype-icon-node
'
,
iconCls
:
'
pve-itype-icon-node
'
,
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.NFSEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.NFSEdit
'
,
{});
...
@@ -129,7 +129,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -129,7 +129,7 @@ Ext.define('PVE.dc.StorageView', {
}
}
},
},
{
{
text
:
gettext
(
'
iSCSI target
'
),
text
:
PVE
.
Utils
.
format_storage_type
(
'
iscsi
'
),
iconCls
:
'
pve-itype-icon-node
'
,
iconCls
:
'
pve-itype-icon-node
'
,
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.IScsiEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.IScsiEdit
'
,
{});
...
@@ -138,7 +138,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -138,7 +138,7 @@ Ext.define('PVE.dc.StorageView', {
}
}
},
},
{
{
text
:
gettext
(
'
GlusterFS volume
'
),
text
:
PVE
.
Utils
.
format_storage_type
(
'
glusterfs
'
),
iconCls
:
'
pve-itype-icon-node
'
,
iconCls
:
'
pve-itype-icon-node
'
,
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.GlusterFsEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.GlusterFsEdit
'
,
{});
...
@@ -147,7 +147,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -147,7 +147,7 @@ Ext.define('PVE.dc.StorageView', {
}
}
},
},
{
{
text
:
'
RBD
'
,
text
:
PVE
.
Utils
.
format_storage_type
(
'
rbd
'
)
,
iconCls
:
'
pve-itype-icon-node
'
,
iconCls
:
'
pve-itype-icon-node
'
,
handler
:
function
()
{
handler
:
function
()
{
var
win
=
Ext
.
create
(
'
PVE.storage.RBDEdit
'
,
{});
var
win
=
Ext
.
create
(
'
PVE.storage.RBDEdit
'
,
{});
...
@@ -158,7 +158,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -158,7 +158,7 @@ Ext.define('PVE.dc.StorageView', {
/* the following type are conidered unstable
/* the following type are conidered unstable
* so we do not enable that on the GUI for now
* so we do not enable that on the GUI for now
{
{
text:
'Sheepdog'
,
text:
PVE.Utils.format_storage_type('sheepdog')
,
iconCls: 'pve-itype-icon-node',
iconCls: 'pve-itype-icon-node',
handler: function() {
handler: function() {
var win = Ext.create('PVE.storage.SheepdogEdit', {});
var win = Ext.create('PVE.storage.SheepdogEdit', {});
...
@@ -167,7 +167,7 @@ Ext.define('PVE.dc.StorageView', {
...
@@ -167,7 +167,7 @@ Ext.define('PVE.dc.StorageView', {
}
}
},
},
{
{
text:
'Nexenta'
,
text:
PVE.Utils.format_storage_type('nexenta')
,
iconCls: 'pve-itype-icon-node',
iconCls: 'pve-itype-icon-node',
handler: function() {
handler: function() {
var win = Ext.create('PVE.storage.NexentaEdit', {});
var win = Ext.create('PVE.storage.NexentaEdit', {});
...
...
www/manager/storage/DirEdit.js
View file @
86dc1dce
...
@@ -111,7 +111,7 @@ Ext.define('PVE.storage.DirEdit', {
...
@@ -111,7 +111,7 @@ Ext.define('PVE.storage.DirEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
'
Directory
'
,
subject
:
PVE
.
Utils
.
format_storage_type
(
'
dir
'
)
,
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/GlusterFsEdit.js
View file @
86dc1dce
...
@@ -184,7 +184,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
...
@@ -184,7 +184,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
'
GlusterFS Volume
'
,
subject
:
PVE
.
Utils
.
format_storage_type
(
'
glusterfs
'
)
,
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/IScsiEdit.js
View file @
86dc1dce
...
@@ -176,7 +176,7 @@ Ext.define('PVE.storage.IScsiEdit', {
...
@@ -176,7 +176,7 @@ Ext.define('PVE.storage.IScsiEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
'
iSCSI target
'
,
subject
:
PVE
.
Utils
.
format_storage_type
(
'
iscsi
'
)
,
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/LVMEdit.js
View file @
86dc1dce
...
@@ -236,7 +236,7 @@ Ext.define('PVE.storage.LVMEdit', {
...
@@ -236,7 +236,7 @@ Ext.define('PVE.storage.LVMEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
LVM group
'
),
subject
:
PVE
.
Utils
.
format_storage_type
(
'
lvm
'
),
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/NFSEdit.js
View file @
86dc1dce
...
@@ -187,7 +187,7 @@ Ext.define('PVE.storage.NFSEdit', {
...
@@ -187,7 +187,7 @@ Ext.define('PVE.storage.NFSEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
NFS share
'
)
,
subject
:
'
NFS
'
,
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/NexentaEdit.js
View file @
86dc1dce
...
@@ -140,7 +140,7 @@ Ext.define('PVE.storage.NexentaEdit', {
...
@@ -140,7 +140,7 @@ Ext.define('PVE.storage.NexentaEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
Nexenta Storage
'
),
subject
:
PVE
.
Utils
.
format_storage_type
(
'
nexenta
'
),
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/RBDEdit.js
View file @
86dc1dce
...
@@ -106,7 +106,7 @@ Ext.define('PVE.storage.RBDEdit', {
...
@@ -106,7 +106,7 @@ Ext.define('PVE.storage.RBDEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
RBD Storage
'
),
subject
:
PVE
.
Utils
.
format_storage_type
(
'
rbd
'
),
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
www/manager/storage/SheepdogEdit.js
View file @
86dc1dce
...
@@ -90,7 +90,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
...
@@ -90,7 +90,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
});
});
Ext
.
apply
(
me
,
{
Ext
.
apply
(
me
,
{
subject
:
gettext
(
'
Sheepdog Storage
'
),
subject
:
PVE
.
Utils
.
format_storage_type
(
'
sheepdog
'
),
isAdd
:
true
,
isAdd
:
true
,
items
:
[
ipanel
]
items
:
[
ipanel
]
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment