Sorry, guys. i got what i missed.After insert 'label.user.vm': '<fmt:message key="label.user.vm" />' into client/dictionary.jsp file , all works well. But , did it suppose to be a bug ?
Thanks, Yitao 2013/12/24 Yitao Jiang <willier...@gmail.com> > In alert panel after login , it shows "*label.user.vm" *after > modification, not it's value. I changed two files, messages.properties > and messages_zh_CN.properties, and still exists this problem. > > Thanks, > > Yitao > > > 2013/12/24 Yitao Jiang <willier...@gmail.com> > >> Hi, >> >> After login into the mgmt server, the alert panel not works well.When vm >> create failed, the db store this alert, which type is 7. But in the panel , >> it shows it's vlan type. >> Through the codes , it found that it was caused by >> scripts/sharedFunctions.js#403 >> >> toAlertType: function(alertCode) { >> 395 switch (alertCode) { >> 396 case 0 : return _l('label.memory'); >> 397 case 1 : return _l('label.cpu'); >> 398 case 2 : return _l('label.storage'); >> 399 case 3 : return _l('label.primary.storage'); >> 400 case 4 : return _l('label.public.ips'); >> 401 case 5 : return _l('label.management.ips'); >> 402 case 6 : return _l('label.secondary.storage'); >> 403 case 7 : return _l('label.vlan'); >> 404 case 8 : return _l('label.direct.ips'); >> 405 case 9 : return _l('label.local.storage'); >> 406 >> 407 // These are old values -- can be removed in the future >> 408 case 10 : return "Routing Host"; >> 409 case 11 : return "Storage"; >> 410 case 12 : return "Usage Server"; >> 411 case 13 : return "Management Server"; >> 412 case 14 : return "Domain Router"; >> 413 case 15 : return "Console Proxy"; >> 414 case 16 : return "User VM"; >> 415 case 17 : return "VLAN"; >> 416 case 18 : return "Secondary Storage VM"; >> 417 } >> >> so i changed *label.vlan ** to **label.user.vm* , accordingly add the* >> label.user.vm=User >> VM *to resource file >> *client/WEB-INF/classes/resources/messages.properties.* >> After restart mgmt service, the alert panel still shows* vlan *type. >> >> My question is did i miss something in configuration locallization? >> >> Thanks, >> >> Yitao >> > >