From a6a784c4a3847a64412d99964b1006806c0ac888 Mon Sep 17 00:00:00 2001 From: francotseng Date: Wed, 3 Apr 2019 14:34:48 +0800 Subject: [PATCH] Normalize operation messages into capital case Operation messages use sentence case in html files (e.g. 'Create port') while capital case in js files (e.g. 'Create Port'). Normalize them to use capital case in order not to generate different translation items for same message. Change-Id: I1a40859447eb6ba53eef19521e110f786380a00b --- .../admin/ironic/node-details/node-details.html | 8 ++++---- .../node-details/sections/configuration.html | 16 ++++++++-------- .../admin/ironic/node-list/node-list.html | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ironic_ui/static/dashboard/admin/ironic/node-details/node-details.html b/ironic_ui/static/dashboard/admin/ironic/node-details/node-details.html index 55890dfb..d1dc990c 100644 --- a/ironic_ui/static/dashboard/admin/ironic/node-details/node-details.html +++ b/ironic_ui/static/dashboard/admin/ironic/node-details/node-details.html @@ -34,7 +34,7 @@ $event.stopPropagation(); $event.preventDefault()"> {$ ctrl.node.maintenance ? - "Maintenance off" : "Maintenance on" | translate $} + "Maintenance Off" : "Maintenance On" | translate $}
  • @@ -42,7 +42,7 @@ ng-click="ctrl.bootDeviceService.setBootDevice(ctrl.node); $event.stopPropagation(); $event.preventDefault()"> - {$ "Set boot device" | translate $} + {$ "Set Boot Device" | translate $}
  • @@ -50,7 +50,7 @@ ng-click="ctrl.raidConfigService.setRaidConfig(ctrl.node); $event.stopPropagation(); $event.preventDefault()"> - {$ "Set RAID configuration" | translate $} + {$ "Set RAID Configuration" | translate $}
  • - {$ ctrl.node.console_enabled ? 'Disable console' : 'Enable console' | translate $} + {$ ctrl.node.console_enabled ? 'Disable Console' : 'Enable Console' | translate $}
  • - {$ ::'Create port' | translate $} + {$ ::'Create Port' | translate $} - {$ ::'Delete ports' | translate $} + {$ ::'Delete Ports' | translate $} @@ -93,7 +93,7 @@ action-classes="'btn btn-default btn-sm'" callback="ctrl.editPort" item="port"> - {$ ::'Edit port' | translate $} + {$ ::'Edit Port' | translate $}
  • @@ -102,7 +102,7 @@ $event.stopPropagation(); $event.preventDefault()"> - {$ :: 'Delete port' | translate $} + {$ ::'Delete Port' | translate $}
  • @@ -139,7 +139,7 @@ - {$ ::'Create portgroup' | translate $} + {$ ::'Create Portgroup' | translate $} - {$ ::'Delete portgroups' | translate $} + {$ ::'Delete Portgroups' | translate $} @@ -206,7 +206,7 @@ action-classes="'btn btn-default btn-sm'" callback="ctrl.editPortgroup" item="portgroup"> - {$ ::'Edit portgroup' | translate $} + {$ ::'Edit Portgroup' | translate $}
  • - {$ :: 'Delete portgroup' | translate $} + {$ ::'Delete Portgroup' | translate $}
  • diff --git a/ironic_ui/static/dashboard/admin/ironic/node-list/node-list.html b/ironic_ui/static/dashboard/admin/ironic/node-list/node-list.html index 21128492..435b077f 100644 --- a/ironic_ui/static/dashboard/admin/ironic/node-list/node-list.html +++ b/ironic_ui/static/dashboard/admin/ironic/node-list/node-list.html @@ -33,7 +33,7 @@ item="tCtrl.selected" disabled="tCtrl.selected.length === 0"> - {$ ::'Delete nodes' | translate $} + {$ ::'Delete Nodes' | translate $}
  • - {$ mode ? 'Maintenance on' : 'Maintenance off' | translate $} + {$ mode ? 'Maintenance On' : 'Maintenance Off' | translate $}
  • @@ -160,7 +160,7 @@ $event.stopPropagation(); $event.preventDefault()"> {$ node.maintenance ? - "Maintenance off" : "Maintenance on" | translate $} + "Maintenance Off" : "Maintenance On" | translate $}
  • @@ -168,7 +168,7 @@ ng-click="table.bootDeviceService.setBootDevice(node); $event.stopPropagation(); $event.preventDefault()"> - {$ "Set boot device" | translate $} + {$ "Set Boot Device" | translate $}
  • - {$ ::'Delete node' | translate $} + {$ ::'Delete Node' | translate $}
  • - {$ ::'Create port' | translate $} + {$ ::'Create Port' | translate $}