Translations for the new link-sharin (token access) feature

This commit is contained in:
Shane Kilkelly 2017-10-13 13:57:11 +01:00
parent 490ccc6051
commit ee29cb45d2

View file

@ -12,29 +12,30 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
//- Private //- Private
.row.public-access-level(ng-show="project.publicAccesLevel == 'private'") .row.public-access-level(ng-show="project.publicAccesLevel == 'private'")
.col-xs-12.text-center .col-xs-12.text-center
| Link-sharing is off, only invited users can view this project. | #{translate('link_sharing_is_off')}.
|    |   
a( a(
href href
ng-click="openMakeTokenBasedModal()" ng-click="openMakeTokenBasedModal()"
) Turn on link-sharing ) #{translate('turn_on_link_sharing')}
//- Token-based access //- Token-based access
.row.public-access-level(ng-show="project.publicAccesLevel == 'tokenBased'") .row.public-access-level(ng-show="project.publicAccesLevel == 'tokenBased'")
.col-xs-12.text-center .col-xs-12.text-center
strong strong
| Link-sharing is on. | #{translate('link_sharing_is_on')}.
|    |   
a( a(
href href
ng-click="openMakePrivateModal()" ng-click="openMakePrivateModal()"
) Turn off link-sharing ) #{translate('turn_off_link_sharing')}
.col-xs-12.access-token-display-area .col-xs-12.access-token-display-area
div.access-token-wrapper div.access-token-wrapper
strong Anyone with this link can edit this project strong #{translate('anyone_with_link_can_edit')}
pre.access-token {{ getReadAndWriteTokenLink() }} pre.access-token {{ getReadAndWriteTokenLink() }}
div.access-token-wrapper div.access-token-wrapper
strong Anyone with this link can access this project strong #{translate('anyone_with_link_can_view')}
pre.access-token {{ getReadOnlyTokenLink() }} pre.access-token {{ getReadOnlyTokenLink() }}
//- legacy public-access //- legacy public-access
@ -212,14 +213,14 @@ script(type="text/ng-template", id="makeTokenBasedModalTemplate")
) × ) ×
h3 Enable link-sharing? h3 Enable link-sharing?
.modal-body.modal-body-share .modal-body.modal-body-share
p When link-sharing is enabled, anyone with the relevant link will be able to access this project p #{translate('turn_on_link_sharing_consequences')}
.modal-footer .modal-footer
button.btn.btn-default( button.btn.btn-default(
ng-click="cancel()" ng-click="cancel()"
) #{translate("cancel")} ) #{translate("cancel")}
button.btn.btn-info( button.btn.btn-info(
ng-click="makeTokenBased()" ng-click="makeTokenBased()"
) Enable Link-Sharing ) #{translate('turn_on_link_sharing')}
script(type="text/ng-template", id="makePrivateModalTemplate") script(type="text/ng-template", id="makePrivateModalTemplate")
.modal-header .modal-header
@ -230,14 +231,14 @@ script(type="text/ng-template", id="makePrivateModalTemplate")
) × ) ×
h3 #{translate("make_project_private")}? h3 #{translate("make_project_private")}?
.modal-body.modal-body-share .modal-body.modal-body-share
p #{translate("make_project_private_consequences")} p #{translate('turn_off_link_sharing_consequences')}
.modal-footer .modal-footer
button.btn.btn-default( button.btn.btn-default(
ng-click="cancel()" ng-click="cancel()"
) #{translate("cancel")} ) #{translate("cancel")}
button.btn.btn-info( button.btn.btn-info(
ng-click="makePrivate()" ng-click="makePrivate()"
) #{translate("make_private")} ) #{translate("turn_off_link_sharing")}
script(type="text/ng-template", id="shareTagTemplate") script(type="text/ng-template", id="shareTagTemplate")
.tag-template .tag-template