mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #992: Add text to buttons. Update translations.
(cherry picked from commit b2b19eb89bad931d2eecc89ae070c2a1417555b5)
This commit is contained in:
parent
4b812d17b2
commit
180c9bdda4
@ -93,9 +93,9 @@ var create_vm_tmpl ='<form id="create_vm_form" action="">\
|
||||
<input type="text" name="vm_n_times" id="vm_n_times" value="1">\
|
||||
</fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="vm_close_dialog_link"/>\
|
||||
<button class="button" id="create_vm" value="VM.create" />\
|
||||
<button class="button" type="reset" id="reset_vm" value="reset" />\
|
||||
<button class="vm_close_dialog_link">'+tr("Close")+'</button>\
|
||||
<button class="button" id="create_vm" value="VM.create">'+tr("Create")+'</button>\
|
||||
<!--<button class="button" type="reset" id="reset_vm" value="reset">Reset</button>-->\
|
||||
</div>\
|
||||
</div>\
|
||||
</form>';
|
||||
@ -666,19 +666,21 @@ function popUpCreateVMDialog(){
|
||||
icons: {
|
||||
primary: "ui-icon-check"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
/*
|
||||
$('#reset_vm',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-scissors"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
*/
|
||||
$('.vm_close_dialog_link',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-closethick"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
|
||||
var net_select = makeSelectOptions(dataTable_vNetworks,
|
||||
@ -706,7 +708,7 @@ function popUpCreateVMDialog(){
|
||||
});
|
||||
|
||||
$('#network_box option,#disk_box option',dialog).click(function(){
|
||||
var clicked = $(this).attr("clicked");
|
||||
var clicked = $(this).attr('clicked');
|
||||
if (clicked){//unbold, unmark
|
||||
$(this).text($(this).text().replace(/\*/g,''));
|
||||
$(this).removeAttr('clicked');
|
||||
|
@ -53,9 +53,9 @@ var create_vn_tmpl =
|
||||
<div class="clear"></div>\
|
||||
</fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="vnet_close_dialog_link"/>\
|
||||
<button class="button" id="create_vn" value="vn/create" />\
|
||||
<button class="button" type="reset" id="reset_vn" value="reset" />\
|
||||
<button class="vnet_close_dialog_link">'+tr("Close")+'</button>\
|
||||
<button class="button" id="create_vn" value="Network.create">'+tr("Create")+'</button>\
|
||||
<!--<button class="button" type="reset" id="reset_vn" value="reset" />-->\
|
||||
</div>\
|
||||
</form>\
|
||||
</div>\
|
||||
@ -342,19 +342,21 @@ function popUpCreateVnetDialog() {
|
||||
icons: {
|
||||
primary: "ui-icon-check"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
/*
|
||||
$('#reset_vn',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-scissors"
|
||||
},
|
||||
text: false
|
||||
});
|
||||
*/
|
||||
$('.vnet_close_dialog_link',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-closethick"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
|
||||
$('#create_vn_form_easy',dialog).submit(function(){
|
||||
|
@ -92,9 +92,9 @@ var create_image_tmpl =
|
||||
<div class="img_param">\
|
||||
-->\
|
||||
<div class="form_buttons">\
|
||||
<button class="image_close_dialog_link"/>\
|
||||
<button class="button" id="create_image" value="Image.create" />\
|
||||
<button class="button" type="reset" id="reset_image" value="reset" />\
|
||||
<button class="image_close_dialog_link">'+tr("Close")+'</button>\
|
||||
<button class="button" id="create_image" value="Image.create">'+tr("Create")+'</button>\
|
||||
<!--<button class="button" type="reset" id="reset_image" value="reset"-->\
|
||||
</div>\
|
||||
</form>\
|
||||
</div>\
|
||||
@ -413,19 +413,21 @@ function popUpCreateImageDialog(){
|
||||
icons: {
|
||||
primary: "ui-icon-check"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
/*
|
||||
$('#reset_image',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-scissors"
|
||||
},
|
||||
text: false
|
||||
});
|
||||
*/
|
||||
$('.image_close_dialog_link',dialog).button({
|
||||
icons: {
|
||||
primary: "ui-icon-closethick"
|
||||
},
|
||||
text: false
|
||||
text: true
|
||||
});
|
||||
|
||||
setupTips(dialog);
|
||||
|
@ -13,6 +13,7 @@ locale={
|
||||
"Canvas not supported.":"",
|
||||
"CD-ROM":"",
|
||||
"Changing language":"",
|
||||
"Close":"",
|
||||
"Community":"",
|
||||
"Compute":"",
|
||||
"Compute resource":"",
|
||||
@ -21,6 +22,7 @@ locale={
|
||||
"Configuration":"",
|
||||
"Confirmation of action":"",
|
||||
"CPU":"",
|
||||
"Create":"",
|
||||
"Create network":"",
|
||||
"Create new compute resource":"",
|
||||
"Create new network resource":"",
|
||||
|
@ -13,6 +13,7 @@ locale={
|
||||
"Canvas not supported.":"Canvas no soportado",
|
||||
"CD-ROM":"CD-ROM",
|
||||
"Changing language":"Cambiando el lenguaje",
|
||||
"Close":"Cerrar",
|
||||
"Community":"Comunidad",
|
||||
"Compute":"Máquinas Virtuales",
|
||||
"Compute resource":"máquina virtual",
|
||||
@ -21,6 +22,7 @@ locale={
|
||||
"Configuration":"Configuración",
|
||||
"Confirmation of action":"Confirmar operación",
|
||||
"CPU":"CPU",
|
||||
"Create":"Crear",
|
||||
"Create network":"Crear red",
|
||||
"Create new compute resource":"Crear nueva máquina virtual",
|
||||
"Create new network resource":"Crear nueva red",
|
||||
@ -89,7 +91,7 @@ locale={
|
||||
"Please select":"Por favor escoja",
|
||||
"Previous action":"Acción anterior",
|
||||
"Public":"Público",
|
||||
"Public scope of the image":"",
|
||||
"Public scope of the image":"Imagen pública",
|
||||
"Publish":"Publicar",
|
||||
"Refresh list":"Refrescar lista",
|
||||
"Resume":"Reanudar",
|
||||
|
@ -17,7 +17,7 @@
|
||||
# limitations under the License. #
|
||||
#--------------------------------------------------------------------------- #
|
||||
|
||||
tr_strings = `grep -h -o -R -e 'tr("[[:print:]]*")' ../js/* ../customize/* | cut -d'"' -f 2 | sort -u`
|
||||
tr_strings = `grep -h -o -R -e 'tr("[[:print:]]*")' ../js/* ../customize/* ../../../../../../sunstone/public/js/sunstone.js ../../../../../../sunstone/public/js/sunstone-util.js | cut -d'"' -f 2 | sort -u`
|
||||
|
||||
puts "//Translated by"
|
||||
puts 'lang="en_US"'
|
||||
|
Loading…
x
Reference in New Issue
Block a user