mirror of https://github.com/apache/cloudstack.git
UI localization for core.js
This commit is contained in:
parent
969ac05171
commit
9d4437e089
|
|
@ -1,3 +1,5 @@
|
|||
message.pending.projects.1=You have pending project invitations:
|
||||
message.pending.projects.2=To view, please go to the projects section, then select invitations from the drop-down.
|
||||
message.instanceWizard.noTemplates=You do not have any templates available; please add a compatible template, and re-launch the instance wizard.
|
||||
label.view=View
|
||||
create.template.complete=Template has been created successfully
|
||||
|
|
@ -20,6 +22,9 @@ state.Destroyed=Destroyed
|
|||
state.Error=Error
|
||||
message.reset.password.warning.notPasswordEnabled=The template this instance was created with is not password enabled
|
||||
message.reset.password.warning.notStopped=Your instance must be stopped before attempting to change its current password
|
||||
label.notifications=Notifications
|
||||
label.default.view=Default View
|
||||
label.project.view=Project View
|
||||
|
||||
#cloudstack 3.0 (end) **********************************************************************************************
|
||||
|
||||
|
|
|
|||
|
|
@ -1599,6 +1599,12 @@
|
|||
|
||||
<script language="javascript">
|
||||
dictionary = {
|
||||
'message.pending.projects.2': '<fmt:message key="message.pending.projects.2"/>',
|
||||
'message.pending.projects.1': '<fmt:message key="message.pending.projects.1"/>',
|
||||
'label.required': '<fmt:message key="label.required"/>',
|
||||
'label.project.view': '<fmt:message key="label.project.view"/>',
|
||||
'label.default.view': '<fmt:message key="label.default.view"/>',
|
||||
'label.notifications': '<fmt:message key="label.notifications"/>',
|
||||
'label.cancel': '<fmt:message key="label.cancel"/>',
|
||||
'message.step.1.continue': '<fmt:message key="message.step.1.continue"/>',
|
||||
'message.instanceWizard.noTemplates': '<fmt:message key="message.instanceWizard.noTemplates"/>',
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
// Total notifications
|
||||
.append($('<span>').html(0))
|
||||
)
|
||||
.append($('<span>').html(_l('Notifications')))
|
||||
.append($('<span>').html(_l('label.notifications')))
|
||||
.notifications();
|
||||
|
||||
// Project switcher
|
||||
|
|
@ -106,7 +106,7 @@
|
|||
.append(
|
||||
// Default View
|
||||
$('<div>').addClass('select default-view active')
|
||||
.html(_l('Default View'))
|
||||
.html(_l('label.default.view'))
|
||||
.prepend(
|
||||
$('<span>').addClass('icon').html(' ')
|
||||
)
|
||||
|
|
@ -114,7 +114,7 @@
|
|||
.append(
|
||||
// Project View
|
||||
$('<div>').addClass('select project-view')
|
||||
.html(_l('Project View'))
|
||||
.html(_l('label.project.view'))
|
||||
.prepend(
|
||||
$('<span>').addClass('icon').html(' ')
|
||||
)
|
||||
|
|
@ -157,7 +157,7 @@
|
|||
|
||||
// Put project name in header
|
||||
$('.select.project-view').html(
|
||||
'<span class="icon"> </span>' + _l('Project View')
|
||||
'<span class="icon"> </span>' + _l('label.project.view')
|
||||
).attr('title', '');
|
||||
|
||||
// Clear out project
|
||||
|
|
@ -272,7 +272,7 @@
|
|||
.click();
|
||||
|
||||
// Validation
|
||||
$.extend($.validator.messages, { required: 'Required field' });
|
||||
$.extend($.validator.messages, { required: 'label.required' });
|
||||
|
||||
// Check for pending project invitations
|
||||
cloudStack.projects.invitationCheck({
|
||||
|
|
@ -286,9 +286,9 @@
|
|||
}).join('');
|
||||
|
||||
cloudStack.dialog.notice({
|
||||
message: 'You have pending project invitations for:' +
|
||||
message: _l('message.pending.projects.1') +
|
||||
'<ul>' + projectList + '</ul>' +
|
||||
'<p>To view, please go to the projects section, then select invitations from the drop-down.</p>'
|
||||
'<p>' + _l('message.pending.projects.2') + '</p>'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue