Add i18n.

This commit is contained in:
Paulo Reis 2018-08-13 17:09:18 +01:00
parent 2ee42af1de
commit 663ca275cb
2 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@
text="history.diff.text",
highlights="history.diff.highlights",
read-only="true",
resize-on="layout:main:resize",
resize-on="layout:main:resize,history:toggle",
navigate-highlights="true"
)
.alert.alert-info(ng-if="history.diff.binary")
@ -70,7 +70,7 @@
font-size="settings.fontSize",
text="history.selectedFile.text",
read-only="true",
resize-on="layout:main:resize",
resize-on="layout:main:resize,history:toggle",
)
.alert.alert-info(ng-if="history.selectedFile.binary")
| We're still working on showing image and binary changes, sorry. Stay tuned!

View file

@ -11,7 +11,7 @@
time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }}
span.history-toolbar-selected-version(
ng-show="!history.loadingFileTree && history.showOnlyLabels && history.selection.label"
) Browsing project version labelled
) #{translate("browsing_project_labelled")} 
span.history-toolbar-selected-label "{{ history.selection.label.comment }}"
div.history-toolbar-actions
button.history-toolbar-btn(
@ -31,9 +31,9 @@
.history-toolbar-entries-list
toggle-switch(
ng-model="history.showOnlyLabels"
label-true="Labels"
label-false="All history"
description="Show all of the project history or only labelled versions."
label-true=translate("history_view_labels")
label-false=translate("history_view_all")
description=translate("history_view_a11y_description")
)
script(type="text/ng-template", id="historyV2AddLabelModalTemplate")