浏览代码

AMBARI-4498. Hosts filter/bulk ops/passive mode: label changes. (yusaku via onechiporenko)

Oleg Nechiporenko 11 年之前
父节点
当前提交
c92863cba6
共有 2 个文件被更改,包括 14 次插入14 次删除
  1. 9 9
      ambari-web/app/messages.js
  2. 5 5
      ambari-web/app/views/main/host/hosts_table_menu_view.js

+ 9 - 9
ambari-web/app/messages.js

@@ -175,7 +175,7 @@ Em.I18n.translations = {
   'common.discard': 'Discard',
   'common.actions': 'Actions',
   'common.maintenance': 'Maintenance',
-  'common.passive_state': 'Passive State',
+  'common.passive_state': 'Out of Service',
   'common.selected': 'Selected',
   'common.password': 'Password',
   'common.url': 'URL',
@@ -184,10 +184,10 @@ Em.I18n.translations = {
   'common.hostLog.popup.logDir.path':'/var/lib/ambari-agent/data/',
   'common.hostLog.popup.outputLog.value': 'output-{0}.txt',
   'common.hostLog.popup.errorLog.value': 'errors-{0}.txt',
-  'passiveState.turnOn':'Turn On Passive Mode',
-  'passiveState.turnOff':'Turn Off Passive Mode',
-  'passiveState.turnOnFor':'Turn On Passive Mode for',
-  'passiveState.turnOffFor':'Turn Off Passive Mode for',
+  'passiveState.turnOn':'Turn On Out-of-Service Mode',
+  'passiveState.turnOff':'Turn Off Out-of-Service Mode',
+  'passiveState.turnOnFor':'Turn On Out-of-Service Mode for',
+  'passiveState.turnOffFor':'Turn Off Out-of-Service Mode for',
 
   'requestInfo.installComponents':'Install Components',
   'requestInfo.installServices':'Install Services',
@@ -1355,8 +1355,8 @@ Em.I18n.translations = {
   'hosts.bulkOperation.confirmation.header':'Confirm Bulk Operation',
   'hosts.bulkOperation.confirmation.hosts':'Are you sure you want to <strong>{0}</strong> on the following {1} hosts?',
   'hosts.bulkOperation.confirmation.hostComponents':'Are you sure you want to <strong>{0} {1}</strong> on the following {2} hosts?',
-  'hosts.bulkOperation.passiveState.nothingToDo.body':'All hosts are already in Passive State that you selected',
-  'hosts.bulkOperation.host_components.passiveState.nothingToDo.body':'All host components are already in Passive State that you selected',
+  'hosts.bulkOperation.passiveState.nothingToDo.body':'All hosts that you selected are already in Out-of-Service mode.',
+  'hosts.bulkOperation.host_components.passiveState.nothingToDo.body':'All host components that you selected are already in Out-of-Service mode',
 
   'hosts.selectHostsDialog.title': 'Select Configuration Group Hosts',
   'hosts.selectHostsDialog.message': 'Select hosts that should belong to this {0} Configuration Group.  All hosts belonging to this group will have the same set of {0} configurations.',
@@ -1474,7 +1474,7 @@ Em.I18n.translations = {
     'If this host has a DataNode, it should be decommissioned first to prevent data loss.',
   'hosts.add.header':'Add Host Wizard',
   'hosts.assignRack':'Assign Rack',
-  'hosts.passiveMode.popup':'Are you sure you want to Turn {0} Passive Mode for {1}?',
+  'hosts.passiveMode.popup':'Are you sure you want to Turn {0} Out-of-Service Mode for {1}?',
 
   'charts.horizon.chart.showText':'show',
   'charts.horizon.chart.hideText':'hide',
@@ -1828,7 +1828,7 @@ Em.I18n.translations = {
 
   'rolling.command.context': 'Rolling set {0} to state "{1}" - batch {2} of {3}',
   'rolling.nothingToDo.header': 'Nothing to do',
-  'rolling.nothingToDo.body': '{0} on selected hosts are already in selected state or in passive mode.',
+  'rolling.nothingToDo.body': '{0} on selected hosts are already in selected state or in Out-of-Service mode.',
 
   'restart.service.all': 'Restart All',
   'restart.service.rest.context': 'Restart {1}s ({0})',

+ 5 - 5
ambari-web/app/views/main/host/hosts_table_menu_view.js

@@ -120,7 +120,7 @@ App.HostTableMenuView = Em.View.extend({
   getHostItemsTemplate: function() {
     return Em.A([
       Em.Object.create({
-        label: Em.I18n.t('common.start'),
+        label: Em.I18n.t('hosts.host.details.stopAllComponents'),
         operationData: Em.Object.create({
           action: 'STARTED',
           actionToCheck: 'INSTALLED',
@@ -128,7 +128,7 @@ App.HostTableMenuView = Em.View.extend({
         })
       }),
       Em.Object.create({
-        label: Em.I18n.t('common.stop'),
+        label: Em.I18n.t('hosts.host.details.stopAllComponents'),
         operationData: Em.Object.create({
           action: 'INSTALLED',
           actionToCheck: 'STARTED',
@@ -136,7 +136,7 @@ App.HostTableMenuView = Em.View.extend({
         })
       }),
       Em.Object.create({
-        label: Em.I18n.t('common.restart'),
+        label: Em.I18n.t('hosts.table.menu.l2.restartAllComponents'),
         operationData: Em.Object.create({
           action: 'RESTART',
           message: Em.I18n.t('hosts.table.menu.l2.restartAllComponents')
@@ -172,7 +172,7 @@ App.HostTableMenuView = Em.View.extend({
    * @returns {Array}
    */
   getSubMenuItemsTemplate: function(selection) {
-    var submenu = Em.A([{label: Em.I18n.t('hosts.table.menu.l2.allComponents'), submenu: this.getHostItemsTemplate()}]);
+    var submenu = Em.A([{label: Em.I18n.t('common.hosts'), submenu: this.getHostItemsTemplate()}]);
 
     if (!!App.HDFSService.find().content.length) {
       var slaveItemsForHdfs = this.getSlaveItemsTemplate('NAMENODE', 'DATANODE');
@@ -220,4 +220,4 @@ App.HostTableMenuView = Em.View.extend({
       a: {label: Em.I18n.t('hosts.table.menu.l1.allHosts'), submenu: this.getSubMenuItemsTemplate('a')}
     };
   }.property('App.router.clusterController.isLoaded')
-});
+});