</ng-template>
<ng-template #syncTmpl>
- <span class="label label-info">Syncing</span>
+ <span class="label label-info"
+ i18n>Syncing</span>
</ng-template>
<ng-template #progressTmpl
formControlName="pool"
*ngIf="mode !== 'editing' && poolPermission.read">
<option *ngIf="pools === null"
- [ngValue]="null">Loading...
+ [ngValue]="null"
+ i18n>Loading...
</option>
<option *ngIf="pools !== null && pools.length === 0"
- [ngValue]="null">-- No rbd pools available --
+ [ngValue]="null"
+ i18n>-- No rbd pools available --
</option>
<option *ngIf="pools !== null && pools.length > 0"
- [ngValue]="null">-- Select a pool --
+ [ngValue]="null"
+ i18n>-- Select a pool --
</option>
<option *ngFor="let pool of pools"
[value]="pool.pool_name">{{ pool.pool_name }}</option>
*ngIf="rbdForm.getValue('useDataPool')">
<label class="control-label col-sm-3"
for="dataPool">
- Data pool
+ <ng-container i18n>Data pool</ng-container>
<span class="required"
*ngIf="mode !== 'editing'"></span>
<cd-helper i18n-html
(change)="onDataPoolChange($event.target.value)"
*ngIf="mode !== 'editing' && poolPermission.read">
<option *ngIf="dataPools === null"
- [ngValue]="null">Loading...
+ [ngValue]="null"
+ i18n>Loading...
</option>
<option *ngIf="dataPools !== null && dataPools.length === 0"
- [ngValue]="null">-- No data pools available --
+ [ngValue]="null"
+ i18n>-- No data pools available --
</option>
<option *ngIf="dataPools !== null && dataPools.length > 0"
[ngValue]="null">-- Select a data pool --
<div class="modal-header">
- <h4 class="modal-title pull-left">{{ editing ? 'Rename' : 'Create' }} RBD Snapshot</h4>
+ <h4 class="modal-title pull-left"
+ i18n>{ editing, select, true {Rename} other {Create}} RBD Snapshot</h4>
<button type="button"
class="close pull-right"
aria-label="Close"
<div class="modal-footer">
<div class="button-group text-right">
<cd-submit-button [form]="snapshotForm"
- (submitAction)="submit()">
- {{ editing ? 'Rename' : 'Create' }} Snapshot
+ (submitAction)="submit()"
+ i18n>
+ { editing, select, true {Rename} other {Create}} Snapshot
</cd-submit-button>
<button type="button"
class="btn btn-sm btn-default"
- (click)="modalRef.hide()">Close</button>
+ (click)="modalRef.hide()"
+ i18n>Close</button>
</div>
</div>
</form>
<ng-template #protectTpl
let-value="value">
<span *ngIf="value"
- class="label label-success">PROTECTED</span>
+ class="label label-success"
+ i18n>PROTECTED</span>
<span *ngIf="!value"
- class="label label-info">UNPROTECTED</span>
+ class="label label-info"
+ i18n>UNPROTECTED</span>
</ng-template>
<ng-template #rollbackTpl
let-value>
- You are about to rollback
+ <ng-container i18n>You are about to rollback</ng-container>
<strong>{{ value.snapName }}</strong>.
</ng-template>
<tabset *ngIf="selection.hasSingleSelection">
- <tab heading="Attributes (OSD map)">
+ <tab heading="Attributes (OSD map)"
+ i18n-heading>
<cd-table-key-value *ngIf="osd.loaded"
[data]="osd.details.osd_map">
</cd-table-key-value>
</tab>
- <tab heading="Metadata">
+ <tab heading="Metadata"
+ i18n-heading>
<cd-table-key-value *ngIf="osd.loaded && osd.details.osd_metadata; else noMetaData"
(fetchData)="refresh()"
[data]="osd.details.osd_metadata">
</cd-warning-panel>
</ng-template>
</tab>
- <tab heading="Performance counter">
+ <tab heading="Performance counter"
+ i18n-heading>
<cd-table-performance-counter *ngIf="osd.loaded"
serviceType="osd"
[serviceId]="osd.id">
</cd-table-performance-counter>
</tab>
- <tab heading="Histogram">
- <cd-warning-panel i18n *ngIf="osd.loaded && osd.histogram_failed">
+ <tab heading="Histogram"
+ i18n-heading>
+ <cd-warning-panel i18n
+ *ngIf="osd.loaded && osd.histogram_failed">
Histogram not available: {{ osd.histogram_failed }}
</cd-warning-panel>
- <div class="row" *ngIf="osd.loaded && osd.details.histogram">
+ <div class="row"
+ *ngIf="osd.loaded && osd.details.histogram">
<div class="col-md-6">
- <h4>Writes</h4>
+ <h4 i18n>Writes</h4>
<cd-osd-performance-histogram [histogram]="osd.details.histogram.osd.op_w_latency_in_bytes_histogram">
</cd-osd-performance-histogram>
</div>
<div class="col-md-6">
- <h4>Reads</h4>
+ <h4 i18n>Reads</h4>
<cd-osd-performance-histogram [histogram]="osd.details.histogram.osd.op_r_latency_out_bytes_histogram">
</cd-osd-performance-histogram>
</div>
{{ safeToDestroyResult.message }}
</cd-warning-panel>
</div>
- <strong>OSD {{ selection.first().id }}</strong> will be
- <strong>{{ actionDescription }}</strong> if you proceed.
+ <ng-container i18n>
+ <strong>OSD {{ selection.first().id }}</strong> will be
+ <strong>{{ actionDescription }}</strong> if you proceed.
+ </ng-container>
</ng-template>
required
autofocus>
<div class="help-block"
- *ngIf="(loginForm.submitted || username.dirty) && username.invalid">Username is required</div>
+ *ngIf="(loginForm.submitted || username.dirty) && username.invalid"
+ i18n>Username is required</div>
</div>
<!-- Password -->
</span>
</div>
<div class="help-block"
- *ngIf="(loginForm.submitted || password.dirty) && password.invalid">Password is required
+ *ngIf="(loginForm.submitted || password.dirty) && password.invalid"
+ i18n>Password is required
</div>
</div>
<input type="submit"
class="btn btn-primary btn-block"
[disabled]="loginForm.invalid"
- value="Login">
+ value="Login"
+ i18n-value>
</form>
</div>
</div>
</div>
<ng-template #removeSelfUserReadUpdatePermissionTpl>
- <p><strong>You are about to remove "user read / update" permissions from your own user.</strong></p>
+ <p><strong i18n>You are about to remove "user read / update" permissions from your own user.</strong></p>
<br>
- <p>If you continue, you will no longer be able to add or remove roles from any user.</p>
+ <p i18n>If you continue, you will no longer be able to add or remove roles from any user.</p>
- Are you sure you want to continue?
+ <ng-container i18n>Are you sure you want to continue?</ng-container>
</ng-template>
<ng-template #popTemplate>
<div *ngIf="notifications.length > 0">
<div class="separator">
- Recent Notifications
-
+ <ng-container i18n>Recent Notifications</ng-container>
<div *ngIf="notifications.length > 0"
class="pull-right">
<a (click)="removeAll()"
</div>
<!-- Empty -->
<div *ngIf="executingTasks.length === 0 && finishedTasks.length === 0">
- <div class="message">
+ <div class="message" i18n>
There are no background tasks.
</div>
</div>