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
This commit is contained in:
francotseng 2019-04-03 14:34:48 +08:00
parent 929622786e
commit a6a784c4a3
3 changed files with 18 additions and 18 deletions

View File

@ -34,7 +34,7 @@
$event.stopPropagation();
$event.preventDefault()">
<span>{$ ctrl.node.maintenance ?
"Maintenance off" : "Maintenance on" | translate $}</span>
"Maintenance Off" : "Maintenance On" | translate $}</span>
</a>
</li>
<li role="presentation">
@ -42,7 +42,7 @@
ng-click="ctrl.bootDeviceService.setBootDevice(ctrl.node);
$event.stopPropagation();
$event.preventDefault()">
<span>{$ "Set boot device" | translate $}</span>
<span>{$ "Set Boot Device" | translate $}</span>
</a>
</li>
<li role="presentation">
@ -50,7 +50,7 @@
ng-click="ctrl.raidConfigService.setRaidConfig(ctrl.node);
$event.stopPropagation();
$event.preventDefault()">
<span>{$ "Set RAID configuration" | translate $}</span>
<span>{$ "Set RAID Configuration" | translate $}</span>
</a>
</li>
<li role="presentation"
@ -68,7 +68,7 @@
disabled="isDefined(ctrl.nodeValidationMap.console)
&& ctrl.nodeValidationMap.console.result===false"
callback="ctrl.toggleConsoleMode">
{$ ctrl.node.console_enabled ? 'Disable console' : 'Enable console' | translate $}
{$ ctrl.node.console_enabled ? 'Disable Console' : 'Enable Console' | translate $}
</action>
<li role="presentation">
<a role="menuitem"

View File

@ -33,7 +33,7 @@
<action button-type="split-button"
action-classes="'btn btn-default btn-sm'"
callback="ctrl.createPort">
{$ ::'Create port' | translate $}
{$ ::'Create Port' | translate $}
</action>
<menu>
<action button-type="menu-item"
@ -41,7 +41,7 @@
item="tCtrl.selected"
disabled="tCtrl.selected.length === 0">
<span class="fa fa-trash"></span>
{$ ::'Delete ports' | translate $}
{$ ::'Delete Ports' | translate $}
</action>
</menu>
</action-list>
@ -93,7 +93,7 @@
action-classes="'btn btn-default btn-sm'"
callback="ctrl.editPort"
item="port">
{$ ::'Edit port' | translate $}
{$ ::'Edit Port' | translate $}
</action>
<menu>
<li role="presentation">
@ -102,7 +102,7 @@
$event.stopPropagation();
$event.preventDefault()">
<span class="fa fa-trash"></span>
<span>{$ :: 'Delete port' | translate $}</span>
<span>{$ ::'Delete Port' | translate $}</span>
</a>
</li>
</menu>
@ -139,7 +139,7 @@
<action button-type="split-button"
action-classes="'btn btn-default btn-sm'"
callback="ctrl.createPortgroup">
{$ ::'Create portgroup' | translate $}
{$ ::'Create Portgroup' | translate $}
</action>
<menu>
<action button-type="menu-item"
@ -147,7 +147,7 @@
item="tCtrl.selected"
disabled="tCtrl.selected.length === 0">
<span class="fa fa-trash"></span>
{$ ::'Delete portgroups' | translate $}
{$ ::'Delete Portgroups' | translate $}
</action>
</menu>
</action-list>
@ -206,7 +206,7 @@
action-classes="'btn btn-default btn-sm'"
callback="ctrl.editPortgroup"
item="portgroup">
{$ ::'Edit portgroup' | translate $}
{$ ::'Edit Portgroup' | translate $}
</action>
<menu>
<li role="presentation"
@ -217,7 +217,7 @@
$event.stopPropagation();
$event.preventDefault()">
<span class="fa fa-trash"></span>
<span>{$ :: 'Delete portgroup' | translate $}</span>
<span>{$ ::'Delete Portgroup' | translate $}</span>
</a>
</li>
</menu>

View File

@ -33,7 +33,7 @@
item="tCtrl.selected"
disabled="tCtrl.selected.length === 0">
<span class="fa fa-trash"></span>
{$ ::'Delete nodes' | translate $}
{$ ::'Delete Nodes' | translate $}
</action>
<menu>
<li role="presentation"
@ -58,7 +58,7 @@
mode);
$event.stopPropagation();
$event.preventDefault()">
<span>{$ mode ? 'Maintenance on' : 'Maintenance off' | translate $}</span>
<span>{$ mode ? 'Maintenance On' : 'Maintenance Off' | translate $}</span>
</a>
</li>
</menu>
@ -160,7 +160,7 @@
$event.stopPropagation();
$event.preventDefault()">
<span>{$ node.maintenance ?
"Maintenance off" : "Maintenance on" | translate $}</span>
"Maintenance Off" : "Maintenance On" | translate $}</span>
</a>
</li>
<li role="presentation">
@ -168,7 +168,7 @@
ng-click="table.bootDeviceService.setBootDevice(node);
$event.stopPropagation();
$event.preventDefault()">
<span>{$ "Set boot device" | translate $}</span>
<span>{$ "Set Boot Device" | translate $}</span>
</a>
</li>
<li role="presentation"
@ -182,13 +182,13 @@
$event.stopPropagation();
$event.preventDefault()">
<span class="fa fa-trash"></span>
{$ ::'Delete node' | translate $}
{$ ::'Delete Node' | translate $}
</a>
</li>
<action button-type="menu-item"
callback="table.createPort"
item="node">
{$ ::'Create port' | translate $}
{$ ::'Create Port' | translate $}
</action>
<li role="presentation"
ng-repeat="transition in table.getNodeStateTransitions(node)">