Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Update translations; use underscores for keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulojreis committed Jun 5, 2018
1 parent c00c378 commit e0e7315
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions app/views/project/editor/history/entriesListV1.pug
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ aside.change-list(
div.description(ng-click="select()")
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0")
| #{translate("file-action-edited")}
| #{translate("file_action_edited")}
div.docs(ng-repeat="pathname in update.pathnames")
.doc {{ pathname }}
div.docs(ng-repeat="project_op in update.project_ops")
div(ng-if="project_op.rename")
.action #{translate("file-action-renamed")}
.action #{translate("file_action_renamed")}
.doc {{ project_op.rename.pathname }} → {{ project_op.rename.newPathname }}
div(ng-if="project_op.add")
.action #{translate("file-action-created")}
.action #{translate("file_action_created")}
.doc {{ project_op.add.pathname }}
div(ng-if="project_op.remove")
.action #{translate("file-action-deleted")}
.action #{translate("file_action_deleted")}
.doc {{ project_op.remove.pathname }}
div.users
div.user(ng-repeat="update_user in update.meta.users")
Expand Down
16 changes: 8 additions & 8 deletions app/views/project/editor/history/entriesListV2.pug
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ aside.change-list(
div.description(ng-click="select()")
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0")
| #{translate("file-action-edited")}
| #{translate("file_action_edited")}
div.docs(ng-repeat="pathname in update.pathnames")
.doc {{ pathname }}
div.docs(ng-repeat="project_op in update.project_ops")
div(ng-if="project_op.rename")
.action #{translate("file-action-renamed")}
.action #{translate("file_action_renamed")}
.doc {{ project_op.rename.pathname }} → {{ project_op.rename.newPathname }}
div(ng-if="project_op.add")
.action #{translate("file-action-created")}
.action #{translate("file_action_created")}
.doc {{ project_op.add.pathname }}
div(ng-if="project_op.remove")
.action #{translate("file-action-deleted")}
.action #{translate("file_action_deleted")}
.doc {{ project_op.remove.pathname }}
div.users
div.user(ng-repeat="update_user in update.meta.users")
Expand Down Expand Up @@ -133,20 +133,20 @@ script(type="text/ng-template", id="historyEntryTpl")
li.history-entry-change(
ng-repeat="pathname in ::$ctrl.entry.pathnames"
)
span.history-entry-change-action #{translate("file-action-edited")}
span.history-entry-change-action #{translate("file_action_edited")}
span.history-entry-change-doc {{ ::pathname }}
li.history-entry-change(
ng-repeat="project_op in ::$ctrl.entry.project_ops"
)
span.history-entry-change-action(
ng-if="::project_op.rename"
) #{translate("file-action-renamed")}
) #{translate("file_action_renamed")}
span.history-entry-change-action(
ng-if="::project_op.add"
) #{translate("file-action-created")}
) #{translate("file_action_created")}
span.history-entry-change-action(
ng-if="::project_op.remove"
) #{translate("file-action-deleted")}
) #{translate("file_action_deleted")}
span.history-entry-change-doc {{ ::$ctrl.getProjectOpDoc(project_op) }}
.history-entry-metadata
time.history-entry-metadata-time {{ ::$ctrl.entry.meta.end_ts | formatDate:'h:mm a' }}
Expand Down
2 changes: 1 addition & 1 deletion app/views/project/editor/history/previewPanelV2.pug
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ng-click="toggleHistoryViewMode();"
)
i.fa
| Browse project versions
| #{translate("view_single_version")}
.toolbar-right(ng-if="history.selection.docs[history.selection.pathname].deletedAtV")
button.btn.btn-danger.btn-xs(
ng-click="restoreDeletedFile()"
Expand Down
4 changes: 2 additions & 2 deletions app/views/project/editor/history/toolbarV2.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
span(ng-show="history.loadingFileTree")
i.fa.fa-spin.fa-refresh
|    #{translate("loading")}...
span(ng-show="!history.loadingFileTree") #{translate("browsing-project-as-of")} 
span(ng-show="!history.loadingFileTree") #{translate("browsing_project_as_of")} 
time.history-toolbar-time {{ history.selection.updates[0].meta.end_ts | formatDate:'Do MMM YYYY, h:mm a' }}
.history-toolbar-btn(
ng-click="toggleHistoryViewMode();"
)
i.fa
| #{translate("compare-project-versions")}
| #{translate("compare_to_another_version")}

0 comments on commit e0e7315

Please sign in to comment.