Skip to content

Commit

Permalink
SHIBUI-1268 Added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 21, 2019
1 parent a7a4485 commit 6fe4e4a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ action.move-down=Move Down
action.edit=Edit
action.add-filter=Add Filter
action.manage-filters=Manage Filters
action.version-history=Version History
action.options=Options
action.xml=XML

value.enabled=Enabled
value.disabled=Disabled
value.current=Current
value.none=None
value.file=File
value.memory=Memory
Expand Down Expand Up @@ -402,6 +406,9 @@ label.current=Current
label.restore=Restore
label.compare-selected=Compare Selected

label.saved=Saved
label.by=by

message.delete-user-title=Delete User?
message.delete-user-body=You are requesting to delete a user. If you complete this process the user will be removed. This cannot be undone. Do you wish to continue?

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<div class="card enabled-status" *ngIf="version">
<div class="card-body">
<h2 class="card-title version-title">Version {{ versionNumber }}</h2>
<h2 class="card-title version-title">
<translate-i18n key="label.version">Version</translate-i18n> {{ versionNumber }}
</h2>
<p class="card-text version-details">
Saved <span class="save-date">{{ version.date | date }}</span>, by <span class="author">{{ version.creator }}</span>
<translate-i18n key="label.saved">Saved</translate-i18n>&nbsp;
<span class="save-date">{{ version.date | date }}</span>,
<translate-i18n key="label.by">by</translate-i18n>&nbsp;
<span class="author">{{ version.creator }}</span>
</p>
<p class="card-text">
<span class="badge badge-primary" *ngIf="isEnabled" translate="value.enabled">Enabled</span>
&nbsp;
<span class="badge badge-danger" *ngIf="!isEnabled" translate="value.disabled">Disabled</span>
<span class="badge badge-primary" *ngIf="isCurrent">Current</span>
<span class="badge badge-primary" *ngIf="isCurrent" translate="value.current">Current</span>
</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
[isCurrent]="isCurrent$ | async"></metadata-header>
<div class="px-3 my-3 d-flex justify-content-between">
<a class="btn btn-link" routerLink="../history">
<i class="fa fa-history sr-hidden"></i>
Version History
<i class="fa fa-history sr-hidden"></i>&nbsp;
<translate-i18n key="action.version-history">Version History</translate-i18n>
</a>
<div class="btn-group">
<a class="btn" routerLink="../options" routerLinkActive="btn-primary">Options</a>
<a class="btn" routerLink="../xml" routerLinkActive="btn-primary">XML</a>
<a class="btn" routerLink="../options" routerLinkActive="btn-primary" translate="action.options">Options</a>
<a class="btn" routerLink="../xml" routerLinkActive="btn-primary" translate="action.xml">XML</a>
</div>
</div>
<metadata-configuration [configuration]="configuration$ | async"></metadata-configuration>
Expand Down

0 comments on commit 6fe4e4a

Please sign in to comment.